cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL Generation of MII Transaction with XML Input

Former Member
0 Kudos

Hi,

I have created an input XML structure in a SAP MII transaction in order that I can have multiple lines as input.

E.g.

Transaction Properties

Name = InputXML

Value is

 
<?xml version="1.0"; encoding="UTF-8"?> 
<Rowset> 
    <item> 
        <Material/> 
        <ReservationNo/> 
        <ReservationItem/> 
        <StorageLocation/> 
        <Quantity/> 
        <UOM/> 
    </item> 
</Rowset> 

I can then map this to a BAPI TABLE structure.

However when I generate a WSDL (this transaction is being called as a web service), you do not see the structure of the Input XML.

 
  <?xml version="1.0"; encoding="UTF-8" ?> 
- <definitions targetNamespace="http://www.sap.com/xMII" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> 
- <!--  Types 
  --> 
- <types> 
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII"> 
- <s:complexType name="InputParams"> 
- <s:sequence id="InputSequence"> 
  <s:element maxOccurs="1" minOccurs="0" name="CreateOutputXML" type="s:boolean" /> 
  <s:element maxOccurs="1" minOccurs="0" name="Debug" type="s:boolean" /> 
  <s:element maxOccurs="1" minOccurs="0" name="GoodsMovementCode" type="s:string" /> 
  <s:element maxOccurs="1" minOccurs="0" name="GoodsMovementIndicator" type="s:string" /> 
  <s:element maxOccurs="1" minOccurs="0" name="GoodsMovementType" type="s:string" /> 
  <s:element maxOccurs="1" minOccurs="0" name="InputXML" type="s:Xml" />

as you can see InputXML is of type XML but is not described in the WSDL.

Does any one know how to pass multiple line value into a transaction in order that they can be seen in the WSDL?

Regards

Simon

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

MII 12.x has no support for .xsd based input parameters for web service.

It is recomended that you must use xml into string for transaction xml input parameter and you must convert string to the xml at the beginning of transaction using with string to xml action.

Regards.

Former Member
0 Kudos

Simon,

you can receive multiple lines of input in your "InputXML" property

without initializing the property in the BLT. When the BLT processes the web call,

it will override the default contents anyway.

You can use a repeater to go through the received items and map them to you BAPI,

if the InputXML you have received is similar to the BAPI structure.

You may also map single parameters from your input to the BAPI fields.

Why is it important for you to see a "Rowset/item" structure in the WSDL?

Michael

Former Member
0 Kudos

What are some ways of sending the XML input to test this webservice call?

Regards,

Chanti.