Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » impossible to generate a soap:header part
impossible to generate a soap:header part [message #146896] Mon, 14 November 2005 05:26 Go to next message
Eclipse UserFriend
Originally posted by: lefloch.christophe.cegetel.net

hello,

I want to create an operation with a header part. I create a wsdl file
with an operation element like this :

<wsdl:operation name="SetEmployeeRequest">
<soap:operation
soapAction="http://www.hraccess.com/EmployeeDossier/SetEmployeeRequest"/>
<wsdl:input>
<soap:header part="SetHeader"
message="tns:SetHeader" encodingStyle="UTF-8" namespace="header"
use="literal">
</soap:header>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>

But in my Soap message i don't have any header part, i just have a body
part:


<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:q0="http://www.hraccess.com/EmployeeDossier/"
xmlns:q1="http://www.hraccess.com/common"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<q0:AbsenceEmployee>
<q0:Common>
<q1:UserID>df</q1:UserID>
<q1:TargetID>dd</q1:TargetID>
</q0:Common>
<q0:DateDebut>2005-11-22</q0:DateDebut>
<q0:DateFin>2005-11-22</q0:DateFin>
<q0:Motif>hyh</q0:Motif>
</q0:AbsenceEmployee>
</soapenv:Body>
</soapenv:Envelope>

Is somebody have any idea about this ?


thanks
Re: impossible to generate a soap:header part [message #147178 is a reply to message #146896] Wed, 16 November 2005 01:20 Go to previous messageGo to next message
Eclipse UserFriend
Christophe LEFLOCH wrote:

> I want to create an operation with a header part.
> But in my Soap message i don't have any header part, i just have a body
> part. Is somebody have any idea about this?

Using the WSDL Editor you should be able to edit the bindings (right click
on the binding objects and try "add extensibility elements...". Once and
element is added you can use the properties sheet to modify it's
attributes.

hope that helps
Re: impossible to generate a soap:header part [message #147192 is a reply to message #147178] Wed, 16 November 2005 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christophe.lefloch.cegetel.net

it's not a problem to create an extensible element but once i've created
it , it doesn't appear when i test with web services explorer. I have only
a body part.
Re: impossible to generate a soap:header part [message #147362 is a reply to message #147192] Wed, 16 November 2005 19:08 Go to previous messageGo to next message
Eclipse UserFriend
Christophe LEFLOCH wrote:

> it's not a problem to create an extensible element but once i've created
> it , it doesn't appear when i test with web services explorer. I have only
> a body part.

Ok, that's likely a bug or limitation in the web services explorer.
Please open a bug for that and post back here with the bug #. Assign it
to the wst.ws component.
Re: impossible to generate a soap:header part [message #147697 is a reply to message #147362] Fri, 18 November 2005 08:42 Go to previous messageGo to next message
Eclipse UserFriend
Christophe,
Craig is correct - this is a limitation of the Web Services Explorer. Adding
support for headers is something we have wanted to do for some time, but have
been unable to simply for reasons of bandwidth. I've opened RFE 117034 [1] to
track the requirement properly, and tagged it with the "helpwanted" keyword in
case anyone in the community might be interested in helping with the
enhancement.

Cheers - CB.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=117034

craig wrote:

> Christophe LEFLOCH wrote:
>
> > it's not a problem to create an extensible element but once i've created
> > it , it doesn't appear when i test with web services explorer. I have only
> > a body part.
>
> Ok, that's likely a bug or limitation in the web services explorer.
> Please open a bug for that and post back here with the bug #. Assign it
> to the wst.ws component.
Re: impossible to generate a soap:header part [message #147944 is a reply to message #147697] Mon, 21 November 2005 04:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lefloch.christophe.cegetel.net

Ok, thanks for your help.

So, in the same way, when i generate Java bean skeleton from wsdl file,
there isn't any java class to get soap header part. i should write it
myself ?

Christophe
Re: impossible to generate a soap:header part [message #147951 is a reply to message #147944] Mon, 21 November 2005 05:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christophe.lefloch.cegetel.net

according to web services-axis documentation, i had to use 'public void
method(SOAPEnvelope req, SOAPEnvelope resp)' in order to look at or modify
headers;

i try this
Re: impossible to generate a soap:header part [message #148157 is a reply to message #147951] Mon, 21 November 2005 10:42 Go to previous messageGo to next message
Eclipse UserFriend
Christophe,
the story for generated Java skeletons and clients is different than for the
Web Services Explorer. In WSDL, a SOAP header declared in a SOAP binding
references the message/part that defines the type of the header message. The
referenced message/part may, or may not, also be referenced by the portType:

1. If the message/part used by a SOAP header is referenced by an operation in
the portType, then per JAX-RPC sections 11.1 and 11.2.2 "Explicit Service
Context", the header message will be mapped to a Java parameter on the
operation's corresponding business method on the Java SEI. This is "explicit"
header processing.

2. If the message/part used by a SOAP header is not referenced by an operation
in the portType, then the header message will not be mapped, or exposed in any
way, on the SEI, and - from a JAX-RPC perspective - can only be manipulated by
using Handlers. This is "implicit" header processing.

For an example of the explicit mapping which maps headers in the WSDL to
parameters on the business methods of your Java service endpoint interface,
have a look in axis-1_2_1/samples/ws-i/scm/source/ at these files:
1. wsdl/partial/Warehouse.wsdl
2.
java/implemented/org/apache/axis/wsi/scm/warehouse/Warehouse SoapBindingImplC.java

Cheers - CB.

[1] http://www.jcp.org/en/jsr/detail?id=101

Christophe LEFLOCH wrote:

> according to web services-axis documentation, i had to use 'public void
> method(SOAPEnvelope req, SOAPEnvelope resp)' in order to look at or modify
> headers;
>
> i try this
Re: impossible to generate a soap:header part [message #148868 is a reply to message #148157] Thu, 24 November 2005 05:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lefloch.christophe.cegetel.net

Ok thanks that's all right !
i'm going to use stylus studio to test the service web with a header part
Re: impossible to generate a soap:header part [message #148914 is a reply to message #148868] Thu, 24 November 2005 09:11 Go to previous message
Eclipse UserFriend
Originally posted by: lefloch.christophe.cegetel.net

that's all right. the header part in input and in output is correctly
mapped.

thank you very much for your assistance
Previous Topic:I200511162235 - Problem adding additional modules to web project
Next Topic:0.7.1: How to make files with extent not ".xml" use XML editor?
Goto Forum:
  


Current Time: Wed Apr 23 11:54:56 EDT 2025

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

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

Back to the top