LiveBOS Webservice use

  Today docking external sector, we need to transfer this data to their webservice, because I am a php, java-demo without reference to their significance, and therefore request their own way.

  I use the soap php extension method, the first new SoapClient ($ url), then you can use this method to obtain __getFunctions wsdl in all of the methods, __ getTypes can obtain parameters of each method. __soapCall (invoked method name, array array requested, null, null, header return)

  Which has a pit, at the time the request is php, no matter how pass parameters, java there is a null value is received, then check the blog, find the need to pass parameters placed into an array, called key arg0 job, as follows:

  Such as a transmission array $ arr = array ( 'userid' => 1, 'name' => 'John Doe'), it needs to be put into an array, as follows $ arr1 = array ( 'arg0' => $ arr), will be $ arr1 pass by soap java, they will receive the value.

  Quote Address: https://www.cnblogs.com/colorcat/p/5566465.html

Guess you like

Origin www.cnblogs.com/xingyuecanxue/p/12031601.html