Reputation: 122
Need help! I'm having a problem with soap response, the child object in the object structure is not showing on the response. The parent object is 'PO' and the child object is 'MATRECTRANS'.
Here is my request.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:max="http://www.ibm.com/maximo">
<soapenv:Header/>
<soapenv:Body>
<max:SyncX1PO>
<max:X1POSet>
<max:PO action="AddChange">
<max:SITEID>BEDFORD</max:SITEID>
<max:PONUM>TEST9</max:PONUM>
<max:REVISIONNUM>0</max:REVISIONNUM>
<max:MATRECTRANS>
<max:POLINE>1</max:POLINE>
<max:ITEMNUM>1234</max:ITEMNUM>
<max:RECEIPTQUANTITY>2.00</max:RECEIPTQUANTITY>
</max:MATRECTRANS>
<max:MATRECTRANS>
<max:POLINE>2</max:POLINE>
<max:ITEMNUM>5411</max:ITEMNUM>
<max:RECEIPTQUANTITY>2.00</max:RECEIPTQUANTITY>
</max:MATRECTRANS>
</max:PO>
</max:X1POSet>
</max:SyncX1PO>
</soapenv:Body>
</soapenv:Envelope>
Here is the response, where the child object is missing:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SyncX1POResponse creationDateTime="2018-03-26T14:03:34+08:00" transLanguage="EN" baseLanguage="EN" messageID="3381994.1522044214139897215" xmlns="http://www.ibm.com/maximo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<X1POSet>
<PO>
<SITEID>BEDFORD</SITEID>
<PONUM>TEST9</PONUM>
<REVISIONNUM>0</REVISIONNUM>
<POID>286</POID>
</PO>
</X1POSet>
</SyncX1POResponse>
</soapenv:Body>
</soapenv:Envelope>
Upvotes: 0
Views: 223