File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Customize AXISFault before reaching the Operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Customize AXISFault before reaching the Operation" Watch "Customize AXISFault before reaching the Operation" New topic
Author

Customize AXISFault before reaching the Operation

mohammed bakhti
Greenhorn

Joined: Feb 23, 2011
Posts: 1
Hello,

I'm acctually working with Axis2 and trying to do something (maybe can't be done) :

When i send a wrong request to my service using WS-ADDRESSING (let say : a wrong was:action ) the axis angine reply with an soapevn:server fault somethig like :


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
<wsa:RelatesTo>1285</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>com.ctc.wstx.exc.WstxParsingException: Unexpected close tag.
at [row,col {unknown-source}]: [12,46]</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>


this reply is from axis (my service hasn't been contacted yet) and i can see some WSA data : Action and RelatesTo .

What i need to accomplish is to add more information to the header (ws-addressing) like : FROM Content, replyto ... and other stuff .

As the exception throws before reaching my service (code) how can i do this ? is it possible?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Customize AXISFault before reaching the Operation
 
Similar Threads
Session Management in web service
BPEL eclipse designer and Apache ODE: The [action] cannot be processed at the receiver
BPEL eclipse designer and Apache ODE
how to form Soap 1.2 version action
Soap Fault Implementation