Hello Anders,
 
Strange, but somehow that seems to be allowed according to the soap spec, even though it would normally not be allowed according to the spec of XML schema. Maybe I have to create some exception/special case. I'll look into it later this week.
 
In the mean time you could try to add an '<anyAttribute>' element to the schema that defines processNPCMsg. It could look roughly like this:
 
<complexType ...processNPCMsg...>
    <sequence>
         ... your elements
    </sequence>
    <anyAttribute namespace="##any"/>
</complexType>
Good luck,
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