FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » XML error when accessing a certain method of a wsdl service
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
XML error when accessing a certain method of a wsdl service [message #180594] Mon, 04 March 2013 21:04
Tobiah is currently offline  Tobiah
Messages: 30
Registered: April 2011
Karma:
Member
I'm doing successful calls to membersuite.com, and all is well.
So basically I can get a object by ID#

$dude = $soap_client->Get($id);

I get back an 'Individual' object and I
can see all of the information therein.
Then I try their 'Save' method:

$soap_client->Save($dude);

And I get this:

Fatal error: Uncaught SoapFault exception: [a:DeserializationFailed]
The formatter threw an exception while trying to deserialize the message:
There was an error while trying to deserialize parameter http://membersuite.com/contracts:objectToSave.

The InnerException message was
'Element Value from namespace http://schemas.datacontract.org/2004/07/MemberSuite.SDK.Types
cannot have child contents to be deserialized as an object. Please use XmlNode[] to deserialize this pattern of XML.'.
Please see InnerException for more details. in /home/toby/public_html/membersuite/-:115
Stack trace:
#0 /home/toby/public_html/membersuite/-(115): SoapClient->__soapCall('Save', Array, NULL, Array, Array)
#1 /home/toby/public_html/membersuite/-(18): Membersuite->call('Save', Array)
#2 {main}
thrown in /home/toby/public_html/membersuite/- on line 115


The actual code is more complex then this. Here is a copy
of the class in a letter I sent to their tech support.

http://register.rcsreg.com/r2/membersuite

Thanks for any help!

Tobiah
[Message index]
 
Read Message
Previous Topic: Random function
Next Topic: Novice Question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 16:50:09 GMT 2024

Total time taken to generate the page: 0.03703 seconds