cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member392866
Active Participant
0 Kudos

Hello Experts,

I have consumed one java webservice in SE80 and created logical port in SOAMANAGER(Ping is successful) and i can able to run in SoapUI successfully.When i am calling web service method from SAP(ECC6.0) i am getting exception as mentioned in the subject. I am suspecting the issue is with my header which is building in my abap code before calling the method. Could you please help me out on this issue . Below code which i am using now for enabling header.

CONCATENATE '<soapenv:Header>' '<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">' '<wsse:UsernameToken wsu:Id="UsernameToken-23234" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">' '<wsse:Username>hp-client-MDAS-PMG-ITG</wsse:Username>' '<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' lv_password '</wsse:Password>' '</wsse:UsernameToken>' '</wsse:Security>' '</soapenv:Header>' INTO l_string .

Thank you.

Regards,

Balaji

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member392866
Active Participant
0 Kudos

Hello..

The same code is working in ECC5.0 but getting below exception in ECC6.0.

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

Any additional configuration required in SOAMANAGER in ECC6.0 - to resolve the same ?

Regards,

Balaji P