cancel
Showing results for 
Search instead for 
Did you mean: 

Error testing Webservice in XMLSPY

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

dharamveer_gaur2
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello guys,

now is running, because I have created a message mapping.

But theoretically if the message from the webservice is the same that goes to the proxy it wouldn't be necessary to create the mapping isn't it?

I don't understand why if I create the mapping is running, and if I do without it is not running because the message send by SOAP is the same and the message types are identhical. Somebody can explain it?

Many thanks.

Regards,

Xavi.

Former Member
0 Kudos

You have a problem with your payload in the first line:

<m:I_Consult xmlns:m="http:/xxxxxxx"

Shouldn't this read:

<m:I_Consult xmlns:m="http://xxxxxxx"

with two forward slashes (/) after the 'http'.

Regards,

Yaghya