[英]How to bind a SOAP web service response data to a SpinnerView in Android?
[英]How to post data in SOAP web service
我有以下XML,我想在其中记录ProductNumber , Quantity , Price的记录 。
<?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>
<QueryPrices xmlns="xyz">
<strSessionKey>string</strSessionKey>
<nDiscountID>int</nDiscountID>
<objOrderItems>
<OrderItem>
<ProductNumber>int</ProductNumber>
<Quantity>int</Quantity>
<Price>float</Price>
</OrderItem>
<OrderItem>
<ProductNumber>int</ProductNumber>
<Quantity>int</Quantity>
<Price>float</Price>
</OrderItem>
</objOrderItems>
</QueryPrices>
</soap:Body>
</soap:Envelope>
创建Soap对象,然后使用addProperty()
传递参数。
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request .addProperty("key", value);
处理SOAP
在您的情况下:
request.addProperty( "ProductNumber","something");
request.addProperty( "Quantity","something");
request.addProperty( "Price","something");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.