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

Parse error with web service.

Former Member
0 Likes
1,141

Hello,

I am facing an issue in calling my web service. I am trying to use a password digest for which i am constructing the SAP header and using the FM SDIXML_XML_TO_DOM.

On calling the web service i get the error-

SOAP:1.001 CX_SXML_PARSE_ERROR:SXML reader/writer exception.Error while parsing an XML stream: 'undeclared namespace prefix'.

I have searched through SCN and the response to this has mostly been to turn on the Trace in SOAMANAGER. However in my case i do not have authorization to turn it on. Is there some other way in which i can identify where the parsing fails?

Thanks for your help.

Regards,

Deepti

3 REPLIES 3
Read only

Marcel_Wahl
Product and Topic Expert
Product and Topic Expert
0 Likes
712

Hi,

why are you trying to build the request your self?

If you got a webservice definition file (....wsdl)  you can easily generate

a class using transaction SPROXY/SE80 thats will call it and transform to the proper XML.

For the generattion just go SE80, right click on a package and select Create\enterprise service.

Select "Consumer" and It will ask for the file and do everthing else.

For the user and passwod,

-> please open transacrion SOAMANAGER,

-> go to web services,

->  query for your generated class and

-> create a so called "logical port" via the btutton on the second tab

Regards

Read only

0 Likes
712

Hello Marcel,

Thanks for your response.

The reason i am regenerating the header is because i need to support a password digest and that cannot be set via SOAMANAGER.

Regards,

Deepti

Read only

0 Likes
712

Deepti, did you fix this issue? I am facing the same.

Thanks,

Pieter