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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
XML error when accessing a certain method of a wsdl service [message #180594] Mon, 04 March 2013 16:04
Tobiah is currently offline  Tobiah
Messages: 30
Registered: April 2011
Karma: 0
Member
add to buddy list
ignore all messages by this user
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
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Random function
Next Topic: Novice Question
Goto Forum:
  

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

Current Time: Tue Dec 12 03:36:24 EST 2017

Total time taken to generate the page: 0.00764 seconds