Caroline Maynard wrote:

> 5.Server rejected the generated XML
> I use the following code to generate my feed entry:
> 
> $xmldas = SDO_DAS_XML::create("Atom1.0.xsd");
> $document = $xmldas->createDocument(
>      "http://www.w3.org/2005/Atom";, 'entry');
> $entry = $document->getRootDataObject();
> 
> /* Fill in the entry here */
> 
> return $xmldas->saveString($document);
> 
> and got xml data looking like this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <tns:entry
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xmlns:tns="http://www.w3.org/2005/Atom";>
>   <author>
>    <name>Caroline Maynard</name>
>   </author>
>   ...
> </tns:entry>
> 
> the server barfed on this, with status code 400 and message "Unable to 
> parse atom post entry". No doubt someone who knows namespaces better 
> than I do will correct me, but isn't that wrong, because <author> and so 
> on belong to the Atom namespace?
> 
> Anyway, even if technically correct, this particular server didn't like 
> it. A hand-cranked version:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <entry xmlns="http://www.w3.org/2005/Atom";>
>   <author>
>    <name>Caroline Maynard</name>
>   </author>
>   ... identical content here
> </entry>
> 
> was consumed OK at the server.

Do you think this is likely to be fall-out from the fix for 
http://issues.apache.org/jira/browse/TUSCANY-1112 ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"phpsoa" group.
To post to this group, send email to phpsoa@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to