Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Routing Messages Through Adapter for SAP | Routing BAPIs Through Adapter for SAP | Posting BAPI-based XML IFR-Compatible XML Messages
 
Posting BAPI-based XML IFR-Compatible XML Messages
To apply the routing notification, the XML message should be posted to Adapter for SAP. The receiving service should be pub.sap.transport.BAPI:InboundProcess.
Execute an HTTP post operation to:
http://<host>:<port>/invoke/pub.sap.transport.BAPI/InboundProcess
In the HTTP body, an XML message specifying the BAPI-call as described above must be sent. You have to use the HTTP content type application/x-sap.busdoc when posting to Adapter for SAP.
POST /invoke/pub.sap.transport.BAPI/InboundProcess HTTP/1.0
Content-Type: application/x-sap.busdoc
User-Agent: Java1.1.8
Host: localhost:5555
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*;
q=.2
Connection: keep-alive
Content-length: 817
<?xml version="1.0"
encoding="iso-8859-1"?>
<biztalk_1 xmlns="urn:biztalk-org:biztalk:biztalk_1">
<header>
<delivery>
<message>
<messageID>0A125F1315B3D24B0000001E</messageID>
<sent>2000-06-20T09:58:00</sent>
</message>
<to>
<address>urn:sap-com:logical-system:SAPSYS0001</address>
</to>
<from>
<address>urn:sap-com:logical-system:SAPADA0001</address>
</from>
</delivery>
</header>
<body>
<doc:CompanyCode.GetList xmlns:doc="urn:sapcom:
document:sap:business" xmlns="">
<CompanyCodeList>
<item>
<COMP_CODE></COMP_CODE>
<COMP_NAME></COMP_NAME>
</item>
</CompanyCodeList>
</doc:CompanyCode.GetList>
</body>
</biztalk_1>