RE: newbie connecting to a web service problem
> Dear Friends,
>
> I am creating a client to connect to a web service. I am creating the client
> with asp.net. the web service is on developed with WSDP from SUN product. so
> we have to use SOAP to connect to it. They have given this code to be used
> for web service in asp.
>
> "=== Create an instance of SoapClient
> SET objSoapClient = Server.CreateObject("MSSOAP.SoapClient30")
> "=== Set Client Properties
> objSoapClient.ClientProperty("ServerHTTPRequest") = True
>
> "=== Retrieve KWMP web services WSDL
> Call
> objSoapClient.mssoapinit("https://acquirer.sb24.com/ref-payment/ws/ReferencePayment?WSDL", "ReferencePayment")
> "=== Set connection property to be over SSL
> objSoapClient.ConnectorProperty("UseSSL") = True
>
> "=== Now consume the web sevices according to KWMP Specification
> output = objSoapClient.verifyTransaction ("Reference Number","Merchant ID")
>
> and then I have written this code to use in asp.net
>
> Dim objSoapClient
> Dim output, tt
> objSoapClient = CreateObject("MSSOAP.SoapClient30")
> objSoapClient.ClientProperty("ServerHTTPRequest") = True
>
> objSoapClient.mssoapinit("https://acquirer.sb24.com/ref-payment/ws/ReferencePayment?WSDL", "ReferencePayment")
>
> "=== Set connection property to be over SSL
> objSoapClient.ConnectorProperty("UseSSL") = True
> output = objSoapClient.verifyTransaction("Reference Number",
> "Merchant ID")
>
> But on line that We call mssoapinit method, I will get this error from the
> system.
>
> An unhandled exception of type "System.Runtime.InteropServices.COMException"
> occurred in microsoft.visualbasic.dll
>
> Additional information: WSDLReader:XML Parser failed at linenumber 0,
> lineposition 0, reason is: The connection with the server was terminated
> abnormally
> HRESULT=0x1: Incorrect function.
> - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: The
> parameter is incorrect.
> - Client:One of the parameters supplied is invalid. HRESULT=0x80070057: The
> parameter is incorrect.
>
> can you help me in determining the problem.
>
> roseta.
GOD
salam
man code php marboot be banke saman va parsian ro toonestam hal konam
ba man tamas begirid :09155026762 va
email choop342 AT yahoo DOT com
BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities
date: Sat, 09 Feb 2008 17:51:00 GMT
author: mohammad ali choopanian