cancel
Showing results for 
Search instead for 
Did you mean: 

WebServices with SAP Business Connector

inigo_sacramento
Participant
0 Kudos

Hi everyone.

I have this scenario ... Webservice(req) > BC>SAP R3--> BC --> Webservice(resp)

It works, but the webservice has been done using a SAP function module. This FM has TABLES and when i create the webservice with Business Connector, i don't know how to insert row in my SOAPUI to test.

When i open the webservice with SOAPUI this is what i get :

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ast="Asturcon" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

<soapenv:Header/>

<soapenv:Body>

<ast:crear_reserva_mm soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<RESERVATIONHEADER xsi:type="non:RESERVATIONHEADER" xmlns:non="http://www.webMethods.com/noNamespace/">

<RES_DATE xsi:type="xsd:string">?</RES_DATE>

<MOVE_TYPE xsi:type="xsd:string">?</MOVE_TYPE>

<COSTCENTER xsi:type="xsd:string">?</COSTCENTER>

<!You may enter ANY elements at this point>

</RESERVATIONHEADER>

<RESERVATIONITEMS xsi:type="non:RESERVATIONITEMS" soapenc:arrayType="non:RESERVATIONITEMSArrayItem[]" xmlns:non="http://www.webMethods.com/noNamespace/"/>

<RETURN xsi:type="non:RETURN" soapenc:arrayType="non:RETURNArrayItem[]" xmlns:non="http://www.webMethods.com/noNamespace/"/>

</ast:crear_reserva_mm>

</soapenv:Body>

</soapenv:Envelope>

RESERVATIONITEMS has been defined in SAP FM in TABLES. I want to fill some records to test if the whole scneario works but i don't know how tags, namespaces must be placed.

Any help would be appreciated.

Inigo.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The tags in the reservation items will be the column names in the tables. Since you have already defined the namespaces in the message, you need not specifically mention them again. So just create tags under reservation items depending on the column names and in the ABAP code, develop a code to pick details from these fields (if you have not done already). That's it and you are done. So when you send data in these fields, your code will pick up the value and updates the tables accordingly.

reward if helpful,

Sarath.

Answers (0)