cancel
Showing results for 
Search instead for 
Did you mean: 

Wsdl - soap response...

Former Member
0 Kudos

I am working on java ,using Eclipse wit wtp and Apache Axis. The soap request is sent, an xml file is parsed and I want to generate soap responses from the xml file.

Now i can send a soap request, parse the xml, but the response am getting is not of soap format, its jus a simple data...

For eg.. if the request is add no.s ( 5+ 7) i get the sum(12) or if i request for author of a book from i just get author's name..

Instead i want it as a soap response... some thing like this for requesting the stock price...

<?xml version="1.0"?>

<soap:Envelope

xmlns:soap="http://www.w3.org/2001/12/soap-envelope"

soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

<soap:Body xmlns:m="http://www.example.org/stock">

<m:GetStockPriceResponse>

<m:Price>34.5</m:Price>

</m:GetStockPriceResponse>

</soap:Body>

</soap:Envelope>

How do i get the sopa response using the wsdl file that gets generated... ????

Or is there another way of generating the soap responses.. ?

Plz help me out...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Follow the Blog

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7729] [original link is broken] [original link is broken] [original link is broken];

to create a SOAP to RFC Scenario. Here the XI Box makes the RFC look like a Web service Provider.

Just use your Client Interfaces to generate a WEB Service Definition in the ID.

Next use a SOAP inbound Adapter .

Use a tool like XML Altova and trigger the WebService Request. You can try the same with eclipse also,

The response from the RFC is converted to a SOAP response.

Hope this helps.

Reward points if useful

Regards,

Abhishek

justin_santhanam
Active Contributor
0 Kudos

Rajath,

The problem is not with XI, instead the problem is with the Webservice you created, am I right?

raj.

Former Member
0 Kudos

No dude... actually its not a problem... i just wanted to knw how to generate soapd response using wsdl or any other way... i can jus generate a response.. but not a soap response... Using wsdl u cna.. thats wat i heard... but cant figure out how to do...

VijayKonam
Active Contributor
0 Kudos

Hi,

All that you want to do is trying to call a web service and get the response from it, you can use the WSDLs from any weather or lets say google. From XI you can call it and you would get response in SOAP format.

If you want to create a web service, create a SOAP to RFC scenario in XI where RFC returns you some thing that you wanted in sync fashion. Now use the WSDL genrated from this scenario and import in XI for another scenario.. where it could be a HTTP to SOAP. Now you would get the response of RFC in SOAP format it self..

VJ