Re: camel-validator : parser doesn't allow a maxOccurs attribute value to be set greater than the value 5 000

2014-04-30 Thread bharadwaj
Could you please explain where exactly you made a change?



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-validator-parser-doesn-t-allow-a-maxOccurs-attribute-value-to-be-set-greater-than-the-value-5-0-tp5747680p5750714.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: XMLConstants.FEATURE_SECURE_PROCESSING feature setting in jboss-fuse-6.1

2014-04-30 Thread bharadwaj
The solution is not proper.. and it's perfectly working in jboss fuse 6.0
even with same version.



--
View this message in context: 
http://camel.465427.n5.nabble.com/XMLConstants-FEATURE-SECURE-PROCESSING-feature-setting-in-jboss-fuse-6-1-tp5750712p5750715.html
Sent from the Camel - Users mailing list archive at Nabble.com.


The PayLoad elements cannot fit with the message parts of the BindingOperation.

2014-04-30 Thread bharadwaj
CaughtExceptionType:java.lang.IllegalArgumentException,
CaughtExceptionMessage:The PayLoad elements cannot fit with the message
parts of the BindingOperation. Please check the BindingOperation and
PayLoadMessage., StackTrace:java.lang.IllegalArgumentException: The PayLoad
elements cannot fit with the message parts of the BindingOperation. Please
check the BindingOperation and PayLoadMessage.
at
org.apache.camel.component.cxf.CxfEndpoint$CamelCxfClientImpl.setParameters(CxfEndpoint.java:907)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:510)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:456)
at 
org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:112)



--
View this message in context: 
http://camel.465427.n5.nabble.com/The-PayLoad-elements-cannot-fit-with-the-message-parts-of-the-BindingOperation-tp5750724.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: The PayLoad elements cannot fit with the message parts of the BindingOperation.

2014-05-05 Thread bharadwaj
Message body is matching with operation please find the camel code as below:


   
http://minspa.csi.nsn.com
  
  
"urn:unsubscribe"
  
  
   
{http://minspa.csi.nsn.com}unsubscribe
  
  
  
   
cxf:bean:MINISPAMsbUnsub?address=${property.MINISPA_URL}&dataFormat=PAYLOAD
  
   



and the Request body is : 


http://minspa.csi.nsn.com";>client1client1790190085010true1




--
View this message in context: 
http://camel.465427.n5.nabble.com/The-PayLoad-elements-cannot-fit-with-the-message-parts-of-the-BindingOperation-tp5750724p5750863.html
Sent from the Camel - Users mailing list archive at Nabble.com.


camel-netty component sping DSL working example

2014-06-04 Thread bharadwaj
Hi Users,

How to use camel-netty component for telnet connection?




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-netty-component-sping-DSL-working-example-tp5751867.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: route information is not coming with camelContext.getRoute("route1")

2014-11-03 Thread bharadwaj
The old option shouldStartContext have been removed and replaced with this
new autoStartup option instead. What it allows is to configure Camel to not
auto start when Spring starts.

So how do you start Camel then?
The autoStartup option on the  is only used once, so you can
manually start Camel later by invoking its start method as shown below:
ApplicationContext ac = ...
SpringCamelContext camel = (SpringCamelContext) ac.getBean("myCamel");
 
// now start Camel manually
camel.start();

once you camel context is active running then only you can get route
definition.




--
View this message in context: 
http://camel.465427.n5.nabble.com/route-information-is-not-coming-with-camelContext-getRoute-route1-tp5758371p5758444.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Caused by: java.net.MalformedURLException: no protocol: ${systemurl}

2014-11-17 Thread bharadwaj
For example , i am reading the camel property as below "systemurl" 

/test/text()



is it right to define? or is there any other way to read the camel property?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Caused-by-java-net-MalformedURLException-no-protocol-systemurl-tp5759188.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Caused by: java.net.MalformedURLException: no protocol: ${systemurl}

2014-11-17 Thread bharadwaj
When we use recipient List , could not handle exception bypassing to global
exception camel 2.10,
I know this has been fixed in camel 2.12. we cant migrate it now because
it's already in production.
Could you please give me any other alternative use it in camel:to?  



--
View this message in context: 
http://camel.465427.n5.nabble.com/Caused-by-java-net-MalformedURLException-no-protocol-systemurl-tp5759188p5759230.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Choosing between Mapping Options

2015-01-22 Thread bharadwaj
Camel - provides users java code free environment , it has various components
to fulfill users requirement.

The best way is to use XQuey?XSLT to form INBOUND / OUTBOUND messages.

While XQuery can be used for simple transformations, it lacks the power and
sofistication of XSLT (especially templates and the 
instruction).

XSLT is a language that was especially designed to process tree structures.
It is still best at doing this.

In cases when accessing an XML database it would be a good decision to use
(the efficiency of) XQuery to extract the necessary XML nodes and then do
the transformation with XSLT from here on. Some XSLT 2.x / XQuery processors
do allow this (via extensions) even now. The next wave of XSLT 2.x/XQuery
1.x specifications will most probably make such interoperability an official
feature of these languages.




--
View this message in context: 
http://camel.465427.n5.nabble.com/Choosing-between-Mapping-Options-tp5761977p5762022.html
Sent from the Camel - Users mailing list archive at Nabble.com.


How do I call a NTLM secured webservice using Camel-cxf?

2015-01-28 Thread bharadwaj
http://schemas.microsoft.com/xrm/2011/test/Services";
wsdlURL="Artifacts/wsdl/testService.wsdl"

serviceClass="com.microsoft.schemas.xrm._2011.test.services.OrgService">
















http://schemas.microsoft.com/xrm/2011/test/Services}SecureConnection.http-conduit";>



testlabs\\admin
test
NTLM





   





  



  





error 
---

16:30:15,079 | DEBUG | test/Services | SendProcessor
|
157 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | 
Endpoint[cxf://bean:realDcrmService?dataFormat=PAYLOAD] Exchange[Message:
[com.microsoft.schemas.xrm._2011.test.QueryExpression@58a5fa2e]]
16:30:15,079 | DEBUG | test/Services | CxfProducer  |
221 - org.apache.camel.camel-cxf - 2.10.0.redhat-60024 | Try to find a
default operation. You should set 'operationName' in header.
16:30:15,081 | DEBUG | test/Services | DefaultErrorHandler  |
157 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Failed delivery
for (MessageId: ID-M-6QPB102-63418-1422441664194-20-2 on ExchangeId:
ID-M-6QPB102-63418-1422441664194-20-1). On delivery attempt: 0 caught:
org.apache.camel.InvalidPayloadException: No body available of type:
org.apache.camel.component.cxf.CxfPayload but has value:
[com.microsoft.schemas.xrm._2011.contracts.QueryExpression@58a5fa2e] of
type: java.util.ArrayList on: Message:
[com.microsoft.schemas.xrm._2011.contracts.QueryExpression@58a5fa2e]. Caused
by: No type converter available to convert from type: java.util.ArrayList to
the required type: org.apache.camel.component.cxf.CxfPayload with value
[com.microsoft.schemas.xrm._2011.test.QueryExpression@58a5fa2e].
Exchange[Message:
[com.microsoft.schemas.xrm._2011.contracts.QueryExpression@58a5fa2e]].
Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type
converter available to convert from type: java.util.ArrayList to the
required type: org.apache.camel.component.cxf.CxfPayload with value
[com.microsoft.schemas.xrm._2011.test.QueryExpression@58a5fa2e]]


Thanks in Advance!!!



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-do-I-call-a-NTLM-secured-webservice-using-Camel-cxf-tp5762172.html
Sent from the Camel - Users mailing list archive at Nabble.com.


How do I call a NTLM secured webservice using Camel-http4?

2015-01-28 Thread bharadwaj
Hi Friends,

Can any body point out sample code snippet on how to produce/call NTML
secured webservice using camel-http4 component? or please advise, how to
achieve it in some other way?

Thanks in Advance



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-do-I-call-a-NTLM-secured-webservice-using-Camel-http4-tp5762178.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How do I call a NTLM secured webservice using Camel-cxf?

2015-01-28 Thread bharadwaj
Anil, may be in the given code snippet header is missing but we have set
the header for operation name.

On Wed, Jan 28, 2015 at 5:05 PM, Anil Vunnava [via Camel] <
ml-node+s465427n5762177...@n5.nabble.com> wrote:

> Hi Bharadwaj,
>
> May I know the web methods (operations) in your web service..?
>
> If there are more than one operations we either need to set header on
> exchange CxfConstants.OPERATION_NAME.
>
> Regards,
> Anil Vunnava
> --
> From: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5762177&i=0>
> Sent: ‎28-‎01-‎2015 04:40 PM
> To: [hidden email] <http:///user/SendEmail.jtp?type=node&node=5762177&i=1>
> Subject: How do I call a NTLM secured webservice using Camel-cxf?
>
>  address="${TestServiceServiceUrl}"
> endpointName="test:CustomBindingService"
> serviceName="test:OrgService"
> xmlns:crm=" rel="nofollow" link="external">
> http://schemas.microsoft.com/xrm/2011/test/Services";
> wsdlURL="Artifacts/wsdl/testService.wsdl"
>
> serviceClass="com.microsoft.schemas.xrm._2011.test.services.OrgService">
>
> 
> 
> 
> 
> 
> 
> 
> 
>  class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
> 
> 
>  class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
> 
> 
>
> http://schemas.microsoft.com/xrm/2011/test/Services
> }SecureConnection.http-conduit">
>  AllowChunking="false"
> MaxRetransmits="11"
> Connection="Keep-Alive"
> ReceiveTimeout="6"
> CacheControl="No-Cache"
> />
>
> 
> testlabs\\admin
> test
> NTLM
> 
>
> 
>
> 
> 
>  uri="cxf:bean:mimicTestService?dataFormat=PAYLOAD" />
>
>
>  message="TestService request recieved ${body}"/>
>
> 
>
>
>  uri="cxf:bean:TestService?dataFormat=PAYLOAD"/>
>  message="TestService response recieved ${body}"/>
> 
> 
>
>
>
>
> error
> ---
>
> 16:30:15,079 | DEBUG | test/Services | SendProcessor
>  | 157 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | >>>>
> Endpoint[cxf://bean:realDcrmService?dataFormat=PAYLOAD] Exchange[Message:
> [com.microsoft.schemas.xrm._2011.test.QueryExpression@58a5fa2e]]
> 16:30:15,079 | DEBUG | test/Services | CxfProducer  |
> 221 - org.apache.camel.camel-cxf - 2.10.0.redhat-60024 | Try to find a
> default operation. You should set 'operationName' in header.
> 16:30:15,081 | DEBUG | test/Services | DefaultErrorHandler  |
> 157 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Failed delivery
> for (MessageId: ID-M-6QPB102-63418-1422441664194-20-2 on ExchangeId:
> ID-M-6QPB102-63418-1422441664194-20-1). On delivery attempt: 0 caught:
> org.apache.camel.InvalidPayloadException: No body available of type:
> org.apache.camel.component.cxf.CxfPayload but has value:
> [com.microsoft.schemas.xrm._2011.contracts.QueryExpression@58a5fa2e] of
> type: java.util.ArrayList on: Message:
> [com.microsoft.schemas.xrm._2011.contracts.QueryExpression@58a5fa2e].
> Caused by: No type converter available to convert from type:
> java.util.ArrayList to the required type:
> org.apache.camel.component.cxf.CxfPayload with value
> [com.microsoft.schemas.xrm._2011.test.QueryExpression@58a5fa2e].
> Exchange[Message:
> [com.microsoft.schemas.xrm._2011.contracts.QueryExpression@58a5fa2e]].
> Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type
> converter available to convert from type: java.util.ArrayList to the
> required type: org.apache.camel.component.cxf.CxfPayload with value
> [com.microsoft.schemas.xrm._2011.test.QueryExpression@58a5fa2e]]
>
>
> Thanks in Advance!!!
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/How-do-I-call-a-NTLM-secured-webservice-using-Camel-cxf-tp5762172.html
>  

Camel-cxf is removing square brackets in soap response

2016-08-23 Thread bharadwaj
Hi,


We have observed that "[]" are getting removed from soap response.


We have service, which calls external soap service and while external soap
service returns response like 

test
test[square] abcd

we are getting out put as 

test
testsquare abcd

Please help...



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-cxf-is-removing-square-brackets-in-soap-response-tp5786686.html
Sent from the Camel - Users mailing list archive at Nabble.com.


camel JMS component client connects to Weblogic queue. Fuse restart requires whenever Web logic bounced.

2016-09-07 Thread bharadwaj
Hi,


camel JMS component client connects to  Weblogic queue. Fuse restart
requires whenever Web logic bounced. 


Jms pulls mgs from wbelogic server. Whenever weblogic bounced , JMS retry
every 5000 ms but it never connected automatically when weblogic is up. we
need to restart Fuse every-time. 

Is there a way to auto-connect?

Camel 2.12.

Jboss fuse 6.1.0



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-JMS-component-client-connects-to-Weblogic-queue-Fuse-restart-requires-whenever-Web-logic-bounc-tp5787335.html
Sent from the Camel - Users mailing list archive at Nabble.com.


camel-xmljson unmarhalling issue Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.json.JsonConfig

2016-11-16 Thread bharadwaj
Hi,


Camel-xmljson is not working and throwing error runtime when enable camel
tracing.

Caused by: java.lang.NoClassDefFoundError: Could not initialize class
net.sf.json.JsonConfig


Jboss fuse 6.1.0

feature added - camel-xmljson

java version - 1.7.0_111

 



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-xmljson-unmarhalling-issue-Caused-by-java-lang-NoClassDefFoundError-Could-not-initialize-classg-tp5790168.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Is there way to parse in camel cxf endpoint for empty tag's as

2015-05-20 Thread bharadwaj
Hi Team,

I have problem with camel CXF, When there is no data / element is empty then
i am getting response as 

. I need the response as .

Please help me.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Is-there-way-to-parse-in-camel-cxf-endpoint-for-empty-tag-s-as-name-name-tp5767301.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Is there way to parse in camel cxf endpoint for empty tag's as

2015-05-22 Thread bharadwaj
No buddy, name is of the element in the response. If we dont pass any data to
elements CXF is parsing it as  but i need the empty tag's like this




--
View this message in context: 
http://camel.465427.n5.nabble.com/Is-there-way-to-parse-in-camel-cxf-endpoint-for-empty-tag-s-as-name-name-tp5767301p5767408.html
Sent from the Camel - Users mailing list archive at Nabble.com.


what is the best approach to consume restful service?

2015-06-18 Thread bharadwaj
We have differ options to consume reftful services like cxfRS, jetty, http. 

My requirement is to consume restful service without service class also it
should be able to support CXF bus configuration to have global configuration
cxf endpoints. 

I know we have cxfRS but it's mandatory to use service class in lesser than
camel 2.15 version, camel 2.15 introduced modelRef which can be used without
service class, 

currenlty we are using camel 2.12 version could please suggest us which
step/approach use to consume reffull service without using service?(client
doesn't provide us service class) 


Thanks,
Bharadwaj nakka



--
View this message in context: 
http://camel.465427.n5.nabble.com/what-is-the-best-approach-to-consume-restful-service-tp5768381.html
Sent from the Camel - Users mailing list archive at Nabble.com.


How to consume sql blob object and save it as zip file in camel

2015-06-18 Thread bharadwaj
Hi,

I have sql data base : which have zip file content in terms of BLOB , Using
camel i need to consume it and store it as zip file in file directory.

Can anybody help me out.

Thanks,
Bharadwaj nakka 



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-consume-sql-blob-object-and-save-it-as-zip-file-in-camel-tp5768380.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to consume sql blob object and save it as zip file in camel

2015-06-19 Thread bharadwaj
The BLOB object is an xml type to do process as u described. BLOB may have
any type IMAGE , PDF, ZIP etc..

in my case i am storing zip file which contains list of multi format files
as a BLOB in data base.

camel sql component has outputType=SelectOne which give us stream object
using stream object we can unmarshal to ZipFileDataFormat which will give us 
the each file from zip file. 

next we can marshal to ZipFileDataFormat  and save entire zip file to file
system :) 






--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-consume-sql-blob-object-and-save-it-as-zip-file-in-camel-tp5768380p5768386.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Invalid content was found starting with element 'exchangeProperty'

2015-07-03 Thread bharadwaj
Hi,

Camel 2.15.1 is not able to identify the exchangeProperty in recipientList. 

nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:
Invalid content was found starting with element 'exchangeProperty'



--
View this message in context: 
http://camel.465427.n5.nabble.com/Invalid-content-was-found-starting-with-element-exchangeProperty-tp5768835.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Invalid content was found starting with element 'exchangeProperty'

2015-07-03 Thread bharadwaj
i am trying to upgrade jboss fuse 6.1.0 to 6.2.0. 
earlier camel 2.12 - 
  
  
myProperty
  


camel property expression changed since camel 2.15 onwards :

  
  
myProperty
  


but when i try to use exchangeProperty in recipientList as above,it's
throwing an error.

invalid content found exchangeProperty. 






--
View this message in context: 
http://camel.465427.n5.nabble.com/Invalid-content-was-found-starting-with-element-exchangeProperty-tp5768835p5768837.html
Sent from the Camel - Users mailing list archive at Nabble.com.


adviceWith is throwing UnsupportedOperationException when route have choice definition

2015-07-05 Thread bharadwaj
camel version 2.15.1 

java version "1.8.0_45"

Exception :

java.lang.UnsupportedOperationException: null
at java.util.AbstractList.add(AbstractList.java:148)
at
org.apache.camel.builder.AdviceWithTasks$1.task(AdviceWithTasks.java:
151)
at
org.apache.camel.model.RouteDefinition.adviceWith(RouteDefinition.jav
a:270)

The same error which logged in for weaveAddLast camel version : 2.15.2

https://issues.apache.org/jira/browse/CAMEL-8798



--
View this message in context: 
http://camel.465427.n5.nabble.com/adviceWith-is-throwing-UnsupportedOperationException-when-route-have-choice-definition-tp5768891.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Invalid content was found starting with element 'exchangeProperty'

2015-07-05 Thread bharadwaj
Thank you. It's class path issue, resolved after re-build the projects.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Invalid-content-was-found-starting-with-element-exchangeProperty-tp5768835p5768894.html
Sent from the Camel - Users mailing list archive at Nabble.com.