Vote count:
0
I have a webservice written in Java, and I want to use it by php. It need a class, say "UserDemand", as one of the parameters. It works before( the code is written by others ), but I add an attitue, and it does not work anymore. The wsdl is like this:
<wsdl:types>
<schema xmlns="http://ift.tt/tphNwY" targetNamespace="http://ift.tt/1tnVieV">
<import namespace="http://bupt.com"/>
<import namespace="http://ift.tt/wEYywg"/>
<complexType name="UserDemand">
<sequence>
<element name="callSupport" type="xsd:int"/>
<element name="caps" type="xsd:int"/>
<element name="strategy" type="xsd:int"/>
<element name="video" type="xsd:int"/>
</sequence>
</complexType>
...
The callSupport is added. I test the webservice with java code, it works ok.
But when I use it with php (and use CodeIgniter), the java side can't set callSupport, it even never call the function "setCallSupport", but the strategy and other attribute can still work. The php is ad below:
$this->load->library('UserDemand');
$userDemand = new UserDemand();
$userDemand->callSupport = $call_support;
$userDemand->caps = $audio_count;
$userDemand->video = $media_count;
$userDemand->strategy = $strategy;
$client = new SoapClient($ws_base_url.$wsdl_class.'?wsdl');
$param = array($username, $userDemand);
$out = $client->__soapCall($wsdl_function, $param);
And I just add callSupport. So, why I can't receive it, or actually it is recieved but just can't be set?
asked 1 min ago
php soap call with class
Aucun commentaire:
Enregistrer un commentaire