cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to pass input parameter to MII webservice call..

former_member202208
Active Participant
0 Kudos
709

Hi all,

How to pass input parameter to MII webservice call?

I am testing it from SOAP UI and following is the request block.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xmii="http://www.sap.com/xMII">

   <soapenv:Header/>

   <soapenv:Body>

      <xmii:XacuteRequest>

         <!--Optional:-->

         <xmii:LoginName>UserID</xmii:LoginName>

         <!--Optional:-->

         <xmii:LoginPassword>Password</xmii:LoginPassword>

         <!--Optional:-->

         <xmii:InputParams>

            <!--Optional:-->

           <xmii:DOC> SOME_TEXT </xmii:DOC>

         </xmii:InputParams>

      </xmii:XacuteRequest>

   </soapenv:Body>

</soapenv:Envelope>

I have an Event logger in the Transaction and i want to print the input parameter/values. [SOME_TEXT]

Can some one  pls let me know how can i set this in MII transaction.

MII version: 12.2.2.235

Thanks in advance,

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member4529
Active Contributor
0 Kudos

Hi,

Add a WebService action in the BLS and specify the Web Service URL in its config. Then you can map the XPath of the xmii:DOC element from the WebService action to the Logger action using the Link Editor in BLS.

Thanks,

Dipankar

former_member202208
Active Participant
0 Kudos

Hello Dipankar,

I have created a WS action in the first transaction, which will receive the input. The mapping is not working, value is not passed and i see the following in Log files.

DOC not added to input list due to a null or empty link.

Input not added to input list due to a null or empty link. [2nd Trx log] 

Do i need to make updates on this?

Pls advise.

former_member4529
Active Contributor
0 Kudos

Hi Shridhar,

First try to execute the web service from any SOAP client like SOAPSonar or SOAPUI passing the same value to Input as you are passing from BLS. What is the error you are getting while executing the BLS from workbench?

Thanks,

Dipankar

former_member202208
Active Participant
0 Kudos

Hi Dipankar,

When i execute it via SOAPUI tool, i see the following message in Logs;

WSinput not added to input list due to a null or empty link

When executed from workbench, the transaction is success.

The input data is:

<ORDER>

  <OrderNumber>000001104137</OrderNumber>

  <ReservationNumber>0001946736</ReservationNumber> 

  <BOMExplosionDate>20110928</BOMExplosionDate>

</ORDER>

Note: If I replace < and > with &lt; and &gt;, the data is reaching the BLS.

We cant pass xml data?

Thanks,

aravinth_anandhan
Active Participant
0 Kudos

Hi,

Do you want to pass input parameter to MII's webservice?

 <xmii:DOC> SOME_TEXT </xmii:DOC>

Is this your input parameter?

Regards,

Aravinth

former_member202208
Active Participant
0 Kudos

Hi,

DOC is the input parameter i have mapped in MII Transaction, and the same is in SOAP xml.

Thanks,