Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Generate XML file from RFC using Web Services

Former Member
0 Likes
1,940

Hi,

I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.

I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.

Any FM available?

Thanks,

Ram Sanjeev

Hi,

I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.

I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.

Any FM available?

Thanks,

Ram Sanjeev

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Likes
1,077

can you explain a little more.

do you want a RFC to create webservice, release it and then run and capture the result xml?

why would you want to do this?

when you say generated XML - are you talking about the WSDL file or the result of the webservice?

Regards

Raja

Read only

0 Likes
1,077

Yes you are correct. I want to make use of web services to get the result of webservice in xml file. Though i can do this with simple Transformation i have the requirement to go with Web Services.

So instead of going to a browser and running the web service url i would like to capture using ABAP code? is it possible , any ideas?

Thank You,

Ram

Read only

0 Likes
1,077

which version of WAS you are on .

if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.

/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap

lower version of WAS use class cl_http_client.

if this case you have to manually build the soap message.

/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap

Regards

Raja