Just to add... i know that Axis doesnt supports validation but this seems like axis works from the top down and just take elements as is. Am i correct?
regards, -Kristoffer > -----Original Message----- > From: Kristoffer Sjögren (HF/EAB) > Sent: den 5 oktober 2004 09:27 > To: '[EMAIL PROTECTED]' > Subject: Element names ignored? > > Hello all, > > I have deployed a axis WS service to weblogic and when > testing out the service i notice that axis doesnt seem to > care what the Qname is. For example, axis accepts and > deserialize these soap request exactly the same without error. > > [correct request] > <?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> > <ns1:applicationId soapenv:mustUnderstand="0" > xsi:type="xsd:string" > xmlns:ns1="urn:se.test.se">123</ns1:applicationId> > </soapenv:Header> > <soapenv:Body> > <sendSms xmlns=""> > <destinationAddressSet> > <ArrayOfEndUserIdentifier> > <value>tel:jack</value> > </ArrayOfEndUserIdentifier> > <ArrayOfEndUserIdentifier> > <value>tel:1234</value> > </ArrayOfEndUserIdentifier> > </destinationAddressSet> > <senderName>andreas</senderName> > <charging></charging> > <message>HelloWorld</message> > </sendSms> > </soapenv:Body> > </soapenv:Envelope> > > [faulty request] > <?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> > <ns1:applicationId soapenv:mustUnderstand="0" > xsi:type="xsd:string" > xmlns:ns1="urn:se.test.se">123</ns1:applicationId> > </soapenv:Header> > <soapenv:Body> > <sendSms xmlns=""> > <a> > <ArrayOfEndUserIdentifier> > <value>tel:jack</value> > </ArrayOfEndUserIdentifier> > <ArrayOfEndUserIdentifier> > <value>tel:1234</value> > </ArrayOfEndUserIdentifier> > </a> > <b>andreas</b> > <v></v> > <s>HelloWorld</s> > </sendSms> > </soapenv:Body> > </soapenv:Envelope> > > How come this work? Is there a way of restricting the qname's > according to a schema? > > regards, > -Kristoffer