Hi Thijs

I was just trying to figure out why a colleague , using Java, couldn't
call my LuaSOAP methods. The method arguments were not getting through
the soap parser. We compared the xml data which looked identical,
except for some whitespaces and newlines in between the tags. It
turned out that in most positions in the xml the parser is ok with
whitespace, but at least one (right after the method name tag) it
message

This works

<?xml version="1.0"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><setReplyAddress><replyAddress>http://my/new/server/address</replyAddress></setReplyAddress></soap:Body></soap:Envelope>


This doesn't

<?xml version="1.0"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><setReplyAddress>
<replyAddress>http://my/new/server/address</replyAddress></setReplyAddress></soap:Body></soap:Envelope>


... because there is a space after <setReplyAddress>
        Well, they are different documents :-)  I am not sure what to do in
these cases since white space (including tabs, new lines etc.) could be
ignored in most cases, but can be relevant in others.  I will have to
look carefully in the code to check if we can relax this restriction
without loosing data.  Or someone else have a better idea?

        Regards,
                Tomás
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to