Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error testing Webservice in XMLSPY

Hello guys,

I have a scenario Webservice -> XI -> Proxy Synchronous.

I have created the webservice, and the URL is correct. I have a problem in the proxy because is expecting the Message Type and in the XML appears the name of Message Interface.

I have the next XML in XI:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!-- Call Adapter -->

<m:I_Consult xmlns:m="http:/xxxxxxx" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">

<FIELD1>String</FIELD1>

<FIELD2>String</FIELD2>

</m:I_Consult>

And the message I have in XMLSPY is a Parse Error. In XI monitoring I see the next error:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!-- Inbound Message -->

<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Category>XIProxy</SAP:Category>

<SAP:Code area="ABAP">PARSE_APPLICATION_DATA</SAP:Code>

<SAP:P1>Request Message</SAP:P1>

<SAP:P2>CX_ST_MATCH_ELEMENT</SAP:P2>

<SAP:P3>/1SAI/TXS4C324AF6BDD9E4AD352A</SAP:P3>

<SAP:P4>XML Bytepos.: 304 XML Path: m:I_Consult(1) Error Text: Elemento MConsult previsto</SAP:P4>

<SAP:AdditionalText/>

<SAP:ApplicationFaultMessage namespace=""/>

<SAP:Stack>Error during XML =&gt; ABAP conversion (Request Message; error ID: CX_ST_MATCH_ELEMENT; (/1SAI/TXS4C324AF6BDD9E4AD352A XML Bytepos.: 304 XML Path: m:I_Consult(1) Error Text: Elemento MConsult previsto))

Elemento MConsult previsto

</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

The text is in spanish, but I the problem is that R/3 is waiting MConsult (Message Type) despite of I_Consult (Message Interface).

In R/3 I am using the sentence INPUT-MConsult-FIELD1, so I understand that is waiting MConsult in the calling, but I don't understand why when I create the SOAP request in XMLSPY it doesn't appear.

I think all is created correctly in XI including SOAP adapter, and when I define the Webservice i put the message I_Consult with his namespace and I download the WSDL created.

When I test the WSDL in XMLSPY I have this error.

Do you know if I have to do some changes in the WSDL in XMLSPY before to send the SOAP request? I have no access to the WSNAVIGATOR so I can't do the test in this part.

Many thanks in advance.

Regards,

Xavi.

Former Member
replied

mapping is require,because source and target sturcture would not be recongnized.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question