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!

2 comments:

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

    ReplyDelete

  2. This article is really helpful for me. I am regular visitor to this blog. Share such kind of article more in future. Personally i like this article a lot and you can have a look at my services also: I was seriously search for a Salesforce training institutes in ameerpet which offer job assistance and Salesforce training institutes in Hyderabad who are providing certification material. It's worth to join Salesforce training institutes in India because of their real time projects material and 24x7 support from customer desk. You can easily find the best Salesforce training institutes in kukatpally kphb which are also a part of Pega training institutes in hyderabad. This is amazing to join Data science training institutes in ameerpet who are quire popular with Selenium training institutes in ameerpet and trending coureses like Java training institutes in ameerpet and data science related programming coures python training institutes in ameerpet If you want HCM course then this workday training institutes in ameerpet is best for you to get job on workday.

    ReplyDelete