Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

create soap request from xml file  RSS feed

 
Durga Roobini
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am new to SOAP services,i dont know my question whether it is right or wrong,
Here i want to access third party API for eg air ticket booking API,they gave service endpoint url like http://<url>/DOMFlightAvailability?wsdl for availablitiy, i want to send xml structured request with(from,to,date,adults,childern,infants) values to Third party API server,more than their documnetation mention like this "The Third party(company name) web service provides a service
point URL(http://<url>/DOMFlightAvailability?wsdl). Web service clients should post SOAP request message as an attachment for the desired response".

please guide me how to get their response with clear example,sorry for mistakes in my question
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would select a SOAP implementation to use (like Metro or Axis2); they come with tools that can create client-side Java code for accessing a WS if you point them at the WSDL.

For Axis2 this is explained in great detail in the "Installation Guide" and the "QuickStart Guide" at http://axis.apache.org/axis2/java/core/index.html.
 
Vaibhav G Garg
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use SOAPUI tool to create a sample request and response.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!