Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 50326 invoked from network); 20 Jul 2007 03:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 03:15:54 -0000 Received: (qmail 51758 invoked by uid 500); 20 Jul 2007 03:15:24 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 51723 invoked by uid 500); 20 Jul 2007 03:15:24 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 51714 invoked by uid 99); 20 Jul 2007 03:15:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 20:15:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jim.ma@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 20:15:21 -0700 X-IronPort-AV: E=Sophos;i="4.16,559,1175486400"; d="scan'208";a="3131060" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 19 Jul 2007 23:15:00 -0400 Received: from [10.129.9.224] ([10.129.9.224]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Thu, 19 Jul 2007 23:14:59 -0400 Message-ID: <46A0289F.2030406@iona.com> Date: Fri, 20 Jul 2007 11:14:39 +0800 From: Jim Ma User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: cxf-user@incubator.apache.org Subject: Re: Error trying to run client against web service with Header References: <004301c7ca2d$89b7c650$0401a8c0@eschaton> <001e01c7ca4d$fc238fb0$0401a8c0@eschaton> In-Reply-To: <001e01c7ca4d$fc238fb0$0401a8c0@eschaton> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Jul 2007 03:15:00.0171 (UTC) FILETIME=[282669B0:01C7CA7C] X-Virus-Checked: Checked by ClamAV on apache.org Hi, I think this issue is fixed by James couple days before .(http://svn.apache.org/viewvc?view=rev&rev=554819*)* . Did you used the lastest cxf kit ? Cheers Jim kranga wrote: > Can someone please attempt to duplicate this and help me debug the > root cause. The error is with the geenrated code without changes. The > WSDL is readily accessible at the location (you don't have to > register) and the error happens on calling the SoapPort > implementation. Any help is appreciated. > > Thanks > > ----- Original Message ----- From: "kranga" > To: > Sent: Thursday, July 19, 2007 1:52 PM > Subject: Error trying to run client against web service with Header > > >> I'm trying to build a webservice against the WSDL at >> http://www.xignite.com/xRealTime.asmx?WSDL >> >> I generated the client using wsdl2Java included the -exsh flag. >> However, when I run the SOAP client, I get the following exception: >> >> Note: The web service works perfectly when I access from Axis2 >> generated client, but I'd really like to use CXF. So please help! >> >> EXCEPTION STACK TRACE: >> Caused by: org.apache.cxf.service.factory.ServiceConstructionException: >> Could not find a message part matching name >> {http://www.xignite.com/services/}Header. Possible values are >> [{http://www.xignite.com/services/}Time, >> {http://www.xignite.com/services/}Symbol, >> http://www.xignite.com/services/}Exchange]. >> >> at >> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeParameter(Jax >> >> WsServiceFactoryBean.java:393) >> >> at >> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeClassInfo(Jax >> >> WsServiceFactoryBean.java:371) >> >> at >> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation >> >> (JaxWsServiceFactoryBean.java:187) >> >> at >> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOp >> >> erations(ReflectionServiceFactoryBean.java:303) >> >> at >> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation >> >> s(JaxWsServiceFactoryBean.java:196) >> >> at >> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFrom >> >> WSDL(ReflectionServiceFactoryBean.java:195) >> >> at >> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServic >> >> eModel(ReflectionServiceFactoryBean.java:246) >> >> at >> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflectio >> >> nServiceFactoryBean.java:136) >> >> at >> org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpo >> >> intFactory.java:83) >> >> at >> org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:50) >> >> >> at >> org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean >> >> .java:82) >> >> at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:320) >> >> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:238) >> >