Hi,
How do you build your $parameters? This probably is a class object? And you are using a classmap to bind your classes to the definitions in the WSDL?
Whenever there’s a node missing in the request I send to the server, I found there are 2 likely possibilities:
- definition of class or sub-object of class is not present in the ClassMap of the soapclient.
- Class or a sub object of class cannot be mapped to the correct element defined in the WSDL. This could be a namespace problem for example.
regards,
Dieter
PS: For clarity reasons, you should make a distinction between request and response. I suggest changing the second line of your code to:
$response = $this->client->__call($method, $parameters);
From: Jigal sanders [mailto:jigalroecha@gmail.com]
Sent: maandag 15 december 2008 17:15
To: fw-webservices@lists.zend.com
Subject: [fw-webservices] parameters are not filled in soap call
Hello everyone,
I am trying to send a soap request this way:
public function request($method, $parameters){
$request = $this->client->__call($method, $parameters);
$this->logLastRequest($request, $method);
return $request;
}
But when i do getLastRequest I see that the parameters are not filled.
I should have something like:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="XXXXXXXXXXXXXXXXXXX">
<soapenv:Header/>
<soapenv:Body>
<web:findSubscriptionSMS>
<phonenumber></phonenumber>
</web:findSubscriptionSMS>
</soapenv:Body>
</soapenv:Envelope
But the phoenumber node is left out.
Can anyone help me out?
Kind regards,
jsanders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.17/1846 - Release Date: 15/12/2008 9:01
没有评论:
发表评论