At the time of initialization is always wrong, tip can't find the external function
The code is as follows:
OLEObject MSSOAPLib
Long ll_result
Any la_result
String MSG, ls_content
MSSOAPLib=Create OLEObject
Ll_result=MSSOAPLib. ConnectToNewObject (" MSSOAP. SoapClient30 ")//in order to compatible with
If ll_result & lt;> 0 Then
Ll_result=MSSOAPLib. ConnectToNewObject (" MSSOAP. SoapClient ")
If ll_result & lt;> 0 Then
MessageBox (" prompt ", "connect MSSOAP SoapClient failure! Return parameter: "+ String (ll_result))
Destroy MSSOAPLib;
End the If
The else
MessageBox (" prompt ", "connect MSSOAP SoapClient success!" )
End the If
ServerHTTPRequest MSSOAPLib. ClientProperty (" ", true)
La_result=MSSOAPLib. Mssoapinit (" http://192.168.20.8:8089/web/services/FrontEndService ")
//la_result=MSSOAPLib. Mssoapinit (" D: \ MyProjects \ \ DSJK data upload system WSDL ")
MSG=MSSOAPLib. TestService ()
MessageBox (" prompt ", "states:" + MSG)
If mssoapinit directly binding url will go wrong, prompt "error calling external object function mssoapinit... , "if mssoapinit is binding WSDL file, will not make a mistake, but in the calling function testService make mistakes, prompt" error calling external object function testService... No initial success, "?
Confused for a long time, please elder give directions, thank you very much, thank you very much
CodePudding user response:
Suggest using high version of the pb,CodePudding user response:
System is to use 6.5 development, met with a lot of problems to upgrade gave up... prawns have a solution? Grateful toCodePudding user response:
Top up, have come across this problem, schoolmates help have a lookCodePudding user response:
With Delphi can call is successful, is written in Delphi a DLL, the DLL call the webservice, call DLL in pb, don't go to tangleCodePudding user response:
Don't use 6.5 9.0, use