Skip to Content
0
Former Member
Jun 10, 2009 at 02:45 PM

Strange WM XI Adapter behaviour - unwanted prefix added

59 Views

Hi Guru's,

For testing purposes, we are trying to imitate the message (see below) that webmethods sends to sap pi with the xi adapter.

We took the following message straight from the wire (using wireshark) and resent it using a regular http post submit instead of the webmethods xi adapter.

The message was again examined on the wire and was identical to that sent from the xi adapter.

The message from the XI adapter was received without a problem, but the one sent with the simple http POST received the following error (http code 500):

SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP:Header>

</SOAP:Header>

<SOAP:Body>

SOAP:Client Error" target="_blank"> http://schemas.xmlsoap.org/soap/envelope/"> SOAP:Client Error during conversion of XI message http://sap.com/xi/XI/Message/30 xmlns:SAP=" XIProtocol http://sap.com/xi/XI/Message/30"> XIProtocol area="PARSER">UNEXPECTED_VALUE Main/@versionMajor 000 003 XML tag Main/@versionMajor has incorrect value 000; expected value is 003

</SAP:Stack></SAP:Error></detail></SOAP:Fault>

</SOAP:Body>

</SOAP:Envelope>

-


message:

POST /sap/xi/engine/?type=entry HTTP/1.1

User-Agent: Mozilla/4.0 [en] (WinNT; I)

Accept: image/gif, /

Host: <someIp>

Authorization: Basic <someBase64Stuff>

Content-Type: multipart/related;

boundary=8223cb11-55bc-11de-c80c-dacd0a280b76

Message-ID: <messageid@server>

MIME-Version: 1.0

Content-Length: 4058

--8223cb11-55bc-11de-c80c-dacd0a280b76

content-type: text/xml

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

http://schemas.xmlsoap.org/soap/envelope/"> xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP=" http://sap.com/exchange/MessageFormat" SOAP-ENV:mustUnderstand="1" version="1.0">

<SAP:From>

<SAP:Name>BC_EAI</SAP:Name>

SI_OUT_DimonaI_Ahttp:// SI_OUT_DimonaI_A" target="_blank">www.securex.be/MF0401/DimonaOut">SI_OUT_DimonaI_A>

</SAP:From>

<SAP:MessageId>8223CB10-55BC-11DE-C3CC-DACD0A280B76</SAP:MessageId>

<SAP:QualityOfService>ExactlyOnce</SAP:QualityOfService>

<SAP:TimeSent>2009-06-10T12:44:59Z</SAP:TimeSent>

<SAP:Direction>Request</SAP:Direction>

<SAP:Document>MainDocument</SAP:Document>

</SAP:MessageHeader></SOAP-ENV:Header><SOAP-ENV:Body>

http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP=" http://sap.com/exchange/MessageFormat" xmlns:xlink=" http://www.w3.org/1999/xlink" SOAP-ENV:mustUnderstand="1" version="1.0">

<SAP:Payload xlink:href="cid:2053b14b0360493a121bc38024b@server" xlink:type="simple">

<SAP:Document>MainDocument</SAP:Document>

</SAP:Payload>

</SAP:Manifest>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

--8223cb11-55bc-11de-c80c-dacd0a280b76

content-type: application/xml

content-id: 2053b14b0360493a121bc38024b@server

<?xml version="1.0"?>

<webM:MT_DimonaOut

xmlns:webM="http://www.securex.be/MF0401/DimonaOut">

<ns:MT_DimonaOut>

<REF>1</REF>

<PERSON>

<somemoretags/>

</PERSON>

</ns:MT_DimonaOut>

</webM:MT_DimonaOut>

8223cb11-55bc-11de-c80c-dacd0a280b76

Please advise.

Thanks a lot!

Dimitri