Home > database >  The correct pb10 calls webservices, why other machines?
The correct pb10 calls webservices, why other machines?

Time:10-04

Using PB10 calls webservices (asmx), there is no problem on the development machine, use normal, on other machines running times wrong, the DLL to take an examination of in the past, also not line, is poor?

Error message:

Initializes the connection CreateInstanc times RUNTIME wrong

CodePudding user response:

I also met the same problem, I tried some machine, some lines, some not. Have the know the reason?

CodePudding user response:

The SoapConnection conn//Define the SoapConnection
Webservice proxy_obj
Long rVal, lLog
String amount

//Define the endpoint. You can omit it, if You want to use the
//the default endpoint inside the proxy
String str_endpoint
Str_endpoint="http://localhost/webservice"//WebService. Asmx
"Conn=create the SoapConnection//Instantiated connection

RVal=Conn. Createinstance (proxy_obj, webservice, str_endpoint)//Create the proxy object

Try
Amount=proxy_obj. The helloworld ()//Invoke service
Sle_1. Text=amount
The catch (SoapException e)
Messagebox (" Error ", "always invoke a Web service"),//the Error handling for
End the try
Destroy the conn

CodePudding user response:

Learning.

CodePudding user response:

Support her Lord, collection

CodePudding user response:

Pay attention to pick up points

CodePudding user response:

PB9 how to invoke a Webservice authentication??????
  • Related