axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristoffer Sjögren (HF/EAB) <kristoffer.sjog...@ericsson.com>
Subject Element names ignored?
Date Tue, 05 Oct 2004 07:27:19 GMT
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

Mime
View raw message