Skip to Content

Sending Messages from PI to MII using HTTP post method

Hi All,

We are using SAP MII 12.2 ver. and PI as per customer's requirement and landscape.

PI will receive iDOC from ECC. PI needs to process the iDOC and send a simple XML to SAP MII.

Please let us know the configurations needed at

1. PI to send simple XML using HTTP POST method.

2. MII to receive a simple XML using HTTP POST method.

Also please note that our message transfer is in an asynchronous mode.

Kindly guide us with any example documentation or links.

Thanks for your help as always.

Praveen

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 13, 2013 at 10:17 PM

    You can try WSMessageListener.

    http://<server>:<port>/XMII/Illuminator?service=WSMessageListener&mode=WSMessageListenerServer&NAME=<UniqueMessageName>

    http://help.sap.com/saphelp_mii122sp03/helpdata/en/4c/7258d9e631469ee10000000a15822d/content.htm

    Thanks

    Hari

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Praveen Naithani

      Hi,

      Given that the message is in state 'Success', I assume you successfully created the processing rule.

      (Should be in state 'No Rule' otherwise)

      Does the transaction you call in the processing rule have an XML Input parameter?

      If yes, you can assign the 'ReceivedMessageXML' to this input parameter.

      The mapping can be found on the lower right corner when editing a processing rule.

      For each received message of the type you specified in 'Message Name', your transaction will be called and the input parameter will be populated with the message.

      hope that helps,

      Julian

      PS (just FYI)

      You can also work directly with the queue using the actions found in the workbench under 'Message Services'.

      It's a bit more work, but comes in handy if you e.g. want to process the messages asynchronously using schedulers.