Skip to Content
0
Former Member
Mar 08, 2006 at 04:48 PM

XML Parse problem consuming external webservice

478 Views

Hi all,

I'm testing consuming an external webservice from a WAS 6.40 client. I generated an ABAP proxy for it .

I managed to get the correct soap request out and receiving the response, but while parsing the SOAP XML response back into the output parameter, I'm running into a parse error :

- <CX_XMS_SYSTEM_ERROR>

<ID>PARSE_APPLICATION_DATA</ID>

<P1>Response Message</P1>

<P2>CX_ST_MATCH_TYPE</P2>

<P3>/1SAI/TXS00000000000000000003</P3>

<P4>XML Bytepos.: 354 XML Path: root(1)ns1:checkValidSerialNumbersResponse(1)checkValidSerialNumbersReturn(1) Error Text: System expected a value for the type g</P4>

<INFO />

<CATEGORY>XIProxy</CATEGORY>

<AREA>ABAP</AREA>

<RETRY>M</RETRY>

</CX_XMS_SYSTEM_ERROR>

- <CX_XMS_SYSERR_PROXY>

<CO_AREA_ABAP>ABAP</CO_AREA_ABAP>

</CX_XMS_SYSERR_PROXY>

</cls:CX_XMS_SYSERR_PROXY>

- <cls:CX_ST_MATCH_TYPE id="o163">

The response parameter is defined as xsd:string ( and string in the generated ABAP structure ).

IF the byteposition is correct there would be a problem

with the '?' characeter being in the response.

What does the datatype 'g' mean ?

see also in the error message :

<ACTUAL_NAMESPACE />

<ACTUAL_VALUE />

</CX_ST_MATCH>

- <CX_ST_MATCH_TYPE>

<EXPECTED_TYPE>g</EXPECTED_TYPE>

</CX_ST_MATCH_TYPE>

Any ideas ? Using 2 other soap clients give no issue what soever...:(