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

Error while calling Proxy Method

former_member212005
Active Contributor
0 Likes
1,948

Hi All,

I am trying to call aproxy method to send some information.

However it raises an exception...The details of the exception are as follows:

CX_SXML_PARSE_ERROR:Exception CX_SOAP_ROOT occurred (program: CL_SOAP_RUNTIME_ROOT==========CP, include: CL_SOAP_RUNTIME_ROOT==========CM004, line: 110)..Exception CX_SOAP_ROOT occurred (program: CL_SOAP_MESSAGE_NEW===========CP,include: CL_SOAP_MESSAGE_NEW===========CM00R, line: 39)..Error while parsing an XML stream: 'BOM / charset detection failed'.

Any idea of what could be the problem...

NOTE: I had generated the Proxy using the WSDL file...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,329

Yes;

but I call external webservice from my system.

Wsdl adress includes 'xsdany' type.And I think abap doesn't support this type.

But other side can't change wsdl document.

I must introduce 'XSDANY' type in Abap proxy.

But I don't know how to solve it.

6 REPLIES 6
Read only

former_member212005
Active Contributor
0 Likes
1,329

Solved on my own!

Read only

0 Likes
1,329

Could you please let mwe know what have u done to solve this issue .. .

Read only

0 Likes
1,329

Ok...it was months ago that we had this error for one of the client when implementing the solution.

So do not quite remember the solution for this....

But I rememeber that there was no error with the creation of proxy.....it was with the WSDL file.....

So...some changes were made in the WSDL file...following which it worked

Read only

Former Member
0 Likes
1,329

I'II take same error.

SOAP:1.001 CX_SXML_PARSE_ERROR:XSLT exception.An error occurred during serialization in the simple transformation program /1SAI/TASB437B1231EB6190CA157.Error while parsing an XML stream: 'BOM / charset detection failed'.

how can I solve very quickly.

Read only

Former Member
0 Likes
1,330

Yes;

but I call external webservice from my system.

Wsdl adress includes 'xsdany' type.And I think abap doesn't support this type.

But other side can't change wsdl document.

I must introduce 'XSDANY' type in Abap proxy.

But I don't know how to solve it.

Read only

0 Likes
1,329

Hi Hanife,

My report using the client proxy failed with the error 'BOM / charset detection failed' while trying to pass string value to the generated variable.

I solved this issue by converting the string to an xstring either by function module SCMS_STRING_TO_XSTRING or xslt function call transformation ID

After that the proxy call was successful. Test if the webservice could deal with the result created by the proxy runtime have not been done yet.

Hope this helps.

Kind regards,

Jochen