ERROR:java.net.SocketException: Connection reset
Running SoapUI 5.0.0 Trying to send a SOAP document to an EHR API and am getting the above error. The detail after that line looks similar to the other reported issues of this type: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at sun.security.ssl.InputRecord.readFully(Unknown Source) at sun.security.ssl.InputRecord.read(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source) at sun.security.ssl.AppOutputStream.write(Unknown Source) and there is no other clues offered in the text below this group. Sending a REST message works just fine, but SOAP is the standard for the set of APIs that my team is working with. I tried removing each header line individually, performing a test run between each removal: HOST = <servername>.corp.<domain>.com SOAPAction = "urn:<ehrsystem-com>:PatientAccessMobile.2020.Services.GetMessageDetail" Accept-Encoding = gzip,deflate User-Agent =Apache-HttpClient/4.5.5 (Java/12.0.1) Connection = Keep-Alive Content-Type = text/xml;charset=UTF-8 <ehr>-Client-ID = 087fee8d-4259-49ae-8da9-99bdeeb33636 Authorization = Basic ZW1wOjExNTU6ZXBpYw== ... and setting up Basic authorization. Nothing seems to work. I did not edit the XML doc, because the project file is from my team lead, who was successfully communicating with the API via ReadyAPI. Just wondering if version 5.0.0 is too old or I missed something. Thanks.4.4KViews0likes3CommentsGroovy Script to delete test cases that begin with value
Disclaimer - My knowledge of Groovy is very limited. I basically require a groovy script within my test case to delete test steps that begin with 'Order'. I have tried this below, but to no avail, but that's kind of what I want. No idea if the syntax is correct or not! testSuite.removeTestStep.startswith(Order) This script would ideally be at the bottom of the test case and delete all the test steps that begin with the word 'Order' Any help would be greatly appreciated. Many Thanks. Ben1.1KViews0likes5CommentsHow to use properties( either mock service or project) in resource path of mockService?
HI, Iwant to use custom properties of mock service or project as variable in mock service resource path. Any way to do it ? Test Case Endpoint:http://localhost:9100/v1/customers- it send authorization as header which contain token to be used by mock service. Mock service running on : 127.0.0.1:8181/api Mock Service End Point: /customer/101068577 /customer/101068577/loyalty/relationship I am able to transfer property from project level to mock service, but unable to use mock service property in resource path. Actual: Mock service unable to read value from mockService custom property. Expected: mock service resource url : /customer/${#mockService#Customer_ID_Default} /customer/${#mockService#Customer_ID_Default}/loyalty/relationship or /customer/${#Project#Customer_ID_Default} /customer/${#Project#Customer_ID_Default}/loyalty/relationship1.6KViews1like1CommentFacing authentication issue while using soapui for testing
Facing authentication issue while using soapui for testing getting unauthorized response. when preemptives is selected able to see response states 401 page cannot found your unauthorized. this leads me to go for other product like soapsonar which working fine for my requirement. but i am inclined to soapui867Views0likes2CommentsSoapUI Java API sending simple Http POST
Hi, I'm using Soap UI java API for some basic functionality, such as sending soap requests and running a wsdl mock service. Now however I want to simply create a default project; a test suite; a test case and a http request test step. But I can't find out how to go about this using the Java API. Since I have no wsdl I only want to maka a simple HTTP POST call. Setting this up in SoapUI gui, no problems but I don't get which java methods to use when doing this programmatically. Can anyone give me a pointer, or two? Thanks in advance! // Nisse BakkerudSolved4.5KViews0likes3CommentsAdd Soap-Content (XML) in TestStep
Hi there, I'm trying to add XML-Payload to a TestStep via Java API. There's no problem with adding "normal" to a wsdl project: WsdlOperation operation = iface.getOperationByName(operationName); WsdlRequest request = operation.addNewRequest(requestName); request.setRequestContent(requestStr); Now I'm doing this: TestStepConfig testStepConfig = WsdlTestRequestStepFactory.createConfig(operation, "TestStepConfig"); WsdlTestCase testCase = testSuite.addNewTestCase("TestCase"); WsdlTestStep testStep = testCase.addTestStep(testStepConfig); But neither testStep nor testCase seem to have any suitable methode to add my payload (like setRequestContent()). How do I do this? Thank you very much for your help, Simon867Views0likes1Comment