camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "usha K." <u_kant...@yahoo.com>
Subject Re: How to invoke specific operation with params for cxf webservice endpoint through configuration
Date Thu, 25 Mar 2010 11:56:06 GMT

Hi Ashwin,
  Is there anywhere to specify ( to call specific method of web-service)  
like operationName="sayHello" in the following <cxf:Endpoint tag.

That's what my question is. 

<cxf:Endpoint id="myEndpoint" 
address="http://localhost:8080/someService/"
wsdlURL="../sr-binding/src/main/resources/META-INF/wsdl/someservice.wsdl" 
endpointName="s:myEndpointName"
serviceName="s:myService"
operationName="s:sayHello"
xmlns:s="urn:some:company:some:service:wsdl" >
<cxfroperties>
<entry key="dataFormat" value="MESSAGE"/>
</cxfroperties>
</cxf:cxfEndpoint>

if we can't it that way, can we specify the method name at routing time
before we send the request message to the "myEndpoint" in the following code 

<route>
    <from uri="jms:queue:..." />
     <to   uri="cxf:bean:myEndpoint" /> 
</route>



Ashwin Karpe wrote:
> 
> Hi,
> 
> You do need to create a client to invoke on the CXF endpoint and send a
> SOAP payload that can be used to call your method described in WSDL.
> 
> If you do not want to write a client you could use a tool like SoapUI to
> do this for you (since you already have the WSDL).
> 
> Cheers,
> 
> Ashwin...
> 
> 
> usha K. wrote:
>> 
>>  I have the following cxfEndpoint configuration in the camel-context.xml
>> which is a webservice end point, pointing to a 3rd party web service.
>> 
>>  I am wondering how I can specify (in this configuration) an operation
>> with parameters to be passed to the webservice? As an example, I need to
>> invoke the operation sayHello() in that webservice, passing two
>> parameters (firstName, lastName).
>> 
>>  Can I do that in the cxfEndPoint itself? If so, how? Also, how can I
>> pass the values itself?
>> 
>> <cxf:cxfEndpoint id="myEndpoint" 
>> address="http://localhost:8080/someService/"
>> wsdlURL="../sr-binding/src/main/resources/META-INF/wsdl/someservice.wsdl" 
>> endpointName="s:myEndpointName"
>> serviceName="s:myService"
>> xmlns:s="urn:some:company:some:service:wsdl" >
>> <cxfroperties>
>> <entry key="dataFormat" value="MESSAGE"/>
>> </cxfroperties>
>> </cxf:cxfEndpoint>
>> 
>> OR do I have to write a client code on my side (where this end point
>> points to)?
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-invoke-specific-operation-with-params-for-cxf-webservice-endpoint-through-configuration-tp28023138p28027824.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message