Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » soap:headerFault not properly serialized?
soap:headerFault not properly serialized? [message #195239] Fri, 29 June 2007 22:48 Go to next message
Johann is currently offline JohannFriend
Messages: 8
Registered: July 2009
Junior Member
I'm programmatically generating a WSDL document using the
org.eclipse.wst.wsdl libraries. I set up my
soap:header object and add a soap:headerFault object to it. But when I
serialize the WSDL document to a file, all I get
is the soap:header element and no soap:headerFault element. I'm adding the
soap:headerFault like so

SOAPHeader soapHeader = SOAPFactory.eINSTANCE.createSOAPHeader();

....

SOAPHeaderFault soapHeaderFault =
SOAPFactory.eINSTANCE.createSOAPHeaderFault();

....

soapHeader.getHeaderFaults().add(soapHeaderFault);


Here's the result that I get.
<wsdl:input>
<soap:header encodingStyle="soapheaderencodingstyle style2"
message="tns:m1" namespace="soapheadernamespace" part="part1"
use="literal"/>
</wsdl:input>


Before serialization, I am able to browse into my Definition object in the
debugger and confirm that the soap:HeaderFault object is contained in the
soap:Header object.

My org.eclipse.wst.wsdl plugin is v1.0.102.

Is this an serialization problem similar to mime:multipartRelated, or am I
doing something wrong?

Thanks.

Johann
Re: soap:headerFault not properly serialized? [message #195249 is a reply to message #195239] Sat, 30 June 2007 00:38 Go to previous message
Eclipse UserFriend
Originally posted by: valentinbaciu.hotmail.com

Yes, this appears to be similar to the MIME bug. It appears the
serialization code is missing. I'm speculating this stayed hidden because
the main client for the model is the WSDL editor and the editor is
manipulating the underlying DOM directly for all extensibility elements.

Please open a bug. Until we get a chance to fix it (best case scenario WTP
1.5.5 and/or 2.0.1) you can use the same approach to add the soap header
faults: manipulate the DOM directly.

Valentin

"Johann" <td_jbrun@yahoo.com> wrote in message
news:f642a2$vt6$3@build.eclipse.org...
> I'm programmatically generating a WSDL document using the
> org.eclipse.wst.wsdl libraries. I set up my
> soap:header object and add a soap:headerFault object to it. But when I
> serialize the WSDL document to a file, all I get
> is the soap:header element and no soap:headerFault element. I'm adding the
> soap:headerFault like so
>
> SOAPHeader soapHeader = SOAPFactory.eINSTANCE.createSOAPHeader();
>
> ...
>
> SOAPHeaderFault soapHeaderFault =
> SOAPFactory.eINSTANCE.createSOAPHeaderFault();
>
> ...
>
> soapHeader.getHeaderFaults().add(soapHeaderFault);
>
>
> Here's the result that I get.
> <wsdl:input>
> <soap:header encodingStyle="soapheaderencodingstyle style2"
> message="tns:m1" namespace="soapheadernamespace" part="part1"
> use="literal"/>
> </wsdl:input>
>
>
> Before serialization, I am able to browse into my Definition object in the
> debugger and confirm that the soap:HeaderFault object is contained in the
> soap:Header object.
>
> My org.eclipse.wst.wsdl plugin is v1.0.102.
>
> Is this an serialization problem similar to mime:multipartRelated, or am I
> doing something wrong?
>
> Thanks.
>
> Johann
>
>
>
>
>
Previous Topic:about that Web Browser icon on Eclipse ToolBar
Next Topic:strange problem about compiling my first servlet
Goto Forum:
  


Current Time: Thu Apr 25 05:08:51 GMT 2024

Powered by FUDForum. Page generated in 0.02314 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top