如何从android中的wcf soap web服务中的请求xml获取响应xml

时间:2013-08-29 06:14:00

标签: android xml wcf soap

下面是我的请求xml,我想用basichttpbinding发送到wcf服务。请帮我执行此请求并获得响应。

是否有其他方法可以获得具有相同请求的响应结果。

请求XML: -

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/ISiplService/GetXMLForOrders</Action>
  </s:Header>
  <s:Body>
    <GetXMLForOrders xmlns="http://tempuri.org/">
      <orderList xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <pOrdersList xmlns="">
          <Order>
            <Address>sd 321</Address>
            <CityName>hosiyarpur</CityName>
            <CreatedOn>2013-08-29T11:25:00</CreatedOn>
            <DeliveryCharges>0</DeliveryCharges>
            <EMail>ramandeep@test.com</EMail>
            <FirstName>ramn</FirstName>
            <LastName>deep</LastName>
            <Mobile>9999999999</Mobile>
            <ModeOfPayment>COD</ModeOfPayment>
            <OrderDetailsList>
              <OrderDetails>
                <CampaignId>11799</CampaignId>
                <OrderDetailId>11799</OrderDetailId>
                <Price>399</Price>
                <Qty>1</Qty>
                <SkuIds>1270</SkuIds>
                <SkuSizeIds>0</SkuSizeIds>
              </OrderDetails>
            </OrderDetailsList>
            <OrderId>11799</OrderId>
            <Phone>9999999999</Phone>
            <PinCode>123456</PinCode>
            <PromoCode i:nil="true" />
            <PromoSiteId>23</PromoSiteId>
            <PurchaseFrom>Hello</PurchaseFrom>
            <ShoppingPoints>0</ShoppingPoints>
            <SourceSite>Hello.com</SourceSite>
            <Status>ordered</Status>
            <TotalPrice>399</TotalPrice>
            <VerifiedOn>2013-08-29T11:25:00</VerifiedOn>
          </Order>
        </pOrdersList>
      </orderList>
    </GetXMLForOrders>
  </s:Body>
</s:Envelope>

0 个答案:

没有答案