Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 20178 invoked from network); 8 Nov 2007 03:24:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2007 03:24:02 -0000 Received: (qmail 99609 invoked by uid 500); 8 Nov 2007 03:23:50 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 99570 invoked by uid 500); 8 Nov 2007 03:23:50 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 99561 invoked by uid 99); 8 Nov 2007 03:23:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 19:23:49 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.79.197.59] (HELO mesa2.com) (64.79.197.59) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2007 03:24:23 +0000 Received: from [24.147.10.180] (account jdkulp HELO [192.168.1.102]) by mesa2.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 1465992; Wed, 07 Nov 2007 22:23:01 -0500 From: Daniel Kulp To: cxf-dev@incubator.apache.org Subject: Re: WS Addressing - the API approach Date: Wed, 7 Nov 2007 22:22:04 -0500 User-Agent: KMail/1.9.7 Cc: James Mao References: <473181F1.2030407@iona.com> <473278C0.5090805@iona.com> <47327E7A.6030707@iona.com> In-Reply-To: <47327E7A.6030707@iona.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711072222.04434.dkulp@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org There might be another issue in the MAPAggregator as well. The messageIds field has two issues: 1) It's not thread safe. Probably change to ConcurrentHashMap or use a synchronized map. 2) There is a put, but I don't see any removes anywhere. That concerns me. Dan On Wednesday 07 November 2007, James Mao wrote: > Thanks Jim, > > There's couple ways to enable the ws-a, and it's in > MAPAggregator.usingAddressing, i guess you probably saw the code > already. > > James > > > Hi , > > > > It seems do not work even I explicitly set UsingAddressingAdvisory > > to true. This is an issue in the WSAddressingFeature. > > > > The only way I can get it working is add wsdl url , service name and > > endpoint name to JaxWsProxyFactoryBean : > > > > factory.setServiceName(SERVICE_NAME); > > factory.setEndpointName(PORT_NAME); > > factory.setWsdlURL(wsdl.toURL().toString()); > > > > And MAPAggregator can get the UsingAdressing information through > > wsdl . > > > > Regards > > > > Jim > > > >> James, > >> > >> This is one of the things of the ws-addressing feature that I > >> personally think is totally broken. > >> If you do: > >> > >> WSAddressingFeature feature = new WSAddressingFeature(); > >> feature.setUsingAddressingAdvisory(true); > >> factory.getFeatures().add(feature); > >> > >> it probably will work. IMO, the "true" flag should be the DEFAULT > >> when using the WSAddressingFeature. > >> > >> Dan > >> > >> On Wednesday 07 November 2007, James Mao wrote: > >>> Hi, > >>> > >>> I'm trying to enable the ws-a through the API approach which > >>> described in the doc [1], but the message i captured told me that > >>> the ws-a is definitely not working. > >>> > >>> Client side code: > >>> > >>> JaxWsProxyFactoryBean factory = new > >>> JaxWsProxyFactoryBean(); factory.setServiceClass(Greeter.class); > >>> > >>> factory.setAddress("http://localhost:8080/SoapContext/SoapPort"); > >>> factory.getFeatures().add(new WSAddressingFeature()); Greeter port > >>> = (Greeter) factory.create(); > >>> > >>> Service side code: > >>> > >>> EndpointImpl ep = (EndpointImpl) > >>> Endpoint.create(implementor); ep.getFeatures().add(new > >>> WSAddressingFeature()); > >>> ep.publish(address); > >>> > >>> Am I miss anything? > >>> > >>> Or > >>> > >>> We have to use the Spring config to enable to ws-a? > >>> > >>> > >>> Thanks in advance! > >>> James > >>> > >>> > >>> > >>> [1]http://cwiki.apache.org/CXF20DOC/ws-addressing.html -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 daniel.kulp@iona.com http://www.dankulp.com/blog