From heatherfrank@example.org Fri May 01 04:08:36 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 48149 invoked from network); 1 May 2009 04:08:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 04:08:36 -0000 Received: (qmail 49446 invoked by uid 500); 1 May 2009 04:08:35 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 49376 invoked by uid 500); 1 May 2009 04:08:35 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 49366 invoked by uid 99); 1 May 2009 04:08:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 04:08:34 +0000 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 (athena.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 04:08:26 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <heatherfrank@example.org>) id 1Lzk2e-0000bP-DN for heatherfrank@example.org; Thu, 30 Apr 2009 21:08:05 -0700 Message-ID: <heatherfrank@example.org> Date: Thu, 30 Apr 2009 21:08:04 -0700 (PDT) From: Yuriy Halytskyy <heatherfrank@example.org> To: heatherfrank@example.org Subject: exchanging org.w3c.Document via Aegis binding problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: heatherfrank@example.org X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am having some problems passing an XML via SOAP. The server sends the document inside <return> tags like any other result, but the client gets xml with <return>...</return> tags un-stripped. The org3.dom.Document as parameter type does not cause any issues. The server configuration is: <jaxws:endpoint id="grisu" implementor="org.vpac.grisu.control.serviceInterfaces.WsServiceInterface" address="/grisu"> <jaxws:serviceFactory> <ref bean='jaxws-and-aegis-service-factory' /> </jaxws:serviceFactory> </jaxws:endpoint> <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype"> <property name="aegisContext" ref="aegisContext"/> </bean> <bean id="aegisContext" class="org.apache.cxf.aegis.AegisContext" scope="prototype"> <property name="readXsiTypes" value="true"/> <property name="writeXsiTypes" value="true"/> <property name="mtomEnabled" value="true"/> </bean> <bean id="jaxws-and-aegis-service-factory" class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean" scope="prototype"> <property name="dataBinding" ref="aegisBean"/> <!-- <jaxws:properties> <entry key="mtom-enabled" value="true"/> </jaxws:properties> --> </bean> Client does not have any special configuration. Thanks, Yuriy -- View this message in context: http://www.nabble.com/exchanging-org.w3c.Document-via-Aegis-binding-problem-tp23328232p23328232.html Sent from the cxf-user mailing list heatherfrank@example.org. From heatherfrank@example.org Fri May 01 07:39:17 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 15501 invoked from network); 1 May 2009 07:39:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 07:39:14 -0000 Received: (qmail 48159 invoked by uid 500); 1 May 2009 07:39:13 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 48072 invoked by uid 500); 1 May 2009 07:39:13 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 48061 invoked by uid 99); 1 May 2009 07:39:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 07:39:13 +0000 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 (athena.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 07:39:05 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <heatherfrank@example.org>) id 1LznKW-0007yn-9h for heatherfrank@example.org; Fri, 01 May 2009 00:38:44 -0700 Message-ID: <heatherfrank@example.org> Date: Fri, 1 May 2009 00:38:44 -0700 (PDT) From: marcob <heatherfrank@example.org> To: heatherfrank@example.org Subject: Re: CXF 2.2.x ampersand issue In-Reply-To: <heatherfrank@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: heatherfrank@example.org References: <heatherfrank@example.org> <heatherfrank@example.org> X-Virus-Checked: Checked by ClamAV on apache.org That was my first reaction as well! Yes, I have CXF at both ends. I don't know if it might help, but in the previous post I forgot to say that my WS stack also includes a WS Security Interceptor. When I come back to the office (Monday), I'll test the same code without WS-Security and check whether exists a more updated version of woodstox library. In the meanwhile, any further suggestion is very welcome! Marco bimargulies wrote: > > My first reaction is that I don't believe it. It is the woodstox code that > handles all of this, not us. Is the CXF on both ends? > > On Thu, Apr 30, 2009 at 12:21 PM, marcob <heatherfrank@example.org> wrote: > >> >> Hi, >> >> I've found this unexpected behaviour while using cxf 2.2.x + JaxWS + >> Aegis. >> If I define a method that accepts string parameters, e.g. >> >> public void echo(String text) { >> System.out.println(text); >> } >> >> and I pass a string containing the ampersand character (&), e.g. >> "john&lucy", the echo method only prints "john". I investigated the >> problem >> with an HTTP Monitor and it seems that at client side the string is >> correctly escaped (the SOAP request contains the "john&amp;amp;lucy" >> text) >> but, at server side, the string is truncated at the & character position. >> >> From my point of view, it seems to be a bug. >> Any solution? >> Thanks >> Marco >> -- >> View this message in context: >> http://www.nabble.com/CXF-2.2.x-ampersand-issue-tp23319655p23319655.html >> Sent from the cxf-user mailing list heatherfrank@example.org. >> >> > > -- View this message in context: http://www.nabble.com/CXF-2.2.x-ampersand-issue-tp23319655p23329440.html Sent from the cxf-user mailing list heatherfrank@example.org. From heatherfrank@example.org Fri May 01 08:10:18 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 20705 invoked from network); 1 May 2009 08:10:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 08:10:18 -0000 Received: (qmail 64687 invoked by uid 500); 1 May 2009 08:10:17 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 64608 invoked by uid 500); 1 May 2009 08:10:17 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 64598 invoked by uid 99); 1 May 2009 08:10:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 08:10:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO yw-out-1718.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 08:10:06 +0000 Received: by yw-out-1718.google.com with SMTP id 9so1414577ywk.6 for <heatherfrank@example.org>; Fri, 01 May 2009 01:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=eoqo5gpMoZyR4KiF8IYrXVi4jb2m9nqSN4cHMJ/IscA=; b=b8DFzlGBGqH5Er74+QUoKrpNTmFtgBr80CYOh3r19qwe3hYs0Y19S/gLK9fMR/3rhP zPAPBsYBysyi6+YvbTLnh2iwoueRugBYk54TVMTQWVCSIsgdgXxOzbmaL9PAHkZrgmAH mLVvAA43OeBZ+z+nh2971hBN/D9O/ImzJTLUo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=d2I6jP2A83pH2mlJLPcuFhuW8AL9q8CBPb54j2KCkcgKCqKbaWXFDc6pkt0ELLQeH+ j7Ry3MYY+lcQEYxQJHAkRn5prpoRvGSMsTjUxTJPZZI4hMg8gln+T0AN7DIkWwYQcg0S hOq+Al+LpDtNviAQdwrUn6ixsy5mfk1GCyzbA= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id j12mr5235736ybn.42.1241165385144; Fri, 01 May 2009 01:09:45 -0700 (PDT) In-Reply-To: <heatherfrank@example.org> References: <heatherfrank@example.org> From: David Bosschaert <heatherfrank@example.org> Date: Fri, 1 May 2009 09:09:25 +0100 Message-ID: <heatherfrank@example.org> Subject: Re: dosgi - Problems with Client binding to more then one remote service To: heatherfrank@example.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Todd, To islote the problem I tried to reproduce it without spring, for this I modified the DOSGi Greeter demo. On the server side I simply register two the same object twice under two contexts: public void start(BundleContext bc) throws Exception { Dictionary<String, Object> props =3D new Hashtable<String, Object>(= ); props.put("osgi.remote.interfaces", "*"); props.put("osgi.remote.configuration.type", "pojo"); props.put("osgi.remote.configuration.pojo.address", "http://localhost:9090/greeterA"); registration =3D bc.registerService(GreeterService.class.getName(), new GreeterServiceImpl(), props); Dictionary<String, Object> props2 =3D new Hashtable<String, Object>= (); props2.put("osgi.remote.interfaces", "*"); props2.put("osgi.remote.configuration.type", "pojo"); props2.put("osgi.remote.configuration.pojo.address", "http://localhost:9090/greeterB"); registration2 =3D bc.registerService(GreeterService.class.getName()= , new GreeterServiceImpl(), props2)= ; While on the client side I register both in my remote-services.xml file: <service-descriptions xmlns=3D"http://www.osgi.org/xmlns/sd/v1.0.0"> <service-description> <provide interface=3D"org.apache.cxf.dosgi.samples.greeter.GreeterServi= ce" /> <property name=3D"osgi.remote.interfaces">*</property> <property name=3D"osgi.remote.configuration.type">pojo</property> <property name=3D"osgi.remote.configuration.pojo.address">http://localh= ost:9090/greeterB</property> </service-description> <service-description> <provide interface=3D"org.apache.cxf.dosgi.samples.greeter.GreeterServi= ce" /> <property name=3D"osgi.remote.interfaces">*</property> <property name=3D"osgi.remote.configuration.type">pojo</property> <property name=3D"osgi.remote.configuration.pojo.address">http://localh= ost:9090/greeterA</property> </service-description> </service-descriptions> This works well for me, the consumer gets a reference to both remote services and can invoke on them. See if it works for you if you go back to a more basic scenario. If it doesn't could you maybe provide a test case (with code)? Thanks, David 2009/4/30 Nist, Todd (IHG) <heatherfrank@example.org>: > > Hi, > > I am encountering the following problem with a client, written in spring = osgi / dm > that is attempting to bind to 2 osgi services using distributed osgi prov= ided by > CXF. =A0If I only define 1 <service-description> and reference one of the= services > the client works fine. =A0If I define 2 <service-description> tags within > <service-descriptions> as below I get the error shown below. > > When the client is started I see the following errors: > > Apr 30, 2009 12:14:55 PM org.springframework.osgi.extender.support.Defaul= tOsgiAp > plicationContextCreator createApplicationContext > INFO: Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bu= ndle [C > ampaign Service Consumer Bundle (com.ihg.crm.service.client)] > -> Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.discovery.local.LocalDis= coveryS > ervice bundleChanged > INFO: bundle changed: com.ihg.crm.service.client > Apr 30, 2009 12:14:55 PM org.springframework.context.support.AbstractAppl= ication > Context prepareRefresh > INFO: Refreshing org.springframework.osgi.context.support.OsgiBundleXmlAp= plicati > onContext@1d32a62: display name [OsgiBundleXmlApplicationContext(bundle= =3Dcom.ihg. > crm.service.client, config=3Dosgibundle:/META-INF/spring/*.xml)]; startup= date [Th > u Apr 30 12:14:55 EDT 2009]; root of context hierarchy > Apr 30, 2009 12:14:55 PM org.springframework.osgi.context.support.Abstrac= tOsgiBu > ndleApplicationContext unpublishContextAsOsgiService > INFO: Unpublishing application context OSGi service for bundle Campaign S= ervice > Consumer Bundle (com.ihg.crm.service.client) > Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice triggerCallbacks > INFO: check if string: com.ihg.crm.service.campaign.OfferService containe= d by [c > om.ihg.crm.service.campaign.CampaignService] > Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice triggerCallbacks > INFO: check if string: com.ihg.crm.service.campaign.OfferService containe= d by [c > om.ihg.crm.service.campaign.CampaignService] > Apr 30, 2009 12:14:55 PM org.springframework.beans.factory.xml.XmlBeanDef= inition > Reader loadBeanDefinitions > INFO: Loading XML bean definitions from URL [bundle://37.0:0/META-INF/spr= ing/bun > dle-context-osgi.xml] > Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice triggerCallbacks > INFO: check if string: (|(service.interface=3Dcom.ihg.crm.service.campaig= n.Campaig > nService)(service.interface=3Dcom.ihg.crm.service.campaign.OfferService))= matches > [com.ihg.crm.service.campaign.CampaignService] > Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice triggerCallbacks > INFO: check if string: com.ihg.crm.service.campaign.OfferService containe= d by [c > om.ihg.crm.service.campaign.OfferService] > Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHoo= k$Disco > veryCallback serviceChanged > INFO: Notified - AVAILABLE: [com.ihg.crm.service.campaign.OfferService] e= ndpoint > =A0id: null > Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHoo= k unkno > wnEndpointId > WARNING: registering proxy with unknown duplicate status as endpoint ID u= nset > Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHoo= k cache > EndpointId > WARNING: cannot cache proxy registration as endpoint ID unset > Apr 30, 2009 12:14:55 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice triggerCallbacks > INFO: check if string: com.ihg.crm.service.campaign.OfferService containe= d by [c > om.ihg.crm.service.campaign.OfferService] > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHoo= k$Disco > veryCallback serviceChanged > INFO: Notified - AVAILABLE: [com.ihg.crm.service.campaign.OfferService] e= ndpoint > =A0id: null > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHoo= k unkno > wnEndpointId > WARNING: registering proxy with unknown duplicate status as endpoint ID u= nset > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHoo= k cache > EndpointId > WARNING: cannot cache proxy registration as endpoint ID unset > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice triggerCallbacks > INFO: check if string: (|(service.interface=3Dcom.ihg.crm.service.campaig= n.Campaig > nService)(service.interface=3Dcom.ihg.crm.service.campaign.OfferService))= matches > [com.ihg.crm.service.campaign.OfferService] > Apr 30, 2009 12:14:56 PM org.springframework.context.support.AbstractAppl= ication > Context obtainFreshBeanFactory > INFO: Bean factory for application context [org.springframework.osgi.cont= ext.sup > port.OsgiBundleXmlApplicationContext@1d32a62]: org.springframework.beans.= factory > .support.DefaultListableBeanFactory@eb6e29 > Apr 30, 2009 12:14:56 PM org.springframework.osgi.extender.internal.depen= dencies > .startup.DependencyServiceManager doFindDependencies > INFO: Adding OSGi service dependency for importer [&campaignServiceRef] m= atching > =A0OSGi filter [(objectClass=3Dcom.ihg.crm.service.campaign.CampaignServi= ce)] > Apr 30, 2009 12:14:56 PM org.springframework.osgi.extender.internal.depen= dencies > .startup.DependencyServiceManager findServiceDependencies > INFO: OsgiBundleXmlApplicationContext(bundle=3Dcom.ihg.crm.service.client= , config=3D > osgibundle:/META-INF/spring/*.xml) is waiting for unsatisfied dependencie= s [[&ca > mpaignServiceRef]] > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHoo= k looku > pDiscoveryService > INFO: lookup discovery service: interface: com.ihg.crm.service.campaign.C= ampaign > Service filter: null > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice updateTracker > INFO: updating tracker: org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook= $Discov > eryCallback@3e926 > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice addTracker > INFO: adding tracker: org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$D= iscover > yCallback@3e926 collection: [com.ihg.crm.service.campaign.OfferService, c= om.ihg. > crm.service.campaign.OfferService, com.ihg.crm.service.campaign.CampaignS= ervice] > =A0registered against prop: osgi.discovery.interest.interfaces > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice addTracker > INFO: adding tracker: org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$D= iscover > yCallback@3e926 collection: [(|(service.interface=3Dcom.ihg.crm.service.c= ampaign.C > ampaignService)(service.interface=3Dcom.ihg.crm.service.campaign.OfferSer= vice))] r > egistered against prop: osgi.discovery.interest.filters > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice triggerCallbacks > INFO: search for matches to trigger callbacks with delta: [] > Apr 30, 2009 12:14:56 PM org.apache.cxf.dosgi.discovery.local.LocalDiscov= eryServ > ice triggerCallbacks > INFO: search for matches to trigger callbacks with delta: [] > > > The 2 services and client code are written using spring osgi / dm and run= ning > within equinox for the server and felix for the client. =A0The services > bundle-context-osgi.xml files look as follows: > > > CampaignService - bundle-context-osgi.xml > > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <beans xmlns=3D"http://www.springframework.org/schema/beans" > =A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > =A0xmlns:osgi=3D"http://www.springframework.org/schema/osgi" > =A0xsi:schemaLocation=3D"http://www.springframework.org/schema/beans http= ://www.springframework.org/schema/beans/spring-beans.xsd > =A0http://www.springframework.org/schema/osgi http://www.springframework.= org/schema/osgi/spring-osgi.xsd"> > > =A0 =A0<osgi:reference id=3D"dataSourceRef" interface=3D"javax.sql.DataSo= urce"/> > =A0 =A0<osgi:service interface=3D"com.ihg.crm.service.campaign.CampaignSe= rvice"> > =A0 =A0 =A0 =A0 =A0<osgi:service-properties> > =A0 =A0 =A0 =A0 =A0 =A0<entry key=3D"osgi.remote.interfaces" value=3D"*" = /> > =A0 =A0 =A0 =A0 =A0 =A0<!-- entry key=3D"osgi.remote.configuration.type" = value=3D"pojo" / --> > =A0 =A0 =A0 =A0 =A0 =A0<!-- entry key=3D"osgi.remote.configuration.pojo.h= ttpservice.context" value=3D"/offer" / --> > =A0 =A0 =A0 =A0 =A0</osgi:service-properties> > =A0 =A0 =A0 =A0 =A0<bean class=3D"com.ihg.crm.service.campaign.impl.Campa= ignServiceImpl" > =A0 =A0 =A0 =A0 =A0 =A0 =A0init-method=3D"start"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0<property name=3D"dataSource" ref=3D"dataSourc= eRef" /> > =A0 =A0 =A0 =A0 =A0</bean> > =A0 =A0 =A0 =A0</osgi:service> > </beans> > > OfferService - bundle-context-osgi.xml > > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <beans xmlns=3D"http://www.springframework.org/schema/beans" > =A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > =A0xmlns:osgi=3D"http://www.springframework.org/schema/osgi" > =A0xsi:schemaLocation=3D"http://www.springframework.org/schema/beans http= ://www.springframework.org/schema/beans/spring-beans.xsd > =A0http://www.springframework.org/schema/osgi http://www.springframework.= org/schema/osgi/spring-osgi.xsd"> > > =A0 =A0 =A0 =A0<osgi:reference id=3D"dataSourceRef" interface=3D"javax.sq= l.DataSource"/> > =A0 =A0 =A0 =A0<osgi:service interface=3D"com.ihg.crm.service.campaign.Of= ferService"> > =A0 =A0 =A0 =A0 =A0<osgi:service-properties> > =A0 =A0 =A0 =A0 =A0 =A0<entry key=3D"osgi.remote.interfaces" value=3D"*" = /> > =A0 =A0 =A0 =A0 =A0</osgi:service-properties> > =A0 =A0 =A0 =A0 =A0<bean class=3D"com.ihg.crm.service.offer.impl.OfferSer= viceImpl" > =A0 =A0 =A0 =A0 =A0 =A0 =A0init-method=3D"start"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0<property name=3D"dataSource" ref=3D"dataSourc= eRef" /> > =A0 =A0 =A0 =A0 =A0</bean> > =A0 =A0 =A0 =A0</osgi:service> > </beans> > > A ss on the equinox instance shows all bundles deployed and active: > > osgi> ss > > Framework is launched. > > id =A0 =A0 =A0State =A0 =A0 =A0 Bundle > 0 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0org.eclipse.osgi_3.5.0.v20090311-1300 > 1 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0org.eclipse.osgi.services_3.2.0.v20090306= -1900 > 2 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0javax.servlet_2.5.0.v200806031605 > 3 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0com.springsource.org.apache.commons.pool_= 1.3.0 > 4 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0com.springsource.org.apache.commons.dbcp_= 1.2.2.osgi > 5 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0com.springsource.javax.resource_1.5.0 > 6 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0com.springsource.oracle.jdbc_83.161.120.155 > 7 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0org.apache.geronimo.specs.geronimo-annota= tion_1.0_spec_1.1.1 > 8 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0org.apache.geronimo.specs.geronimo-activa= tion_1.1_spec_1.0.2 > 9 =A0 =A0 =A0 ACTIVE =A0 =A0 =A0org.apache.geronimo.specs.geronimo-javama= il_1.4_spec_1.2.0 > 10 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.geronimo.specs.geronimo-ws-met= adata_2.0_spec_1.1.2 > 11 =A0 =A0 =A0ACTIVE =A0 =A0 =A0com.springsource.slf4j.org.apache.commons= .logging_1.5.0 > 12 =A0 =A0 =A0ACTIVE =A0 =A0 =A0com.springsource.slf4j.api_1.5.0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Fragments=3D13 > 13 =A0 =A0 =A0RESOLVED =A0 =A0com.springsource.slf4j.log4j_1.5.0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Master=3D12 > 14 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.osgi.log4j.osgi_1.2.1= 5.SNAPSHOT > 15 =A0 =A0 =A0ACTIVE =A0 =A0 =A0com.springsource.org.jdom_1.0.0 > 16 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.core_2.5.6 > 17 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.beans_2.5.6 > 18 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.context_2.5.6 > 19 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.transaction_2.5.6 > 20 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.jdbc_2.5.6 > 21 =A0 =A0 =A0ACTIVE =A0 =A0 =A0com.springsource.org.aopalliance_1.0.0 > 22 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.aop_2.5.6 > 23 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.osgi.io_1.2.0 > 24 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.osgi.core_1.2.0 > 25 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.springframework.osgi.extender_1.2.0 > 26 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.ops4j.pax.web.service_0.5.1 > 27 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.bundles.jaxb-impl_2= .1.6.1 > 28 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.bundles.wsdl4j_1.6.= 1.1 > 29 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.bundles.xmlsec_1.3.= 0.1 > 30 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.bundles.xmlschema_1= .4.3.1 > 31 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.bundles.asm_83.161.120.155 > 32 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.bundles.xmlresolver= _83.161.120.155 > 33 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.bundles.neethi_2.0.= 4.1 > 34 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.bundles.woodstox_3.= 2.7.1 > 35 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.cxf.bundle-minimal_2.2.1.SNAPS= HOT > 36 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.specs.saaj-api-1.3_= 1.1.1 > 37 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.specs.stax-api-1.0_= 1.1.1 > 38 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.specs.jaxb-api-2.1_= 1.1.1 > 39 =A0 =A0 =A0ACTIVE =A0 =A0 =A0org.apache.servicemix.specs.jaxws-api-2.1= _1.1.1 > 40 =A0 =A0 =A0ACTIVE =A0 =A0 =A0cxf-dosgi-ri-discovery-local_1.0.0.SNAPSH= OT > 41 =A0 =A0 =A0ACTIVE =A0 =A0 =A0cxf-dosgi-ri-dsw-cxf_1.0.0.SNAPSHOT > 42 =A0 =A0 =A0ACTIVE =A0 =A0 =A0datasource_0.0.1 > 43 =A0 =A0 =A0ACTIVE =A0 =A0 =A0com.ihg.crm.model.campaign_0.0.1.SNAPSHOT > 44 =A0 =A0 =A0ACTIVE =A0 =A0 =A0com.ihg.crm.service.campaign.interface_0.= 0.1.SNAPSHOT > 45 =A0 =A0 =A0ACTIVE =A0 =A0 =A0com.ihg.crm.service.offer.impl_0.0.1.SNAP= SHOT > 46 =A0 =A0 =A0ACTIVE =A0 =A0 =A0CampaignServiceImpl_0.0.1 > 47 =A0 =A0 =A0ACTIVE =A0 =A0 =A0com.unicacorp.interact.api_0.0.0 > > > I am able to access both services via the browser by pointing to the url = which they are exposed on and receive the wsdl back (http://83.161.120.155:9= 000/com/ihg/crm/service/campaign/CampaignService?wsdl and > http://83.161.120.155:9000/com/ihg/crm/service/campaign/OfferService?wsdl)= so I can see that both services are up and running. > > > The client bundle-osgi-context.xml looks like this: > > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <beans xmlns=3D"http://www.springframework.org/schema/beans" > =A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > =A0xmlns:osgi=3D"http://www.springframework.org/schema/osgi" > =A0xsi:schemaLocation=3D"http://www.springframework.org/schema/beans http= ://www.springframework.org/schema/beans/spring-beans.xsd > =A0http://www.springframework.org/schema/osgi http://www.springframework.= org/schema/osgi/spring-osgi.xsd"> > > =A0<osgi:reference id=3D"campaignServiceRef" interface=3D"com.ihg.crm.ser= vice.campaign.CampaignService"/> > =A0<osgi:reference id=3D"offerServiceRef" interface=3D"com.ihg.crm.servic= e.campaign.OfferService"/> > > =A0<bean class=3D"com.ihg.crm.service.campaign.client.CampaignServiceCons= umer" > =A0 =A0 =A0 =A0init-method=3D"start"> > =A0 =A0<property name=3D"campaignService" ref=3D"campaignServiceRef"/> > =A0 =A0<property name=3D"offerService" ref =3D "offerServiceRef"/> > =A0</bean> > > </beans> > > My Client has the following definition for discovering the services withi= n the remote-services.xml > > <service-descriptions xmlns=3D"http://www.osgi.org/xmlns/sd/v1.0.0"> > =A0<service-description> > =A0 =A0<provide interface=3D"com.ihg.crm.service.campaign.CampaignService= " /> > =A0 =A0<property name=3D"osgi.remote.interfaces">*</property> > =A0 =A0<property name=3D"service.intents">SOAP HTTP</property> > =A0 =A0<property name=3D"osgi.remote.configuration.type">pojo</property> > =A0 =A0<!-- property name=3D"osgi.remote.configuration.pojo.address">http= ://localhost:8080/offer</property --> > =A0 =A0<property name=3D"osgi.remote.configuration.pojo.address"> > =A0 =A0 =A0 =A0http://83.161.120.155:9000/com/ihg/crm/service/campaign/Cam= paignService > =A0 =A0</property> > =A0</service-description> > =A0<service-description> > =A0 =A0<provide interface=3D"com.ihg.crm.service.campaign.OfferService" /= > > =A0 =A0<property name=3D"osgi.remote.interfaces">*</property> > =A0 =A0<property name=3D"service.intents">SOAP HTTP</property> > =A0 =A0<property name=3D"osgi.remote.configuration.type">pojo</property> > =A0 =A0<!-- property name=3D"osgi.remote.configuration.pojo.address">http= ://localhost:8080/offer</property --> > =A0 =A0<property name=3D"osgi.remote.configuration.pojo.address"> > =A0 =A0 =A0 =A0http://83.161.120.155:9000/com/ihg/crm/service/campaign/Off= erService > =A0 =A0</property> > =A0</service-description> > </service-descriptions> > > > Client Bundles (Campaign Service Consumer Bundle) - Felix: > > -> ps > START LEVEL 1 > =A0 ID =A0 State =A0 =A0 =A0 =A0 Level =A0Name > [ =A0 0] [Active =A0 =A0 ] [ =A0 =A00] System Bundle (1.4.1) > [ =A0 1] [Active =A0 =A0 ] [ =A0 =A01] Apache Felix Shell Service (1.0.2) > [ =A0 2] [Active =A0 =A0 ] [ =A0 =A01] Apache Felix Shell TUI (1.0.2) > [ =A0 3] [Active =A0 =A0 ] [ =A0 =A01] Apache Felix Bundle Repository (1.= 2.1) > [ =A0 4] [Active =A0 =A0 ] [ =A0 =A01] OSGi R4 Compendium Bundle (4.1.0) > [ =A0 5] [Active =A0 =A0 ] [ =A0 =A01] geronimo-annotation_1.0_spec (1.1.= 1) > [ =A0 6] [Active =A0 =A0 ] [ =A0 =A01] geronimo-activation_1.1_spec (1.0.= 2) > [ =A0 7] [Active =A0 =A0 ] [ =A0 =A01] geronimo-javamail_1.4_spec (1.2) > [ =A0 8] [Active =A0 =A0 ] [ =A0 =A01] geronimo-ws-metadata_2.0_spec (1.1= .2) > [ =A0 9] [Active =A0 =A0 ] [ =A0 =A01] Apache Commons Logging (1.1.1) > [ =A010] [Active =A0 =A0 ] [ =A0 =A01] JDOM DOM Processor (1.0.0) > [ =A011] [Active =A0 =A0 ] [ =A0 =A01] Spring Core (2.5.6) > [ =A012] [Active =A0 =A0 ] [ =A0 =A01] Spring Beans (2.5.6) > [ =A013] [Active =A0 =A0 ] [ =A0 =A01] Spring Context (2.5.6) > [ =A014] [Active =A0 =A0 ] [ =A0 =A01] AOP Alliance API (1.0.0) > [ =A015] [Active =A0 =A0 ] [ =A0 =A01] Spring AOP (2.5.6) > [ =A016] [Active =A0 =A0 ] [ =A0 =A01] spring-osgi-io (1.2.0) > [ =A017] [Active =A0 =A0 ] [ =A0 =A01] spring-osgi-core (1.2.0) > [ =A018] [Active =A0 =A0 ] [ =A0 =A01] spring-osgi-extender (1.2.0) > [ =A019] [Active =A0 =A0 ] [ =A0 =A01] OPS4J Pax Web - Service (0.5.1) > [ =A020] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Bundles: jaxb-im= pl-2.1.6 (83.161.120.155) > [ =A021] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Bundles: wsdl4j-= 1.6.1 (83.161.120.155) > [ =A022] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Bundles: xmlsec-= 1.3.0 (83.161.120.155) > [ =A023] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Bundles: xmlsche= ma-1.4.3 (83.161.120.155) > [ =A024] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Bundles: asm-2.2= .3 (83.161.120.155) > [ =A025] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Bundles: xmlreso= lver-1.2 (83.161.120.155) > [ =A026] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Bundles: neethi-= 2.0.4 (83.161.120.155) > [ =A027] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Bundles: woodsto= x-3.2.7 (83.161.120.155) > [ =A028] [Active =A0 =A0 ] [ =A0 =A01] Apache CXF Minimal Bundle Jar (2.2= .1.SNAPSHOT) > [ =A029] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Specs 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 SAAJ AP= I 1.3 (1.1.1) > [ =A030] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Specs 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 STAX AP= I 1.0 (1.1.1) > [ =A031] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Specs 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 JAXB AP= I 2.1 (1.1.1) > [ =A032] [Active =A0 =A0 ] [ =A0 =A01] Apache ServiceMix Specs 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 JAXWS A= PI 2.1 (1.1.1) > [ =A033] [Active =A0 =A0 ] [ =A0 =A01] CXF Local Discovery Service Bundle= (1.0.0.SNAPSHOT) > [ =A034] [Active =A0 =A0 ] [ =A0 =A01] CXF Distributed Software Bundle (1= .0.0.SNAPSHOT) > [ =A035] [Active =A0 =A0 ] [ =A0 =A01] Campaign Model Bundle (0.0.1.SNAPS= HOT) > [ =A036] [Active =A0 =A0 ] [ =A0 =A01] Campaign Service Interfaces (0.0.1= .SNAPSHOT) > [ =A037] [Active =A0 =A0 ] [ =A0 =A01] Campaign Service Consumer Bundle (= 0.0.1.SNAPSHOT) > > > I am not sure what I am missing but feel sure it is something within the = configuration of > the bundle-context-osgi.xml of the server or client or the remote-service= s.xml entries, but > am at a loss as to what it is. =A0Any guidance in this would be much appr= eciated. > > Thanks in advance for the assistance. > > Regards, > Todd > From heatherfrank@example.org Fri May 01 09:13:50 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 34761 invoked from network); 1 May 2009 09:13:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 09:13:48 -0000 Received: (qmail 11769 invoked by uid 500); 1 May 2009 09:13:47 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 11682 invoked by uid 500); 1 May 2009 09:13:47 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 11672 invoked by uid 99); 1 May 2009 09:13:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 09:13:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-bw0-f162.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 09:13:37 +0000 Received: by bwz6 with SMTP id 6so331629bwz.30 for <heatherfrank@example.org>; Fri, 01 May 2009 02:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=zYEQAnKBfHbE7I44wGH1xvoAN22zMZn2oNAz082T6LQ=; b=dN7sZwcXkR0y5Yx2BFz0VsQxuFBuy+X8ZifIAJwAGPd0Dc/Wq2VAn2psiovKLIYtNk QL47jAzDjjW4nx8pa+9LwOF3lU1fQUs8txZdiOCmz3HDFUhssNxH3wgdsXbLp/d42uxl 132kVP40vykmnUWiIv/19RxQ45vJ4nd0Ph5/w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=e6OazOe8ToF0bP1klHNnHm7o/7vF/KglmdnGV0uFLnFsCo7+pQd7Urwd5UgrZhPJZJ pJnbta0OUzAVMTGFv2i27Fxjay3B9qpDzhNVqBYXoG4BF+wvjrxq3a3yLq4DtT7HXAy4 MAFXMCyw/xjzB7W/v0m5dlgfkt2SvApQEnF+U= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id s6mr1112937fap.37.1241169196027; Fri, 01 May 2009 02:13:16 -0700 (PDT) Date: Fri, 1 May 2009 11:13:16 +0200 Message-ID: <heatherfrank@example.org> Subject: changing endpointReference address From: Valerio Schiavoni <heatherfrank@example.org> To: heatherfrank@example.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hello, i'm trying to modify the endpoint reference address using CXF API: org.apache.cxf.endpoint.Client client =3D org.apache.cxf.frontend.ClientPro= xy =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 .getClient(ref); Conduit conduit =3D client.getConduit(); EndpointReferenceType endpointRef =3D conduit.getTarget(); System.err.println("Original addr: "+endpointRef.getAddress().getValue()); EndpointReferenceUtils.setAddress(endpointRef, =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 "http://localhost:8080/Ch= anged"); But, when the client emits an operation, the messages are still sent to the original address, and not to the one that I set manually. The client is implemented by a set of classes generated by the codegen-cxf-plugin. What am I missing? Thanks a lot, valerio -- http://www.linkedin.com/in/vschiavoni http://jroller.com/vschiavoni From heatherfrank@example.org Fri May 01 13:08:34 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 28263 invoked from network); 1 May 2009 13:08:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 13:08:34 -0000 Received: (qmail 93534 invoked by uid 500); 1 May 2009 13:08:33 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 93458 invoked by uid 500); 1 May 2009 13:08:33 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 93441 invoked by uid 99); 1 May 2009 13:08:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 13:08:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO qw-out-1920.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 13:08:25 +0000 Received: by qw-out-1920.google.com with SMTP id 9so1970105qwj.30 for <heatherfrank@example.org>; Fri, 01 May 2009 06:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=2CV5dvpaEqxanTdg+mW+gncPPmNqeRlFf1LQtQISlj0=; b=WN5YIY6pOfD4Ftzx0WYcyRJ7mHo9B0lpZX+bkU4idvfpvkR1bE+GSfiRGlBGoSLkCE YPdVRp1z5jLR3MRckrOWRtGSyotXhlb/ityKrQjVaacy2QaPEedFljv4hxKs0Y2Oc17g Y+NPvmRjTMXsO8ebb6uSeyjxjqyRNmJFt2hT0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VgNHTwbwgJXaUPGaXedZZY2p/6knph8ffUbCmS5Gyu3eTG8/fPsWOng5NMp7TdDks0 63z9f6xsr9n6IqcSPFUuVZ4ZodSL0nBeRP52plNICeW9Ta7xMmX00aCnfPl7S8UXGTpn YcKVYFsKqa76HysP21gQ2e5mfbChm/GRw2ews= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id 16mr3000215qal.361.1241183284439; Fri, 01 May 2009 06:08:04 -0700 (PDT) Date: Fri, 1 May 2009 09:08:04 -0400 Message-ID: <heatherfrank@example.org> Subject: JAXWS service name From: Benson Margulies <heatherfrank@example.org> To: CXF Users <heatherfrank@example.org> Content-Type: multipart/alternative; boundary=0015175ca7dcc529c20468d980d4 X-Virus-Checked: Checked by ClamAV on apache.org --0015175ca7dcc529c20468d980d4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Service is launching as Creating Service {http://smws.basistech.com/}RLPSharedMemoryImplService from class com.basistech.smws.RLPSharedMemory Even though the implementation class has an endpointInterface in the @WebService. Shouldn't that cause it to be named after the SEI, not the implementation? This is configured from spring with a # reference to the implementation in a jaxws:endpoint. --0015175ca7dcc529c20468d980d4-- From heatherfrank@example.org Fri May 01 13:32:36 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 38181 invoked from network); 1 May 2009 13:32:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 13:32:36 -0000 Received: (qmail 10625 invoked by uid 500); 1 May 2009 13:32:35 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 10534 invoked by uid 500); 1 May 2009 13:32:35 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 10523 invoked by uid 99); 1 May 2009 13:32:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 13:32:35 +0000 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 (athena.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 13:32:27 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <heatherfrank@example.org>) id 1LzsqT-0004V0-FH for heatherfrank@example.org; Fri, 01 May 2009 06:32:05 -0700 Message-ID: <heatherfrank@example.org> Date: Fri, 1 May 2009 06:32:05 -0700 (PDT) From: Tapdur <heatherfrank@example.org> To: heatherfrank@example.org Subject: get a Spring Bean from CXF, how to ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: heatherfrank@example.org X-Virus-Checked: Checked by ClamAV on apache.org Hi, i implement a webservice based on CXF and i want to select the business bean based on ws parameters. So i just want to use a code like that on the server side @webservice public String GetLabel(String lang) { ILabel label = x.getBean(lang); return label.getLabel(); } So my question is how to lookup Spring context from CXF and use the Spring bean API at runtime ? (how to lookup the Servlet Context too from CXF ?) Thanks Bruno -- View this message in context: http://www.nabble.com/get-a-Spring-Bean-from-CXF%2C-how-to---tp23333153p23333153.html Sent from the cxf-user mailing list heatherfrank@example.org. From heatherfrank@example.org Fri May 01 13:39:29 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 43275 invoked from network); 1 May 2009 13:39:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 13:39:29 -0000 Received: (qmail 21574 invoked by uid 500); 1 May 2009 13:39:27 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 21475 invoked by uid 500); 1 May 2009 13:39:27 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 21381 invoked by uid 99); 1 May 2009 13:39:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 13:39:25 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO stoat.shef.ac.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 13:39:14 +0000 Received: from 87-194-142-114.bethere.co.uk ([83.161.120.155] helo=wellington.local) by stoat.shef.ac.uk with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.68) (envelope-from <heatherfrank@example.org>) id 1Lzsx4-0001zp-6T for heatherfrank@example.org; Fri, 01 May 2009 14:38:54 +0100 Message-ID: <heatherfrank@example.org> Date: Fri, 01 May 2009 14:38:53 +0100 From: Ian Roberts <heatherfrank@example.org> User-Agent: Thunderbird 83.161.120.155 (Macintosh/20090302) MIME-Version: 1.0 To: heatherfrank@example.org Subject: Re: get a Spring Bean from CXF, how to ? References: <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-S0phie-Scan: no X-Virus-Checked: Checked by ClamAV on apache.org Tapdur wrote: > So my question is how to lookup Spring context from CXF and use the Spring > bean API at runtime ? > (how to lookup the Servlet Context too from CXF ?) Configure your implementation object as a Spring bean itself, i.e. instead of <jaxws:endpoint implementor="my.pkg.ServiceImpl"/> do <bean id="myServiceImpl" class="my.pkg.ServiceImpl" /> <jaxws:endpoint implementor="#myServiceImpl" ... /> Now your service object is a Spring bean it can implement Spring-provided interfaces such as ApplicationContextAware or ServletContextAware in the usual way and the things you want will be injected automatically. Ian -- Ian Roberts | Department of Computer Science heatherfrank@example.org | University of Sheffield, UK From heatherfrank@example.org Fri May 01 15:37:09 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 16816 invoked from network); 1 May 2009 15:37:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 15:37:09 -0000 Received: (qmail 24277 invoked by uid 500); 1 May 2009 15:37:08 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 24216 invoked by uid 500); 1 May 2009 15:37:08 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 24205 invoked by uid 99); 1 May 2009 15:37:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 15:37:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-fx0-f227.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 15:37:00 +0000 Received: by fxm27 with SMTP id 27so3654613fxm.30 for <heatherfrank@example.org>; Fri, 01 May 2009 08:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=8uADjvBVE+wZbovLPpmWpFepUFwcXGxKr452BwrJEB4=; b=Y/MYvBynxAqq3ru7Pam4l1xGukRiwqPxm7jJASo6U8TA4atJvS7EwIvBjBs089s6Mh DPeNcTv8WUZ1bTKl2HZJer1h8IRt9avqqsFrM0V0++zxfCcFnYLoc8B6l/hszcXO7tCv TR9xix0oOe9FURmXDDu5pe93VmlGjnPAhCeVU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QE6y735BDsn74Q9kBuOblUK/0CqjtbftCHw2y0nnoF1z/oTBF7HRjOvdVjdtWpbe0m GQItBc34Dcj44VstwkLmcQM7snWlQi+lqnNe82bcWEQd9nhyGJNVN3z55DuWSuqDgX2X 4IYNq3rxO8rnBriJka/tBmBNDmmU++sxsJZrk= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id y20mr1749400muo.19.1241192199575; Fri, 01 May 2009 08:36:39 -0700 (PDT) In-Reply-To: <heatherfrank@example.org> References: <heatherfrank@example.org> <heatherfrank@example.org> Date: Fri, 1 May 2009 17:36:39 +0200 Message-ID: <heatherfrank@example.org> Subject: Re: get a Spring Bean from CXF, how to ? From: bruno tapdur <heatherfrank@example.org> To: heatherfrank@example.org Content-Type: multipart/alternative; boundary=0016e659fbf0275b840468db9459 X-Virus-Checked: Checked by ClamAV on apache.org --0016e659fbf0275b840468db9459 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit thx , i use ApplicationContextAware and it works like a charm Bruno 2009/5/1 Ian Roberts <heatherfrank@example.org> > Tapdur wrote: > > So my question is how to lookup Spring context from CXF and use the > Spring > > bean API at runtime ? > > (how to lookup the Servlet Context too from CXF ?) > > Configure your implementation object as a Spring bean itself, i.e. > instead of <jaxws:endpoint implementor="my.pkg.ServiceImpl"/> do > > <bean id="myServiceImpl" class="my.pkg.ServiceImpl" /> > <jaxws:endpoint implementor="#myServiceImpl" ... /> > > Now your service object is a Spring bean it can implement > Spring-provided interfaces such as ApplicationContextAware or > ServletContextAware in the usual way and the things you want will be > injected automatically. > > Ian > > -- > Ian Roberts | Department of Computer Science > heatherfrank@example.org | University of Sheffield, UK > --0016e659fbf0275b840468db9459-- From heatherfrank@example.org Fri May 01 16:52:54 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 52907 invoked from network); 1 May 2009 16:52:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 16:52:54 -0000 Received: (qmail 81023 invoked by uid 500); 1 May 2009 16:52:53 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 80948 invoked by uid 500); 1 May 2009 16:52:53 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 80938 invoked by uid 99); 1 May 2009 16:52:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 16:52:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mx3.progress.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 16:52:41 +0000 Received: from mx3.progress.com (83.161.120.155) by mx3.progress.com (MlfMTA v3.2r9) id hvckdi0171si for <heatherfrank@example.org>; Fri, 1 May 2009 12:52:21 -0400 (envelope-from <heatherfrank@example.org>) Received: from progress.com ([83.161.120.155]) by mx3.progress.com (SonicWALL 83.161.120.1553) with ESMTP; Fri, 01 May 2009 12:52:20 -0400 Received: from NTEXFE01.bedford.progress.com (ntexfe01 [83.161.120.155]) by progress.com (8.13.8/8.13.8) with ESMTP id n41GqJIi001409; Fri, 1 May 2009 12:52:19 -0400 (EDT) Received: from MAIL02.bedford.progress.com ([83.161.120.155]) by NTEXFE01.bedford.progress.com with Microsoft SMTPSVC442-873-5642); Fri, 1 May 2009 12:51:46 -0400 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Package for SecurityException? Date: Fri, 1 May 2009 12:51:44 -0400 Message-ID: <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Package for SecurityException? Thread-Index: AcmshZGpzQnnX98HSvSidabHh5B2Lgd91w9g From: "Colm O hEigeartaigh" <heatherfrank@example.org> To: <heatherfrank@example.org>, <heatherfrank@example.org> Cc: "Glen Mazza" <heatherfrank@example.org> X-OriginalArrivalTime: 01 May 2009 16:51:46.0240 (UTC) FILETIME=[1CF65C00:01C9CA7D] X-Mlf-Version: 83.161.120.1553 X-Mlf-UniqueId: o200905011652200250157 X-Virus-Checked: Checked by ClamAV on apache.org FYI I'm going to change the behaviour for Username Tokens in WSS4J 1.6: https://issues.apache.org/jira/browse/WSS-183 Colm. -----Original Message----- From: Daniel Kulp [mailto:heatherfrank@example.org]=20 Sent: 24 March 2009 13:36 To: heatherfrank@example.org; heatherfrank@example.org Cc: Glen Mazza Subject: Re: Package for SecurityException? CC the wss4j list as that's probably more appropriate. Actually, with 1.5.6, the callbacks are also used to verify trust for any=20 RSAKeyValue tokens found in the message. Thus, they are used for various=20 validation things. In the future, I'd like to see the callbacks actually do more validation prior=20 to things being used. For example, we could validate the trusts of the x509=20 certs that are found PRIOR to using the cert for decryption. If the cert=20 isn't trusted, why spend the processor time doing the decryption and such. =20 Right now, we do all the processing, then after the fact, we check to make=20 sure the certs that were used are OK. Timestamps could be checked=20 immediately, etc... Dan On Tue March 24 2009 8:32:25 am Glen Mazza wrote: > BTW, I will update our online example to use a IOException for a bad > cleartext password, as that appears to be the less incorrect of our two > exception choices. It seems strange, though, that WSS4J treats digest and > cleartext passwords differently, relying on the CallbackHandler to do the > validation for the latter: http://tinyurl.com/cuqblz. CallbackHandlers do > not appear meant to do validation, or else they would have a > BadPasswordSuppliedException or similar exception-throwing capability. > > Glen > > Glen Mazza wrote: > > Technically, I guess you're limited to not just any exception but > > specifically a IOException or a UnsupportedCallbackException subclass, as > > those are the only two types of exceptions declared throwable by the > > handle() method: > > http://java.sun.com/javase/6/docs/api/javax/security/auth/callback/Callb ack >Handler.html --=20 Daniel Kulp heatherfrank@example.org http://www.dankulp.com/blog From heatherfrank@example.org Fri May 01 18:27:28 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 21617 invoked from network); 1 May 2009 18:27:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 18:27:28 -0000 Received: (qmail 50085 invoked by uid 500); 1 May 2009 18:27:27 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 50024 invoked by uid 500); 1 May 2009 18:27:27 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 50014 invoked by uid 99); 1 May 2009 18:27:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 18:27:27 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO acsinet11.oracle.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 18:27:17 +0000 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [83.161.120.155]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n41IR4Ps022416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <heatherfrank@example.org>; Fri, 1 May 2009 18:27:06 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [83.161.120.155]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n416pN63004675 for <heatherfrank@example.org>; Fri, 1 May 2009 18:26:52 GMT Received: from 83.161.120.155 by acsmt357.oracle.com with ESMTP id 16789281971241202378; Fri, 01 May 2009 13:26:18 -0500 From: "bharath thippireddy" <heatherfrank@example.org> Reply-To: "heatherfrank@example.org" <heatherfrank@example.org> To: "heatherfrank@example.org" <heatherfrank@example.org> Subject: WS-Security/SAML Version Supported? Date: Fri, 1 May 2009 14:26:16 -0400 Thread-Index: AcnKik1G1MUGpixCQKeAq9jV1tRjcg== Organization: Oracle Corporation Message-ID: <20090501142616753.00000014308@BREDDY-GX745> X-Mailer: Oracle Connector for Outlook 83.161.120.687-98-983601 (12.0.4518) X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=-------2c3f46a92c3f46a9 X-Source-IP: acsmt356.oracle.com [83.161.120.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010208.49FB3EEC.0004:SCFMA4539814,ss=1,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org ---------2c3f46a92c3f46a9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi, = Which versions of WS-Security profile and SAML Token profile are supported= by cxf 2.2? = Is it 1.1. or 2.0? = Thanks and regards, Bharath = ---------2c3f46a92c3f46a9-- From heatherfrank@example.org Fri May 01 19:01:52 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 34301 invoked from network); 1 May 2009 19:01:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 19:01:52 -0000 Received: (qmail 94369 invoked by uid 500); 1 May 2009 19:01:51 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 94321 invoked by uid 500); 1 May 2009 19:01:50 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 94311 invoked by uid 99); 1 May 2009 19:01:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 19:01:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO Arg-Mailgate2.argushealth.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 19:01:44 +0000 X-WSS-ID: 0KIZBHZ-03-RHU-02 X-M-MSG: Received: from EFA1.corp.argushealth.com (unknown [83.161.120.155]) by Arg-Mailgate2.argushealth.com (Tumbleweed MailGate 3.6.1) with ESMTP id 270277CA6C2 for <heatherfrank@example.org>; Fri, 1 May 2009 14:01:10 -0500 (CDT) Received: from [83.161.120.155] by EFA1.corp.argushealth.com with ESMTP ( Tumbleweed Email Firewall SMTP Relay (Email Firewall v6.3.1)); Fri, 01 May 2009 14:01:07 -0500 X-Server-Uuid: 1742855E-85F3-434F-8B78-F18FDE18E37D X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: List Restful WebServices Date: Fri, 1 May 2009 14:01:07 -0500 Message-ID: <heatherfrank@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: List Restful WebServices Thread-Index: AcnKjy7vV2aNOA22QbOzrRLKNAT6yA== From: "Stopp, Bryan" <heatherfrank@example.org> To: heatherfrank@example.org X-WSS-ID: 65E599792FG167852-01-01 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9CA8F.2EFF977A" X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C9CA8F.2EFF977A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable After some struggling i was finally able a JAX-RS webservice (using annotations) up and running. The problem is i can't seem to located the webservice! =20 My CXF Servlet is set up to respond on URL =20 /monitor/ =20 And my webService is coded-up ala: =20 =20 @Path("/monitor/") public class MonitorTest { =20 @GET public Response runTest() { System.out.println("Hit the test!!!"); return Response.ok().build(); } =20 } =20 =20 When i start my tomcat i see this in the logs: =20 INFO: Setting the server's publish address to be /monitor/ =20 And when hit the url: http://localhost:8080/jaxrs-tests/monitor/ <http://localhost:8080/jaxrs-tests/monitor/> I see "Available Services:" but nothing else listed. I also tried http://localhost:8080/jaxrs-tests/monitor/services/ <http://localhost:8080/jaxrs-tests/monitor/services/> but got the same result. Can anyone tell me how to find out what my webservice's URL is=3F =20 -B=20 =20 PRIVILEGED AND CONFIDENTIAL This email transmission contains privileged and confidential information = intended only for the use of the individual or entity named above. If the = reader of the email is not the intended recipient or the employee or agent = responsible for delivering it to the intended recipient, you are hereby = notified that any use, dissemination or copying of this email transmission = is strictly prohibited by the sender. If you have received this = transmission in error, please delete the email and immediately notify the = sender via the email return address or mailto:heatherfrank@example.org. = Thank you. ------_=_NextPart_001_01C9CA8F.2EFF977A-- From heatherfrank@example.org Fri May 01 20:16:53 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 54116 invoked from network); 1 May 2009 20:16:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 20:16:51 -0000 Received: (qmail 67370 invoked by uid 500); 1 May 2009 20:16:50 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 67292 invoked by uid 500); 1 May 2009 20:16:50 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 67282 invoked by uid 99); 1 May 2009 20:16:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 20:16:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mx3.progress.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 20:16:42 +0000 Received: from mx3.progress.com (83.161.120.155) by mx3.progress.com (MlfMTA v3.2r9) id hvdcak0171sa for <heatherfrank@example.org>; Fri, 1 May 2009 16:16:21 -0400 (envelope-from <heatherfrank@example.org>) Received: from progress.com ([83.161.120.155]) by mx3.progress.com (SonicWALL 83.161.120.1553) with ESMTP; Fri, 01 May 2009 16:16:19 -0400 Received: from NTEXFE02.bedford.progress.com (ntexfe02 [83.161.120.155]) by progress.com (8.13.8/8.13.8) with ESMTP id n41KG0jD016584 for <heatherfrank@example.org>; Fri, 1 May 2009 16:16:00 -0400 (EDT) Received: from MAIL02.bedford.progress.com ([83.161.120.155]) by NTEXFE02.bedford.progress.com with Microsoft SMTPSVC442-873-5642); Fri, 1 May 2009 16:16:00 -0400 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: List Restful WebServices Date: Fri, 1 May 2009 16:16:04 -0400 Message-ID: <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: List Restful WebServices Thread-Index: AcnKjy7vV2aNOA22QbOzrRLKNAT6yAACVdPA From: "Sergey Beryozkin" <heatherfrank@example.org> To: <heatherfrank@example.org> X-OriginalArrivalTime: 01 May 2009 20:16:00.0848 (UTC) FILETIME=[A5472500:01C9CA99] X-Mlf-Version: 83.161.120.1553 X-Mlf-UniqueId: o200905012016010298941 X-Virus-Checked: Checked by ClamAV on apache.org Hi, This is a long pending issue which I'm hoping to fix in 2.2.2-SNAPSHOT We need to think how to represent the metadata for (restful) services in a number of ways. WADL would likely be an obvious answer but I'd like to think what is that that we can do differently in this regard... For ex, what would you expect to see when clicking on such (yet nonexistent) links ? WADL ? What about WSDL 2.0 ? Many users do combine JAXRS & JAXWS so perhaps in such cases we can offer an option of showing the metadata using WSDL 2.0 (in addition to WADL for JAXRS services). We have few other ideas on how to present the metadata but for we need to find some good time for this task to be done... Cheers, Sergey=20 -----Original Message----- From: Stopp, Bryan [mailto:heatherfrank@example.org]=20 Sent: 01 May 2009 20:01 To: heatherfrank@example.org Subject: List Restful WebServices After some struggling i was finally able a JAX-RS webservice (using annotations) up and running. The problem is i can't seem to located the webservice! =20 My CXF Servlet is set up to respond on URL =20 /monitor/ =20 And my webService is coded-up ala: =20 =20 @Path("/monitor/") public class MonitorTest { =20 @GET public Response runTest() { System.out.println("Hit the test!!!"); return Response.ok().build(); } =20 } =20 =20 When i start my tomcat i see this in the logs: =20 INFO: Setting the server's publish address to be /monitor/ =20 And when hit the url: http://localhost:8080/jaxrs-tests/monitor/ <http://localhost:8080/jaxrs-tests/monitor/> I see "Available Services:" but nothing else listed. I also tried http://localhost:8080/jaxrs-tests/monitor/services/ <http://localhost:8080/jaxrs-tests/monitor/services/> but got the same result. Can anyone tell me how to find out what my webservice's URL is? =20 -B=20 =20 PRIVILEGED AND CONFIDENTIAL This email transmission contains privileged and confidential information intended only for the use of the individual or entity named above. If the reader of the email is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any use, dissemination or copying of this email transmission is strictly prohibited by the sender. If you have received this transmission in error, please delete the email and immediately notify the sender via the email return address or mailto:heatherfrank@example.org. Thank you. From heatherfrank@example.org Fri May 01 20:37:31 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 59207 invoked from network); 1 May 2009 20:37:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 20:37:31 -0000 Received: (qmail 12064 invoked by uid 500); 1 May 2009 20:37:30 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 12014 invoked by uid 500); 1 May 2009 20:37:30 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 12004 invoked by uid 99); 1 May 2009 20:37:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 20:37:30 +0000 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 (nike.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 20:37:21 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <heatherfrank@example.org>) id 1LzzTg-00046L-8L for heatherfrank@example.org; Fri, 01 May 2009 13:37:00 -0700 Message-ID: <heatherfrank@example.org> Date: Fri, 1 May 2009 13:37:00 -0700 (PDT) From: Sergey Beryozkin <heatherfrank@example.org> To: heatherfrank@example.org Subject: Re: Security in Jaxws/Jaxrs In-Reply-To: <heatherfrank@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: heatherfrank@example.org References: <heatherfrank@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi Vishal I'm very sorry for a late reply - I was planning to reply much earlier but then I got swamped with some work and forgot. There're a number of options, depending on your preferences 1. Do it in the application code, in the resource class. This is may or may not the best option. Typically this is something users prefer to do outside of the application code. But then you may want to look at the resource class which checks the injected SecurityContexts as the facade or as an interceptor really which delegates to the actual application class which may make this option more viable. So in this case you have to have @Resource WebServiceContext jaxwsContext; @Context SecurityContext jaxrsSecurityContext; declared in your code. Next, you need to figure out whether it's a JAXWS or JAXRS invocation in progress, so you can do it like this // not sure at the moment how exactly to get security context from jaxws one if (jaxwsContext.getSecurityContext() == null) { checkPrincipal(jaxrsSecurityContext.getPrincipal()); } else { checkPrincipal(jaxwsContext.getSecurityContext().getPrincipal()); } 2. Use Spring security - we have some simple tests showing how authentication and authorization can be done 3. For JAXRS : Use CXF JAX-RS RequestFilter or custom invoker (which simply extends JAXRSInvoker and is registered as an invoker property) where you can get all the info you need (method name, Principal, etc) For JAXWS : do a custom CXF in Interceptor which will throw Fault if needed. Perhaps there're more options... Let me know please if you need more info on any of the these options Cheers, Sergey Vishal.a wrote: > > Hello All, > > I have services written,that have both JaxRs and Jaxws.I have to implement > security on the services now.There are 2 things i need to do > > 1. Authentication - Using Basic Http Authentication > 2. Authorization - Secure each and every method. > > I have seen posts that show me how to do for either JaxRS or Jaxws,can > someone tell me what would be the best way to approach it for doing it for > both REST and SOAP. > > Any help is appreciated. > > Thanks, > Vishal > -- View this message in context: http://www.nabble.com/Security-in-Jaxws-Jaxrs-tp23266441p23339367.html Sent from the cxf-user mailing list heatherfrank@example.org. From heatherfrank@example.org Fri May 01 21:32:32 2009 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 83012 invoked from network); 1 May 2009 21:32:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2009 21:32:32 -0000 Received: (qmail 95740 invoked by uid 500); 1 May 2009 21:32:31 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 95657 invoked by uid 500); 1 May 2009 21:32:30 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:heatherfrank@example.org> List-Unsubscribe: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: <users.cxf.apache.org> Reply-To: heatherfrank@example.org Delivered-To: mailing list heatherfrank@example.org Received: (qmail 95647 invoked by uid 99); 1 May 2009 21:32:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 21:32:30 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,MSGID_MULTIPLE_AT,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mx2.neovera.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 21:32:20 +0000 Received: from gnosis2 (localhost [83.161.120.155]) by mx2.neovera.com (Spam Firewall) with ESMTP id A9D691C32DA for <heatherfrank@example.org>; Fri, 1 May 2009 21:31:59 +0000 (GMT) Received: from gnosis2 (smtp.neovera.net [83.161.120.155]) by mx2.neovera.com with ESMTP id Eg1wqA1Vdz17RHYq (version=TLSv1 cipher=RC4-MD5 bits=128 verify=NO) for <heatherfrank@example.org>; Fri, 01 May 2009 21:31:59 +0000 (GMT) From: "Karthik Abram" <heatherfrank@example.org> To: <heatherfrank@example.org> Subject: Problem using aop:aspectj-autoproxy with CXF in Tomcat Date: Fri, 1 May 2009 17:32:08 -0400 Message-ID: <013501c9caa4$47f0cae0$d7d260a0$@heatherfrank@example.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0136_01C9CA82.C0DF2AE0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcnKpEd+i5fCMi+rSZOEKmtNKlvAkQ== Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0136_01C9CA82.C0DF2AE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I'm using CXF 2.2.1 with Spring 2.5.6 and would like to use @Aspect driven aspects which requires adding <aop:aspect-autoproxy/> to the spring configuration file. However, as soon as I add this, I get errors in creating jaxws:endpoint definitions (even if I use implementor, implementorClass technique). It looks like with the Aspectj 1.6.2 technique, DestinationFactoryManager never gets setup right. In particular, the invokePostConstruct() method isn't able to get any method with @PostConstruct because the proxy doesn't have the @PostConstruct annotation and down the line I get an exception with a stack trace such as: (abbreviated stack trace below).
{'source': 'Apache Software Foundation Public Mail Archives'}