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 SoapConnectionWebservice 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, collectionCodePudding user response:
Pay attention to pick up pointsCodePudding user response:
PB9 how to invoke a Webservice authentication??????