我正在创建一个使用 XML 与 SOAP Web 服务通信的应用程序。我需要一次发送多个条目。SOAP 页面说我需要使用这样的 XML:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<InsertArrivaliOS xmlns="http://microsoft.com/webservices/">
<GuestID>long</GuestID>
<Key>string</Key>
<NumberOfGuests>int</NumberOfGuests>
<Table>string</Table>
<Note>string</Note>
<ArrivalDate>dateTime</ArrivalDate>
</InsertArrivaliOS>
</soap:Body>
</soap:Envelope>
我想发送 2 个 InsertArrivaliOS 节点。有可能做这样的事情吗?
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<InsertArrivaliOS xmlns="http://microsoft.com/webservices/">
<GuestID>long</GuestID>
<Key>string</Key>
<NumberOfGuests>int</NumberOfGuests>
<Table>string</Table>
<Note>string</Note>
<ArrivalDate>dateTime</ArrivalDate>
</InsertArrivaliOS>
<InsertArrivaliOS xmlns="http://microsoft.com/webservices/">
<GuestID>long</GuestID>
<Key>string</Key>
<NumberOfGuests>int</NumberOfGuests>
<Table>string</Table>
<Note>string</Note>
<ArrivalDate>dateTime</ArrivalDate>
</InsertArrivaliOS>
</soap:Body>
</soap:Envelope>