Hi,
I'm evaluating the webservice api in Unidata. I've succesfully masterd the GET 
and POST methods but not the SOAP method. I've tried both to build the XML 
manually(SoapSetRequestContent) and SoapSetParameters with the same result.

The code looks like this:

      ret = SOAPSetDefault("VERSION","1.1")
      IF ret <> 0 THEN
         STOP "FEL I SOAP SetDefault ":Ret
      END

      URL          = "http://www.webservicex.net/ConvertSpeed.asmx?wsdl";
      SoapAction   = "http://www.webserviceX.NET/ConvertSpeed";
      Method       = "ConvertSpeed"
      MethodParams = 
"Speed":@VM:"12":@VM:"xsd:double":@AM:"FromUnit":@VM:"milesPerhour":@AM:"ToUnit":@VM:"metersPerSecond"
      Timeout      = 30000
      NameSpace    = "http://www.webserviceX.NET/";

      Ret = SoapCreateRequest(URL, SoapAction, SoapReq)
      IF Ret <> 0 THEN
         STOP "FEL I SOAP REQUEST ":Ret
      END

      Ret = SoapSetParameters(SoapReq, NameSpace, Method, MethodParams)
      IF Ret <> 0 THEN
         STOP "FEL I SOAP SetParam ":Ret
      END

      Ret = SoapSubmitRequest(SoapReq, Timeout, RespHeaders, RespData, 
SoapStatus)
      IF Ret <> 0 THEN
         STOP "FEL I SOAP SubmitReq ":Ret
      END

      PRINT "Resp status : ":SoapStatus
      PRINT "Response headers : ":RespHeaders
      PRINT "Response data : ":RespData

The response header I get looks like this:
Connection}close~Date}Tue, 14 Aug 2007 07:31:06 GMT~Server}Mi
crosoft-IIS/6.0~X-Powered-By}ASP.NET~X-AspNet-Version}1.1.4322~Cache-Control}pri
vate, max-age=0~Content-Type}text/xml; charset=utf-8~Content-Length}369

The response data I get looks like this: 
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap=
"http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XM
LSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><Conve
rtSpeedResponse xmlns="http://www.webserviceX.NET/";><ConvertSpeedResult>0</Conve
rtSpeedResult></ConvertSpeedResponse></soap:Body></soap:Envelope>

Anyone that uses this that can find my bug?

Thanks in advance
Bjvrn Eklund 
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to