What is SOAP Header value in Response of WebService, when SOAP Fault occurs?

I am working with WebService client, which is running under JBOss. My WebService is running on WebLogic Server. I am getting SOAP Response in sucess scenario and everything is just fine. In Success scenario, I am getting content type as text/xml and one of elements in header as SOAPAction having value blank. In error scenario (SOAPFault), what value I should expect in header for SOAPAction?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SOAPAction header is meant for request... not responses..

In SOAP Fault response, you can look for SOAP Fault Element inside the body...

Also you can use "faultstring" to retrieve the human readable error.
mlps_umeshAuthor Commented:
Yes !!! That's what happens in normal scenario.

 I have written a proxy servlet which intercepts all WebService requests for routing them to appropriate WebServices on URL patterns. Servlet uses HttpClient POST method to actually invoke WebService. WebService response is validated for status code and routed back to caller. If SOAP response has SOAP Fault error, does caller (SOAP Client) expect a SOAP Fault error code or any specific information into header. When I am routing SOAP Fault request back to SOAP Client, i am getting following error on Console -

 <Handler weblogic.webservice.core.handler.CheckSoapFaultHandler threw an exception from its handleResponse method. The exception was:
jvm 1    | weblogic.utils.NestedRuntimeException - with nested exception:
jvm 1    | [java.io.IOException: The InputStream did not contain a valid SOAP message.].>

Any suggations? Where am I wrong?

>> The InputStream did not contain a valid SOAP message

This exception seems to be happening because, the client is not getting the valid response in case of faults.

Please check what is complete message that you got at servlet and what is being forwarded to client..
I think, client is not getting the correct/valid soap message.

you can refer.. the following link...


Which actually shows the SOAP message in case of success response and failure response (fault)
Success -- Example 7 and 9
Fault -- Example 9 & 10

SOAPMessage will contain the SOAP Fault tag incase of Faults...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.