Hi Anders,

It looks like you need a way to make Erlsom accept an attribute that
should not be there according to the XML schema. The easiest way to do this is to
add the following 2 lines to erlsom_parse.erl, between line 1345 and line 1346.

        {"encodingStyle", "http://schemas.xmlsoap.org/soap/envelope"} ->
          ok;

I'll give it a thought whether I add this case (and a couple more, probably) to the
'official' version of erlsom_parse, or whether I somehow introduce an option to control
this.

Regards,
Willem

On Sat, Jun 21, 2008 at 8:31 AM, Anders Nygren <anders.nygren@gmail.com> wrote:
Hi
I am receiving SOAP requests that contains soap:encodingStyle attributes.
This causes erlsom:scan to complain.
It is my understanding that soap:encodingStyle is an attribute that shall be
possible to use anywhere.
Is that correct?
If so what do I have to do to make erlsom happy and accept these messages?

The received messages starts like this
<?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:Body>
<ns1:processNPCMsg soapenv:encodingStyle="UTF-8"
xmlns:ns1="http://example.com/">

And I get this error

yaws_soap_srv(224): Cli Error: {decoding,
                               [{exception,
                                 {error,
                                  "Unexpected attribute: encodingStyle"}},
                                {stack,['soap:Body','soap:Envelope']},
                                {received,
                                 {startElement,
                                  "http://example.com/",
                                  "processNPCMsg","ns1",
                                  [{attribute,"encodingStyle","soapenv",

"http://schemas.xmlsoap.org/soap/envelope/",
                                    "UTF-8"}]}}]}


/Anders

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list