Home > database >  Pb6.5 how to invoke the Java web service
Pb6.5 how to invoke the Java web service

Time:09-18

As title, ask how to connect Java write webservice, then go to call the method, to send information

CodePudding user response:

PB6.5 invoke the Web Service method

Since PB8.0/9.0, already provide Web Service Proxy function, can direct the preparation of the relevant procedure,

However, some old projects use PB6.5 development

Research found that actually PB6.5 to operate Web Service also pretty easy,

Description: 1. This example for pb to the operation of the Web Service,

2. The pb can use two ways,
3. The proxy mode using pb9 own Web Service proxy function implementation, need to be sharedPowerBuilderpbsoapclient90. The PBD included in the application,
4. OLE way call MSSOAP. SoapClient implementation, this method can be used in the low version of pb, as, pb6.5
5. MSSOAPLib. SoapClient available, please download from the Microsoft search soap toolkit soapsdk. Exe

OLEObject MSSOAPLib1
MSSOAPLib1=CREATE OLEObject
Long ll_result
Ll_result=MSSOAPLib1. ConnectToNewObject (" MSSOAP. SoapClient ")
If ll_result & lt;> 0 then
Messagebox (" prompt ", "connect MSSOAP SoapClient failure! Return parameter: "+ string (ll_result))
End the 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. The Text," new ")

CodePudding user response:

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. The Text," new ")
Can you explain it?

CodePudding user response:

refer to the second floor zgxer response:
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. The Text," new ")
Can you explain it?


Mssoapinit it is connection webservice,

Mssoaplib1 sendXml this sentence is to call the function in the webservice
  • Related