Great! Tks Dan. I will use @WebParam for that...

--
Fernando Dourado
Arquitetura de Sistemas
BV-Sistemas :: Votorantim Finanças

-----Mensagem original-----
De: Daniel Kulp [mailto:[EMAIL PROTECTED] 
Enviada em: quarta-feira, 18 de junho de 2008 16:19
Para: users@cxf.apache.org
Assunto: Re: Using soap:header element


On Jun 13, 2008, at 3:13 PM, Fernando Dourado wrote:

> Hi all. My application must receive a sessionId information in soap  
> header.
> Looking in mailist archive, I found this solution:
>
> @WebMethod
> public IdentifierPK add(@WebParam Customer c) {
>  ...
> }
>
> Change to this:
>
> @WebMethod
> public IdentifierPK add(@WebParam Customer c,  
> @WebParam(header="true") String sessionId) {
>  ...
> }
>
> But I can't change the method signature. I must follow bussines  
> interface.
>
> What's the recommended way to add this to WSDL?


For "code first" things, the only way is the @WebParam thing above.   
The only other alternative is to use java2wsdl to generate a wsdl,  
edit it to add the soap:header stuff, and then switch your config to  
be a "wsdl first" thing.

Dan




>
>
> --
> Fernando Dourado
> Arquitetura de Sistemas
> BV-Sistemas :: Votorantim Finanças
>
>
> -----------------------------------------
> Esta mensagem e seus anexos podem conter informações confidenciais
> ou privilegiadas. Se você não é o destinatário dos mesmos você não
> está autorizado a utilizar o material para qualquer fim.Solicitamos
> que você apague a mensagem e avise imediatamente ao remetente. O
> conteúdo desta mensagem e seus anexos não representam
> necessariamente a opinião e a intenção da empresa, não implicando
> em qualquer obrigação ou responsabilidade da parte da mesma.
>
> This message may contain confidential and/or privileged
> information. If you are not the addressee or authorized to receive
> this for the addressee, you must not use, copy, disclose or take
> any action based on this message or any information herein.
> If you have received this message in error, please advise the
> sender immediately by reply e-mail and delete this message. The
> contents of this message and its attachments do not necessarily
> express the opinion or the intention of the company, and do not
> implies any legal obligation or responsibilities from this
> company.
>
>

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to