Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > fault element in operation but not in binding

Thread Tools

fault element in operation but not in binding
Posts: n/a
Hi All,

I have a portType such as this:

<portType name="CMLeJobSoapGetEmpBrand">
<operation name="EJobGetEmpBrand">
<input message="tns:EJobEmpBrdReq" name="EJobEmpBrdReq"/>
<output message="tns:EJobGetEmpBrdRes" name="EJobGetEmpBrdRes"/>
<fault message="tns:Fault" name="Fault"/>

and a binding to match it:

<binding name="MS_ALPHA_EJOB_PRJHTTP_SOAP_Binding_GetEmpBra nd"
<soap:binding style="document"
<operation name="EJobGetEmpBrand">
<soapperation style="document" soapAction=""/>
<input name="EJobEmpBrdReq">
<soap:body encodingStyle=""
parts="EJobEmpBrdReqBody" use="literal"/>
<output name="EJobGetEmpBrdRes">
<soap:body encodingStyle=""
parts="EJobGetEmpBrdResBody" use="literal"/>

My question is this: the operation in the portType defines a fault
message which is not mirrored in the binding element. Does this matter?
Could this mean that if a parser found a fault message it wouldn't
expect it - and thus find itself in error?

My problem is that my Java parser is throwing an exception:
java.lang.Exception: WSWS3379E: Error: Prefix is undefined.
The response message was a FAULT and the error sounds like it was
trying to parse an element it didn't expect - and the binding element
above doesn't mention FAULT.

Thanks for any advice!


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boolean operation and arithmetic operation Buzz Lightyear C++ 10 08-12-2009 01:27 PM
how to Update/insert an xml element's text----> (<element>text</element>) HANM XML 2 01-29-2008 03:31 PM
I/O operation, file operation behaviou raan C++ 2 08-16-2007 07:13 PM
Does bit operation always work more efficiently than math operation? david ullua C Programming 13 03-01-2006 11:02 PM
IE6 illegal operation fault sunny Computer Support 1 09-20-2004 06:32 PM