Not sure what error you are seeing but here are some notes on my
experience with the universe soap API.
I wrote my own CallSoapService subroutine to handle the following UV
Soap API bugs/issues.

        - adds namespace to method tags but not parameter tags
          Solution : add option to prefix parameter names with 'ns1:'

        - uses incorrect enc/env prefixes for soap version 1.2
          Solution : always use version 1.1

        - parameters exceeding 16K get trashed using SoapSetParameters
          Solution : create entire soap request ( xml ) and use
SoapSetRequestContent

        - extract return value

Gerry

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: August 14, 2007 04:13 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UD7.1] [Solaris 9]SOAP calls

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-Con
trol}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
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to