JAX-WS Web Services Testing By SoapUI



Let's discussed about popular open source tool SoapUI (refer http://www.soapui.org
| http://www.smartbear.com) for Web Services.

Software/Hardware Requirement:
SoapUI (Any version) I'll discussed about SoapUI 5.0.0
OS
EndPointURL (WSDL file or URL). Click Me

Installation details from http://www.soapui.org | http://www.smartbear.com.

Note: Just verify your proxy setting as none.  File > Preferences > Proxy Settings > None.


Open the SoapUI 5.0.0
Projects > File > New SoapUI Project >
Project Name: JAXWS-SoapUI-Testing-Project
Initial WSDL: http://localhost:8080/jaxwsprj/GreetingWebService?wsdl
Leave other option as it is.
Click Ok Button.

Jaxws Web Services SoapUI Tutorial








Right click on the Request 1 and rename it as "SayWelcome-Request-Success"
Double click on the "SayWelcome-Request-Success"

Request: Modify the  <sName>?</sName> to  <sName>Vinod</sName>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservicejaxws.vinod.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <web:sayWelcome>
         <!--Optional:-->
         <sName>Vinod</sName>
      </web:sayWelcome>
   </soapenv:Body>
</soapenv:Envelope>

Click on the Green Arrow (Submit request to specific endpoint URL).

Output:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:sayWelcomeResponse xmlns:ns2="http://webservicejaxws.vinod.com/">
         <return>Welcome Vinod !</return>
      </ns2:sayWelcomeResponse>
   </S:Body>
</S:Envelope>

Next tutorial SoapUI Mocking. Click

Provide your input if any. Learning it and share with other!

1 comment:

  1. hi,we provide online training & video tutorial for soapui
    for free videos refer
    http://soapui-tutorial.com/soapui-tutorial/introduction-to-webservices/

    ReplyDelete

Please provide your input, it will honer for me...