我有一个SOAP 1.1或1.2服务,我想用它来查询Windows Phone 8应用程序的一些数据。问题是,我对如何做到这一点一无所知。发送一个SOAP请求与Windows Phone 8
SOAP请求已经提供,我根本不知道如何使用它。我尝试添加一个WebService,但我在黑暗中摸索着,因为SOAP请求是由第三方提供的,很少或没有文档,很少或根本没有可能获得任何文档。
我粘贴了下面的SOAP请求。我需要基本的一步一步的指导,了解如何使用它并获得某种响应。
POST /RTPIService.asmx HTTP/1.1
Host: rtpi.sample.servers.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://testsite.com/GetRealTimeStopData"
<?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>
<GetRealTimeStopData xmlns="http://testsite.com/">
<stopId>int</stopId>
<forceRefresh>boolean</forceRefresh>
</GetRealTimeStopData>
</soap:Body>
</soap:Envelope>
@irldev忘了,你所做的一切,并按照上面的步骤,并将它们与您的服务。有用 !! – nkchandra
我知道如何添加服务,问题是我似乎在返回错误时收到错误,但我看不到错误是什么。 – irldev