Skip to Content
avatar image
Former Member

ABAP SOAP Webservice Issue

Dear All,

I am getting below exception (cx_ai_system_fault)when calling a SOAP web service.

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

I checked in SCN but I am getting the correct answer.

1-In the program I am sending the SOAP Header in the body part.

'<soapenv:Header>'
'<web:SessionHeader>'
'<web:sessionId>00D0S0000000XsM!ARYAQJgWSqPexXrq7SBS44OEEC2zMS71pLhIkkhgh5tXKRve5pbijMt5LPWlANj9IQebi6stasDyQi23pq8W32yUvmVHwcv6</web:sessionId>'
'</web:SessionHeader>'
'</soapenv:Header>'

2-There is no Namespace value saleforce team mention.

Thanks

Yogendra

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 06, 2017 at 06:42 PM

    You must declare the namespace for "web" somewhere in a "upper node" for instance in <web:SessionHeader xmlns:web="...">.

    Add comment
    10|10000 characters needed characters exceeded