wood burning stoves 2.0*
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
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
how to form Soap 1.2 version action
Soap Fault Implementation
BPEL eclipse designer and Apache ODE
BPEL eclipse designer and Apache ODE: The [action] cannot be processed at the receiver