cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving an XML file from a VB.NET WebService in SAP 4.7

Former Member
0 Kudos

i've already succesfully testet .NET webservices sending them a simple string from SAP and getting back another simple string from the service. the next step is to send them a string and get back a XML file. i always get the error "XML kernel processor cannot read parameters" ... , so how do i have to define the response parameter when it is an XML file?

thanks a lot for your answers.

Tobias

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

welcome to SDN

did you escape the tags '<' '>' in xml before setting it as response.

Raja

Former Member
0 Kudos

hi raja!

i'm not sure if a statet my problem correct:

i'm in sap 4.7 and want to call a .NET webservice, this webservice gives me back and XML file, so i can't change/influence the response parameter ...

thanks

athavanraja
Active Contributor
0 Kudos

i am sorry, should have read with the heading of your post.

how are you consuming this webservice from 4.7

is it building/sending SOAP message using cl_http_client.

Raja

athavanraja
Active Contributor
0 Kudos

<i>so how do i have to define the response parameter</i>

which response parameter you are talking about?

Regards

Raja

Former Member
0 Kudos

hi,

yes, using all classes of the include soapincl ,

i tryed this coding:

  • parameter: Out

GET REFERENCE OF it_xml INTO dref.

CALL METHOD osoap->add_parameter

EXPORTING

direction = csoapconstants=>ic_param_out

name = 'XmlTestResult'

value = dref.

but the table it_xml is always empty ...

tobias

athavanraja
Active Contributor
0 Kudos

i havent tried this method (with classes from soapincl)

i have tried with cl_http_client class

check this weblog. may be you could try this method.

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

Regards

Raja

Former Member
0 Kudos

Thank you very much,

with the blog i was succesfull!

best ragards

Tobias