RE: Fatal error: SOAP-ERROR: Encoding: object hasn't 'Qualification' property
- To: "McDevitt, Chris" <CMcDevitt@aaamichigan.com>, "soap@lists.php.net" <soap@lists.php.net>
- Subject: RE: Fatal error: SOAP-ERROR: Encoding: object hasn't 'Qualification' property
- From: Will Fitch <will@phpfever.com>
- Date: Thu, 18 Jun 2009 13:14:25 -0400
- Accept-language: en-US
- Acceptlanguage: en-US
- Thread-index: AQHJ8Dg746YU62ZVVEqXXhE4vIgoSw==
- Thread-topic: Fatal error: SOAP-ERROR: Encoding: object hasn't 'Qualification' property
Can you provide a wsdl?
Sent from my AT&T Windows Mobile phone.
-----Original Message-----
From: McDevitt, Chris <CMcDevitt@aaamichigan.com>
Sent: Thursday, June 18, 2009 12:04 PM
To: soap@lists.php.net <soap@lists.php.net>
Subject: Fatal error: SOAP-ERROR: Encoding: object hasn't 'Qualification' property
I'm having a bit of a problem and I was wondering if someone could help
out.
I'm creating a SOAP client:
$client = new SoapClient($url, array('trace' => 1,'exceptions' => 0));
$result = $client->OpGetList(array($qualification));
After I call OpGetList from the web service I receive this:
Fatal error: SOAP-ERROR: Encoding: object hasn't 'Qualification'
property
If I call the same service with a string instead of an array:
$result = $client->OpGetList("foo");
I get this:
<SOAP-ENV:Body>
<ns1:OpGetList/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
But it should look like this:
<SOAP-ENV:Body>
<ns1:OpGetList>
<ns1:Qualification>some string</ns1:Qualification>
</ns1:OpGetList>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I know the WSDL works, because it works in saopUI without any issues.
Why isn't the soapClient able to create the correct soap request?
Thanks in advance for your help.
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP Home]
[PHP Users]
[Kernel Newbies]
[PHP Database]
[Yosemite]