SimpleDeserializer encountered unexpected child element
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2007 08:19 AM
Hi!
I am trying to call actions by copying the exact SOAP request from previous successfull calls (java ws samples), with changed timestamp and ticket. Some actions work fine, like startSession, endSession or read. However, other calls (like get or update) result with fault message like:
Thanks in advance for your replies!
Regards,
Igor
Here's the SOAP request (exact copy of successfull java sample call w different timestamp & ticket):
I am trying to call actions by copying the exact SOAP request from previous successfull calls (java ws samples), with changed timestamp and ticket. Some actions work fine, like startSession, endSession or read. However, other calls (like get or update) result with fault message like:
<faultcode>soapenv:Server.userException</faultcode> <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>
I repeat: SOAP is exactly the same as the one from successfull sample calls (except timestamp and ticket). What am I doing wrong?Thanks in advance for your replies!
Regards,
Igor
Here's the SOAP request (exact copy of successfull java sample call w different timestamp & ticket):
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"> <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsu:Created>2007-06-12T09:36:54.609Z</wsu:Created> <wsu:Expires>2007-06-12T09:46:54.609Z</wsu:Expires> </wsu:Timestamp> <wsse:UsernameToken> <wsse:Username>ticket</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_b0ec259c-18b7-11dc-9ff1-7de41f439e75</wsse:Password> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <update xmlns="http://www.alfresco.org/ws/service/repository/1.0"> <statements> <ns1:create xmlns:ns1="http://www.alfresco.org/ws/cml/1.0"> <ns1:id>1</ns1:id> <ns1:parent> <ns2:store xmlns:ns2="http://www.alfresco.org/ws/model/content/1.0"> <ns2:scheme>workspace</ns2:scheme> <ns2:address>SpacesStore</ns2:address> </ns2:store> <ns3:uuid xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">298f8e44-16ce-11dc-83b2-2108becf4436</ns3:uuid> <ns4:associationType xmlns:ns4="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}contains</ns4:associationType> <ns5:childName xmlns:ns5="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}sample_content</ns5:childName> </ns1:parent> <ns1:type>{http://www.alfresco.org/model/content/1.0}content</ns1:type> <ns1:property> <ns6:name xmlns:ns6="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}name</ns6:name> <ns7:isMultiValue xmlns:ns7="http://www.alfresco.org/ws/model/content/1.0">false</ns7:isMultiValue> <ns8:value xmlns:ns8="http://www.alfresco.org/ws/model/content/1.0">SampleContent.txt</ns8:value> </ns1:property> </ns1:create> </statements> </update> </soapenv:Body></soapenv:Envelope>
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2007 09:41 AM
Resovled: I was calling incorrect service.
Igor
Igor
![](/skins/images/03B8A94CA56FA229F89023906A8B0EC4/responsive_peak/images/icon_anonymous_message.png)