[EMAIL PROTECTED] wrote:
> ok, filling my own thread all alone.
> Maybe my conclusions help somebody out there. This is what I realized:
> 
> - The all-dominant hint was to work with the incoming MessageContext. In all 
> my further trials I worked with the  outgoing MessageContext, because I 
> thought, that's what gets back to the client.
> - Furthermore the request was SOAP 1.1. Forcing the service to deliver back 
> SOAP 1.2 ended up in an internal Server Error 500, with the message

Seems you are getting into conclusions with little or no facts :).

The reason behind the implementation of fault handling with the incoming
 message context is to enable some one to throw faults, even before the
message is haded over to the service implementation. For example, what
if there are problems in the addressing headers of the incoming message,
when addressing is engaged. By the time you run you addressing handlers,
or any other handlers in the IN flow, you only have access to the in
message context.

And at the same time, you have not understood one more concept. Out
message context represents only the out message that goes to the client,
iff there aren't any fault. You can in any means treat out message
context to be the fault message context.



> 
>    org.apache.axiom.soap.SOAPProcessingException: Expecting SOAP 1.1 
> implementation of SOAP Fault Code. But received some other implementation
>       
> org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultImpl.setCode(SOAP11FaultImpl.java:85)
> 
>    although I used the SOAPFactory soapFactory = 
> OMAbstractFactory.getSOAP12Factory();  in my service implementation  !!!

This may or may not be a bug. I have clearly asked you to help me to
reproduce this problem. Without that how can I debug?
I repeat myself, help me to re-create the scenario. I may be able to
help you.

> - What I now did is to query the incoming SOAP Version and depending on this 
> creating the matching SOAPFactory like this:
>               SOAPFactory soapFactory = (inMsgCtx.isSOAP11()) ? 
> OMAbstractFactory.getSOAP11Factory() : OMAbstractFactory.getSOAP12Factory();
>    I checked this using both versions on the request and it works fine for me.

This is the way you should actually do!!

-- Chinthaka

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to