Return-Path: Delivered-To: apmail-servicemix-users-archive@www.apache.org Received: (qmail 45384 invoked from network); 9 Apr 2008 00:30:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2008 00:30:41 -0000 Received: (qmail 10438 invoked by uid 500); 9 Apr 2008 00:30:41 -0000 Delivered-To: apmail-servicemix-users-archive@servicemix.apache.org Received: (qmail 10411 invoked by uid 500); 9 Apr 2008 00:30:41 -0000 Mailing-List: contact users-help@servicemix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@servicemix.apache.org Delivered-To: mailing list users@servicemix.apache.org Received: (qmail 10397 invoked by uid 99); 9 Apr 2008 00:30:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 17:30:41 -0700 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 (athena.apache.org: domain of freeman.fang@gmail.com designates 64.233.184.232 as permitted sender) Received: from [64.233.184.232] (HELO wr-out-0506.google.com) (64.233.184.232) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 00:29:56 +0000 Received: by wr-out-0506.google.com with SMTP id c55so1992047wra.0 for ; Tue, 08 Apr 2008 17:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=3PGRPiK2ER9DuyAnuVSZs2LT+DRLKo9xWLA/LOHr4E4=; b=I+pgFXNrY/1ayKfvsWUmstj1XgoUEx77SquV/QImfZlYnTxowUlpP8Fi7rVe6BxoumjTQo4HAjd51YtBeYPWWAGdgS75u4y+lBGPsAnHMmVjWL3JqaRjTZ26FIHiyZXpepdA2zm9qMYjEW2DNncQEnnoKIhs5Z2ca/5/fCADijY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=CcATW/3WG3BewJdvzvwyqQDLrcrx7udgJERerc0R7YyWeRV9uo7elvc8K55r/ahNc5j//PoRzO8Tw9w0ZAtZf04akfhIDnjhSfgcfaqYQCc931q40rlU+8Ecv1GaV622K38M8GUxqEyUEXpWJz8SjA7pr6I5oCKO90lFrNnqYs4= Received: by 10.114.151.13 with SMTP id y13mr8216318wad.145.1207701006425; Tue, 08 Apr 2008 17:30:06 -0700 (PDT) Received: from ?192.168.2.110? ( [222.131.137.229]) by mx.google.com with ESMTPS id y25sm18870951pod.5.2008.04.08.17.30.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Apr 2008 17:30:05 -0700 (PDT) Message-ID: <47FC0D7C.5050204@gmail.com> Date: Wed, 09 Apr 2008 08:27:40 +0800 From: Freeman Fang User-Agent: Thunderbird 1.5.0.2 (X11/20060524) MIME-Version: 1.0 To: users@servicemix.apache.org Subject: Re: Take SOAPAction from client's request References: <9fe1c9d70803311240g6d2ac543u6f26f54628e7d92@mail.gmail.com> <47F1D69E.507@gmail.com> <9fe1c9d70804041204tbcfedc2raf1656c4f8dc850@mail.gmail.com> <47F6CEA6.8040508@gmail.com> <9fe1c9d70804070729s5f479b44wc69d70f7e935ccd@mail.gmail.com> <47FA34AE.90407@gmail.com> <9fe1c9d70804070902k220248fbmd17571572a9f541@mail.gmail.com> <47FB6878.7060502@gmail.com> <9fe1c9d70804081543w7bfd48deu30c6ed4aaaf9539@mail.gmail.com> In-Reply-To: <9fe1c9d70804081543w7bfd48deu30c6ed4aaaf9539@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Esteban, The url is specified in the wsdl, or you can add locationURI="http://whatyouwant" to cxf bc consumer to override it. Regards Freeman Esteban Forzani wrote: > OK, thanks Freeman, it worked! and how can I invoke the consumer from a > client? Which is your URL? > > Thanks > > Regards > > Esteban > > On Tue, Apr 8, 2008 at 9:43 AM, Freeman Fang wrote: > > >> Hi Esteban, >> If you deploy su into a standalone servicemix, you shouldn't configure an >> embeded jbi bus, so just try >> >> >> > xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" >> xmlns:tempuri="http://tempuri.org/"> >> > wsdl="http://test.intranet/webservices/hello.asmx?WSDL" >> service="tempuri:helloPF" >> endpoint="helloPFPort" >> targetEndpoint="helloPFPortProxy" >> targetService="tempuri:helloPF" >> targetInterface="tempuri:helloPFSoap"> >> >> > wsdl="http://test.intranet/webservices/hello.asmx?WSDL" >> locationURI="http://test.intranet/webservices/hello.asmx" >> service="tempuri:helloPF" >> endpoint="helloPFPortProxy" >> interfaceName="tempuri:helloPFSoap"> >> >> >> >> Regards >> Freeman >> >> >> Freeman >> >> Esteban Forzani wrote: >> >> >>> Hi Freeman, my jbi.xml of the SA is: >>> >>> >>> >>> >>> >>> HelloProxy-sa >>> HelloProxy :: SA (Proxy Service) >>> >>> >>> >>> HelloProxy-cxfbc-su >>> Este m�dulo es el encargado de configurar un >>> servicio >>> proxy usando el CXF BC del ESB. >>> >>> >>> >>> HelloProxy-cxfbc-su-1.0-SNAPSHOT.zip >>> servicemix-cxf-bc >>> >>> >>> >>> >>> >>> This is generated by maven when run the install. >>> >>> Regards >>> >>> Esteban >>> >>> >>> On Mon, Apr 7, 2008 at 11:50 AM, Freeman Fang >>> wrote: >>> >>> >>> >>> >>>> Hi Esteban, >>>> >>>> Seems your jbi descriptor didn't specify servicemix-cxf-bc as >>>> component-name. Would you please append your jbi.xml of the SA? >>>> >>>> Freeman >>>> >>>> >>>> Esteban Forzani wrote: >>>> >>>> >>>> >>>> >>>>> Hi Freeman, >>>>> >>>>> When I use cxf bc provider an consumer I couldn't deploy the SU >>>>> because >>>>> throws the following error: >>>>> "No endpoints found" in org.apache.servicemix.common >>>>> .xbean.AbstractXBeanDeployer >>>>> >>>>> The xbean.xml for the cxf-bc-su is: >>>>> >>>>> >>>> xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" >>>>> xmlns:tempuri="http://tempuri.org/"> >>>>> >>>>> >>>>> >>>> wsdl="http://test.intranet/webservices/hello.asmx?WSDL >>>>> " >>>>> service="tempuri:helloPF" >>>>> endpoint="helloPFPort" >>>>> targetEndpoint="helloPFPortProxy" >>>>> targetService="tempuri:helloPF" >>>>> targetInterface="tempuri:helloPFSoap"> >>>>> >>>>> >>>> wsdl="http://test.intranet/webservices/hello.asmx?WSDL >>>>> " >>>>> locationURI=" >>>>> http://test.intranet/webservices/hello.asmx" >>>>> service="tempuri:helloPF" >>>>> endpoint="helloPFPortProxy" >>>>> interfaceName="tempuri:helloPFSoap"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thanks >>>>> >>>>> Esteban >>>>> >>>>> On Fri, Apr 4, 2008 at 9:58 PM, Freeman Fang >>>> >>>>> wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Esteban, >>>>>> They both should work. >>>>>> For cxf bc consumer and provider, ensure the endpoint name used in >>>>>> consumer and provider is different, for example, use >>>>>> helloPFPortProxy >>>>>> for >>>>>> provider in your case. And ensure the service / endpoint for your >>>>>> cxf >>>>>> bc >>>>>> consumer is same as it defined in the wsdl. >>>>>> We have a test to show how to configure cxf bc as a bridge, [1] is >>>>>> the >>>>>> configuration for more details. >>>>>> For cxf bc provider and http consumer, ensure you add >>>>>> useJBIWrapper="false" for cxf bc provider configuration, this is >>>>>> new >>>>>> feature >>>>>> ([2] is jira to track it) after servicemix 3.2.1 release, so you >>>>>> should try >>>>>> it with 3.2.2 snapshot. >>>>>> >>>>>> Best Regards >>>>>> >>>>>> Freeman >>>>>> >>>>>> [1] >>>>>> >>>>>> >>>>>> http://svn.apache.org/repos/asf/servicemix/smx3/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/cxf_provider_consumer_bridge.xml >>>>>> [2]http://issues.apache.org/activemq/browse/SM-1242 >>>>>> >>>>>> Esteban Forzani wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Thanks Freeman and Guillaume, Can I try with cxf bc provider and >>>>>>> cxf >>>>>>> bc >>>>>>> consumer or http consumer? >>>>>>> >>>>>>> I tried both, when I use cxf bc provider an consumer I couldn't >>>>>>> deploy >>>>>>> the >>>>>>> SU because throws the following error: >>>>>>> "No endpoints found" in >>>>>>> org.apache.servicemix.common.xbean.AbstractXBeanDeployer >>>>>>> >>>>>>> E.g: >>>>>>> the xbean.xml for the cxf-bc-su is: >>>>>>> >>>>>>> >>>>>> xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" >>>>>>> xmlns:tempuri="http://tempuri.org/"> >>>>>>> >>>>>>> >>>>>>> >>>>>> wsdl=" >>>>>>> http://test.intranet/webservices/hello.asmx?WSDL >>>>>>> " >>>>>>> service="tempuri:helloPF" >>>>>>> endpoint="helloPFPort" >>>>>>> targetEndpoint="helloPFPort" >>>>>>> targetService="tempuri:helloPF" >>>>>>> targetInterface="tempuri:helloPFSoap"> >>>>>>> >>>>>>> >>>>>> wsdl=" >>>>>>> http://test.intranet/webservices/hello.asmx?WSDL >>>>>>> " >>>>>>> locationURI=" >>>>>>> http://test.intranet/webservices/hello.asmx" >>>>>>> service="tempuri:helloPF" >>>>>>> endpoint="helloPFPort" >>>>>>> interfaceName="tempuri:helloPFSoap"> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> When I tried with cxf bc provider and http consumer throw a >>>>>>> NullPointerException in >>>>>>> org.apache.servicemix.cxfbc.CxfBcProvider >>>>>>> becoause >>>>>>> exchange.getOperation() is null! >>>>>>> The xbean.xml for cxf-bc-su is: >>>>>>> >>>>>>> >>>>>>> >>>>>> xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" >>>>>>> xmlns:tempuri="http://tempuri.org/"> >>>>>>> >>>>>> wsdl=" >>>>>>> http://test.intranet/webservices/hellopf.asmx?WSDL" >>>>>>> locationURI=" >>>>>>> http://test.intranet/webservices/hellopf.asmx" >>>>>>> service="tempuri:helloPF" >>>>>>> endpoint="helloPFPortProxy" >>>>>>> interfaceName="tempuri:helloPFSoap"/> >>>>>>> >>>>>>> >>>>>>> The xbean.xml for http-su is: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>>> xsi:schemaLocation=" >>>>>>> http://servicemix.apache.org/http/1.0servicemix-http.3.2.xsd" >>>>>>> >>>>>>> xmlns:tempuri="http://tempuri.org/" > >>>>>>> >>>>>> service="tempuri:helloPF" >>>>>>> endpoint="soap" >>>>>>> role="consumer" >>>>>>> locationURI="http://0.0.0.0:8192/helloPF/" >>>>>>> targetEndpoint="helloPFPortProxy" >>>>>>> targetService="tempuri:helloPF"/> >>>>>>> >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> Esteban >>>>>>> >>>>>>> >>>>>>> On Tue, Apr 1, 2008 at 3:30 AM, Freeman Fang < >>>>>>> freeman.fang@gmail.com >>>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi Esteban, >>>>>>>> >>>>>>>> You can try with cxf bc provider, which needn't specify soap >>>>>>>> action >>>>>>>> explicitly in the xbean and abstract it dynamically from the >>>>>>>> message. >>>>>>>> >>>>>>>> Regards >>>>>>>> >>>>>>>> Freeman >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Esteban Forzani wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> I have a web service with 5 operations, each with a >>>>>>>>> different >>>>>>>>> SOAPAction. >>>>>>>>> I'm using the servicemix-http component (proxy) to send a >>>>>>>>> soap >>>>>>>>> request >>>>>>>>> to >>>>>>>>> this webservice. >>>>>>>>> E.g.: >>>>>>>>> >>>>>>>>> >>>>>>>> service="WebServicesProxy-http-su:webServices" >>>>>>>>> endpoint="providerEndpoint" >>>>>>>>> role="provider" >>>>>>>>> locationURI=" >>>>>>>>> http://test.example/webservices/webservices.asmx" >>>>>>>>> defaultMep=" >>>>>>>>> http://www.w3.org/2004/08/wsdl/in-out" >>>>>>>>> soap="true" >>>>>>>>> soapVersion="1.1"/> >>>>>>>>> >>>>>>>>> The request is send to the ESB with the SOAPAction (E.g. >>>>>>>>> SOAPAction: >>>>>>>>> operation1) >>>>>>>>> but the HTTP-BC set the SOAPAction with "". >>>>>>>>> >>>>>>>>> I used the property soapAction in xbean.xml, but fixed me >>>>>>>>> the >>>>>>>>> operation >>>>>>>>> to >>>>>>>>> the endpoint. >>>>>>>>> E.g.: >>>>>>>>> >>>>>>>> service="WebServicesProxy-http-su:webServices" >>>>>>>>> endpoint="providerEndpoint" >>>>>>>>> role="provider" >>>>>>>>> locationURI=" >>>>>>>>> http://test.example/webservices/webservices.asmx" >>>>>>>>> defaultMep=" >>>>>>>>> http://www.w3.org/2004/08/wsdl/in-out" >>>>>>>>> soap="true" >>>>>>>>> soapVersion="1.1" >>>>>>>>> soapAction="http://example.org/operation1"/> >>>>>>>>> >>>>>>>>> Is it possible to put this property dynamically or take it >>>>>>>>> from >>>>>>>>> the >>>>>>>>> client's >>>>>>>>> request ? >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> >>>>>>>>> Esteban >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>> >>> >>> >> > > >