【发布时间】:2017-03-05 21:40:22
【问题描述】:
这是我的要求:
<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
<v:Body>
<insertBeacons xmlns="http://tempuri.org/insertBeacons/">
<MAC_ADDRESS>gmg</MAC_ADDRESS>
<UUID>gmg</UUID>
<MAJOR>gmg</MAJOR>
<MINOR>gmg</MINOR>
<MEASURED_POWER>gmg</MEASURED_POWER>
<RSSI>rssi ejemplo</RSSI>
</insertBeacons>
</v:Body>
</v:Envelope>
我需要像这样发送到服务
<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>
<insertBeacons xmlns="http://tempuri.org/">
<MAC_ADDRESS>string</MAC_ADDRESS>
<UUID>string</UUID>
<MAJOR>string</MAJOR>
<MINOR>string</MINOR>
<MEASURED_POWER>string</MEASURED_POWER>
<RSSI>string</RSSI>
</insertBeacons>
</soap:Body>
</soap:Envelope>
你能看到吗,在我的请求中是带有“v”的,而我的服务需要“soap”这个词。
任何人都可以帮助我。
【问题讨论】:
标签: android web-services soap wsdl ksoap2