on 06-10-2009 3:45 PM
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:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>SOAP:Client</faultcode><faultstring>Error during conversion of XI message</faultstring><faultactor>http://sap.com/xi/XI/Message/30</faultactor><detail><SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"><SAP:Category>XIProtocol</SAP:Category><SAP:Code area="PARSER">UNEXPECTED_VALUE</SAP:Code><SAP:P1>Main/@versionMajor</SAP:P1><SAP:P2>000</SAP:P2><SAP:P3>003</SAP:P3><SAP:P4/><SAP:AdditionalText/><SAP:Stack>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
<SOAP-ENV:Envelope xmlns:SOAP-ENV="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">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SAP:MessageHeader 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>
<SAP:Interface namespace="http://www.securex.be/MF0401/DimonaOut">SI_OUT_DimonaI_A</SAP:Interface>
</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>
<SAP:Manifest xmlns:SOAP-ENV="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
The guys from the EAI WebMethods team found a solution for the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this is the error:
messagehttp://sap.com/xi/XI/Message/30XIProtocolUNEXPECTED_VALUEMain/@versionMajor000003XML tag Main/@versionMajor has incorrect value 000; expected value is 003
@versionMajor is expecting the value 003 however you are sending 000 as the value....seems to be some kind of enumeration applied on attribute versionMajor
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.