metersPerSecond instead of metersPersecond perhaps?
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey
Mitchell
Sent: Tuesday, August 14, 2007 11:12 AM
To: [email protected]
Subject: Re: [U2] [UD7.1] [Solaris 9]SOAP calls

So, what's the problem?  That zero is not the expected response?  Do you
control the webservice?  Have access to logs on the webservice side?  It
looks like the service is either not getting the inputs correctly, or
not functioning correctly.

 From what I can tell, there is nothing wrong with the way you are
creating and submitting the request, and the response looks like a valid
SOAP response..

[EMAIL PROTECTED] wrote:

>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-Co
>ntrol}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/
>
>
>  
>

--
Geoffrey Mitchell
Programmer/Analyst
Home Decorator's Collection
314-684-1062
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to