axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Marie Gouy" <jeanmarie.g...@gmail.com>
Subject How to force "send xsi type" in exceptions
Date Tue, 13 Feb 2007 10:51:38 GMT
Hi all,

I have two soap servers which should have the same behaviour.
The first sends the Xsi type when a fault occurs.
The second, which works with Axis 1.4, doesn't send the Xsi type when
a fault occurs.
I need this type to catch faults correctly in the client.

You can see below the first response which works, and the second
generated by axis, where there is no type in tag
"ns1:ServiceManagerServiceNotFound" :



---
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://foobar.com/ProvisionningInterface/xsd/">
- <env:Body>
- <env:Fault>
  <faultcode>env:Server</faultcode>
  <faultstring>Cannot find profile for this address</faultstring>
  <faultactor>capeconnect:wscontainer</faultactor>
- <detail>
- <ns0:ServiceManagerAddressNotFound xsi:type="ns0:AddressNotFound">
  <ns0:msg xsi:nil="true" />
  </ns0:ServiceManagerAddressNotFound>
  </detail>
  </env:Fault>
  </env:Body>
  </env:Envelope>
---

---
<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>
- <soapenv:Fault>
  <faultcode>soapenv:Server.generalException</faultcode>
  <faultstring />
- <detail>
+ <ns1:ServiceManagerServiceNotFound
xmlns:ns1="http://foobar.com/ProvisionningInterface/xsd/">
  <ns1:msg>Service not found</ns1:msg>
  </ns1:ServiceManagerServiceNotFound>
  <ns2:exceptionName
xmlns:ns2="http://xml.apache.org/axis/">com.foobar.ServiceNotFound</ns2:exceptionName>
  <ns3:hostname
xmlns:ns3="http://xml.apache.org/axis/">I20025246</ns3:hostname>
  </detail>
  </soapenv:Fault>
  </soapenv:Body>
  </soapenv:Envelope>
---


Do you know how i can force Axis to send the XSI type in faults ?
I tried to put "<parameter name="sendXsiTypes" value="true"/>" in my
server-config.wsdd but it doesn't change anything :/

Thanks
Jean-Marie

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message