Skip to main content

Posts

Showing posts with the label SOAP UI

How to generate random unique number in SOAP UI request

eg 1: ${=System.currentTimeMillis() + ((int)(Math.random()*10000))} eg 2: ${=java.util.UUID.randomUUID()} ${=java.util.UUID.randomUUID()} ${=System.currentTimeMillis() + ((int)(Math.random()*10000))} - See more at: http://tryitnw.blogspot.com/2014/03/generating-random-unique-number-in-soap.html#sthash.m2S4tUFu.dpuf ${=System.currentTimeMillis() + ((int)(Math.random()*10000))} - See more at: http://tryitnw.blogspot.com/2014/03/generating-random-unique-number-in-soap.html#sthash.m2S4tUFu.dpuf ${=System.currentTimeMillis() + ((int)(Math.random()*10000))} - See more at: http://tryitnw.blogspot.com/2014/03/generating-random-unique-number-in-soap.html#sthash.m2S4tUFu.dpuf

Test the service deployed in Axis2 using SoapUI

In this blog, I’m going to test the OrderProcessingService deployed in Axis2 using soap UI http://amalkas.blogspot.com/2014/05/write-your-own-service-and-deploy-into.html 1. Install and run soaup ui http://www.soapui.org/ 2. Create new soap project and add http://localhost:8080/axis2/services/OrderProcessingService?wsdl 3. Make an update request Request: POST http://localhost:8080/axis2/services/OrderProcessingService.OrderProcessingServiceHttpSoap11Endpoint/ HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "urn:update" Content-Length: 370 Host: localhost:8080 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.orderprocessing.wso2.com">   <soapenv:Header/>   <soapenv:Body>       <ser:update>        ...