cancel
Showing results for 
Search instead for 
Did you mean: 

Error while parsing an XML stream: 'undeclared namespace prefix'

Former Member
0 Kudos

Hi,

i have a requirement like comsuming a webservice from the .NET system, for that i have created a client proxy usign ABAP.

When i am executing that, i am getting following error

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

can any one help me, thanks in advance.

Regards,

Kumar

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Kumar,

i have the same problem as you have. I created a .net webservice which is running on a SharePoint 2010 server. When i'm trying to create a logical port i'm getting following error:

+Method: IF_SXMLP_FRAGMENT~SET_UNPARSED_FRAGMENT of program CL_SXMLP_FRAGMENT=============CP+
+Method: DOM_TO_PART of program CL_SXMLP_UTILS================CP+
+Method: _GET_EXT_UNTYPED of program CL_SIDL_DESERIALIZER==========CP+
+Method: _ADD_EXTENSIONS of program CL_SIDL_DESERIALIZER==========CP+
+Method: _GET_RUNTIME_EXTENSIONS of program CL_SIDL_DESERIALIZER==========CP+
+Method: DESERIALIZE_CONFIG_DEFINITION of program CL_SIDL_DESERIALIZER==========CP+
+Method: DESERIALIZE_WSDL11 of program CL_SIDL_DESERIALIZER==========CP+
+Method: IF_SIDL_DESERIALIZER~DESERIALIZE of program CL_SIDL_DESERIALIZER==========CP+

In the transaction "st22" i can find following error:

Error while parsing a XML stream: "undeclard namespace prefix".

But when i'm start searching for an undeclared namespace in my wsdl document, i can't find an undeclared namespace.

I didn't found any solutions by searching the forum. 😕

Furthermore, i also got these errors when i'm using the standard SharePoint webservices. So i think its a SAP problem.

I'm using SAP ECC 6.0 with SAP Netweaver 7.00

Thanks.

Regards

Chris

Edited by: Inso1234 on May 25, 2010 2:08 PM

Former Member
0 Kudos

Hi Kumar,

Did you end up solving this issue? I'm running into the same problem while trying to consume a WSDL in ABAP.

My searches on SDN and google for this specific error were fruitless.

Thanks,

Jameel

Former Member
0 Kudos

i guess this has been answered a trillion times here and happens, when your ABAP WS client happens to receive an HTML formatted answer from an intermediary proxy, usually starting with

<HTML><HEAD> .... 

in the worst case, your .NET WSDL is not well formed, because it doesn't declare a namespace prefix used.

without any further information this is not finally answerable from here but you'll most probably find a solution by using this forum's search function.

anton