Since pb8.0/9.0, we have provided the Web Service proxy function, which can directly write the related program.
However, some old projects use PB6.5 to develop
The study found that PB6.5 to operate Web service is also very easy.
Description: 1. This example is used for PB-to-Web service operations.
The 2.PB can be implemented in two different ways.
3.proxy is implemented using PB9 's own web Service proxy feature, which requires SHAREDPOWERBUILDERPBSOAPCLIENT90.PBD to be included in the app.
The 4.OLE method calls the Mssoap.soapclient implementation, which can be used for low-version PB, such as pb6.5.
5.mssoaplib.soapclient, please download from Microsoft Search SOAP Toolkit Soapsdk.exe
OLEObject MSSOAPLIB1
mssoaplib1= CREATE OLEObject
Long Ll_result
Ll_result = Mssoaplib1.connecttonewobject ("MSSOAP. SoapClient ")
If Ll_result <> 0 Then
MessageBox ("System Prompt", "Connection Mssoap.soapclient failed!") Return parameter: "+string (Ll_result))
End If
Mssoaplib1.mssoapinit ("http://172.17.99.20:9090/yygh/services/Query?wsdl")
Mle_content. Text = Mssoaplib1.sendxml ("Sina", Sle_userid.text, Sle_passwd.text, Sle_mobileno.text, Mle_content.text, "new")
PB for Web service operations can be implemented in two ways