Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA6F4D2A5 for ; Mon, 20 May 2013 12:04:42 +0000 (UTC) Received: (qmail 9264 invoked by uid 500); 20 May 2013 12:04:43 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 8977 invoked by uid 500); 20 May 2013 12:04:42 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 8889 invoked by uid 99); 20 May 2013 12:04:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 May 2013 12:04:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brunorene@gmail.com designates 209.85.217.181 as permitted sender) Received: from [209.85.217.181] (HELO mail-lb0-f181.google.com) (209.85.217.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 May 2013 12:04:37 +0000 Received: by mail-lb0-f181.google.com with SMTP id w20so6071781lbh.12 for ; Mon, 20 May 2013 05:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=ApRH4PDQGoamVfQlXnaFkrLTwJM562hD2R/pdqp62EY=; b=Zu7HEVDj2cmhGaCoRucVRW4R53FsKSH2Frab1pzmEhUw84FgVcFAGOlZQSbDfBFObJ NnOCLMKn3Rzj/bYDFLvsbtK9JV1vOmmadaIE9mHMRUwMMssQACBODU4SSYl/34J90KTW RtXBuanxYDOuR3Ct3VaU18664al6yTZ044kJg+abae8a7PRfOax1V72rzVDuyByuWq9A SEkMU/gfyXDqgWm64vfrNCFQZC6lPAs2eNf1JaulWmDE/X4ZX38R/7gr7U3HYm4y2G5w 8nekMx6ybEjUu7GDyrJshKoKW607u9qWqHl6/6gj2LbqFoRAIs3JFXEs82WwEy5a5s9E JQ1g== X-Received: by 10.152.121.105 with SMTP id lj9mr28345789lab.6.1369051455514; Mon, 20 May 2013 05:04:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.161.226 with HTTP; Mon, 20 May 2013 05:03:45 -0700 (PDT) In-Reply-To: <6B658989-503A-41A7-AE61-7272A9D8108B@gmail.com> References: <6B658989-503A-41A7-AE61-7272A9D8108B@gmail.com> From: =?UTF-8?Q?Bruno_Ren=C3=A9_Santos?= Date: Mon, 20 May 2013 13:03:45 +0100 Message-ID: Subject: Re: Add a new Header to a function To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=089e01227716af6dc604dd2521a2 X-Virus-Checked: Checked by ClamAV on apache.org --089e01227716af6dc604dd2521a2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, The complex type was defined as an implicit header. So I user wsdl2java with -exsh true and I was able to configure it afterwards. Regards Bruno On Mon, May 20, 2013 at 11:57 AM, Freeman Fang wrot= e: > Hi, > > You may wanna check this FAQ[1] > [1] > http://cxf.apache.org/faq.html#FAQ-HowcanIaddsoapheaderstotherequest%2Fre= sponse%3F > =EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D= =EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D > Freeman(Yue) Fang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://fusesource.com | http://www.redhat.com/ > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > http://blog.sina.com.cn/u/1473905042 > weibo: @Freeman=E5=B0=8F=E5=B1=8B > > www.camelone.org : The open source integration conference: > > On 2013-5-20, at =E4=B8=8B=E5=8D=885:04, Bruno Ren=C3=A9 Santos wrote: > > > The service I am consuming needs to repeat a complex type on the header > of > > the request. Do I have to create a xml counterpart to the datatype > created > > by CXF or can I insert it as a Java type on the request header? > > > > Regards > > > > -- > > Bruno Ren=C3=A9 Santos > > Lisboa - Portugal > > --=20 Bruno Ren=C3=A9 Santos Lisboa - Portugal --089e01227716af6dc604dd2521a2--