需要帮助!我遇到肥皂响应问题,对象结构中的子对象没有显示在响应上。父对象是“PO'而且儿童对象是“MATRECTRANS'”。
这是我的要求。
<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>
以下是缺少子对象的响应:
<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>