Home > database > PB simulation httpclient sends the message request API for help
PB simulation httpclient sends the message request API for help
Time:09-16
Recently, experts, and the client company CRM system interface communication, the client USES the PB development of CRM system, our side is usually via HTTP server provides the json format of business data Because I to PB don't understand, ask ace here, PB have similar Java provided by the apache httpclient API or other things like that? If yes, please indicate, by the way, and give some example invocation handler Please instruct! Thank you very much
CodePudding user response:
Original concept have Inet object, can realize the function of sending HTTP requests!
CodePudding user response:
The use of PB in INET control
INET control can simulate to the INTERNET in the form of a GET or POST request, and can GET a request to return to the page content, it needs to be used with INTERRNETESULT controls. These two controls is invisible, is not very help files written in detail, the proper use of the two controls need to be the first of the two control derived two standard class, then program used to instantiate.
A NEW STANDARD CLASS, select INET, save into n_inet
NEW a STANDARD CLASS, choose INTERNETRESULT, write in INTERNETDATA functions messagebox (' return a result, the string (data)), save as n_ir
If li_ret & lt; 1 then messagebox (' error, the string (li_ret))
CodePudding user response:
Now I am using the HTTP protocol with apache tomcat communication
Feeling with geturl and posturl general function can be implemented, including binary stream transmission and compression
CodePudding user response:
Thank you, consult lzp_lrp: Implementation way of post, and transmitting the json or XML format content client calls example For example the message content to the server side the following format: " { "CMD" : "getVehicleOwnerInfo," "Params" : { "StoreId" : "0079", "Money" : "8693.68" } } "