You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by vs_mahesh <vs...@yahoo.co.in> on 2014/10/08 13:32:34 UTC
Can't find the BindingOperationInfo with operation name
Hi ,
I am getting *Can't find the BindingOperationInfo with operation name*
error when I tried to set the operation name.My service class contain more
than one operation so I need to set one opeartion specific.
My camel route is as follows.
<route id="Sending_Module">
<from uri="file://D:\\EBXINPUT" />
<setHeader headerName="operationName">
<constant>select_dataCaptureOperation</constant>
</setHeader>
<camel:setHeader headerName="operationNamespace">
<camel:simple>urn:ebx-schemas:dataservices_1.0</camel:simple>
</camel:setHeader>
<to uri="cxf:bean:myWS" />
<cxf:cxfEndpoint id="myWS"
address="http://10.131.27.139:8080/ebx-dataservices/connector"
wsdlURL="wsdl/publishingComponentLibrary.wsdl"
serviceName="tns:ebx-dataservicesService"
endpointName="tns:ebx-dataservices"
xmlns:tns="ebx-dataservices">
<cxf:properties>
<entry key="dataFormat" value="PAYLOAD" />
</cxf:properties>
<cxf:outInterceptors>
<ref bean="securityInterceptor" />
</cxf:outInterceptors>
</cxf:cxfEndpoint>
The error log says
/java.lang.IllegalArgumentException: Can't find the BindingOperationInfo
with operation name
{urn:ebx-schemas:dataservices_1.0}select_dataCaptureOperation. Please check
the message headers of operationName and operationNamespace.
java.lang.IllegalArgumentException: Can't find the BindingOperationInfo with
operation name
{urn:ebx-schemas:dataservices_1.0}select_dataCaptureOperation. Please check
the message headers of operationName and operationNamespace.
at
org.apache.camel.component.cxf.CxfProducer.getBindingOperationInfo(CxfProducer.java:362)[212:org.apache.camel.camel-cxf:2.10.0.fuse-71-047]
at
org.apache.camel.component.cxf.CxfProducer.prepareBindingOperation(CxfProducer.java:201)[212:org.apache.camel.camel-cxf:2.10.0.fuse-71-047]
at
org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:102)[212:org.apache.camel.camel-cxf:2.10.0.fuse-71-047]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]/
The service class contains following method
@WebResult(name = "select_dataCaptureResponse", targetNamespace =
"urn:ebx-schemas:dataservices_1.0", partName = "parameters")
@WebMethod(operationName = "select_dataCaptureOperation", action =
"select")
public schemas.ebx.dataservices_1.SelectDataCaptureResponseType
selectDataCaptureOperation(
@WebParam(partName = "parameters", name = "select_dataCapture",
targetNamespace = "urn:ebx-schemas:dataservices_1.0")
schemas.ebx.dataservices_1.SelectDataCaptureRequestType parameters
) throws StandardException;
Help me in solving this issue.
Thanks ,
mahesh
-----
Thanks And regards,
Mahesh
--
View this message in context: http://camel.465427.n5.nabble.com/Can-t-find-the-BindingOperationInfo-with-operation-name-tp5757407.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Can't find the BindingOperationInfo with operation name
Posted by Willem Jiang <wi...@gmail.com>.
It looks you set a wrong namespace on the operation, can you try to use this setting?
<setHeader headerName="operationName">
<constant>select_dataCaptureOperation</constant>
</setHeader>
<camel:setHeader headerName="operationNamespace">
<camel:simple>ebx-dataservices</camel:simple>
</camel:setHeader>
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On October 9, 2014 at 9:57:10 AM, vs_mahesh (vsmahesh111@yahoo.co.in) wrote:
> Hi ,
>
> I am getting *Can't find the BindingOperationInfo with operation name*
> error when I tried to set the operation name.My service class contain more
> than one operation so I need to set one opeartion specific.
> My camel route is as follows.
>
>
>
>
> select_dataCaptureOperation
>
>
> urn:ebx-schemas:dataservices_1.0
>
>
>
> > address="http://10.131.27.139:8080/ebx-dataservices/connector"
> wsdlURL="wsdl/publishingComponentLibrary.wsdl"
> serviceName="tns:ebx-dataservicesService"
> endpointName="tns:ebx-dataservices"
>
> xmlns:tns="ebx-dataservices">
>
>
>
>
>
>
>
>
>
>
>
> The error log says
>
> /java.lang.IllegalArgumentException: Can't find the BindingOperationInfo
> with operation name
> {urn:ebx-schemas:dataservices_1.0}select_dataCaptureOperation. Please check
> the message headers of operationName and operationNamespace.
> java.lang.IllegalArgumentException: Can't find the BindingOperationInfo with
> operation name
> {urn:ebx-schemas:dataservices_1.0}select_dataCaptureOperation. Please check
> the message headers of operationName and operationNamespace.
> at
> org.apache.camel.component.cxf.CxfProducer.getBindingOperationInfo(CxfProducer.java:362)[212:org.apache.camel.camel-cxf:2.10.0.fuse-71-047]
> at
> org.apache.camel.component.cxf.CxfProducer.prepareBindingOperation(CxfProducer.java:201)[212:org.apache.camel.camel-cxf:2.10.0.fuse-71-047]
> at
> org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:102)[212:org.apache.camel.camel-cxf:2.10.0.fuse-71-047]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
> at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
> at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
> at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[148:org.apache.camel.camel-core:2.10.0.fuse-71-047]/
>
>
> The service class contains following method
>
> @WebResult(name = "select_dataCaptureResponse", targetNamespace =
> "urn:ebx-schemas:dataservices_1.0", partName = "parameters")
> @WebMethod(operationName = "select_dataCaptureOperation", action =
> "select")
> public schemas.ebx.dataservices_1.SelectDataCaptureResponseType
> selectDataCaptureOperation(
> @WebParam(partName = "parameters", name = "select_dataCapture",
> targetNamespace = "urn:ebx-schemas:dataservices_1.0")
> schemas.ebx.dataservices_1.SelectDataCaptureRequestType parameters
> ) throws StandardException;
>
>
> Help me in solving this issue.
>
> Thanks ,
> mahesh
>
>
>
> -----
> Thanks And regards,
> Mahesh
> --
> View this message in context: http://camel.465427.n5.nabble.com/Can-t-find-the-BindingOperationInfo-with-operation-name-tp5757407.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>