Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-12 Thread cannykanna
Hi
I am using the camel-cxf example and created a project in eclipse.
In src/main/java 
org.apache.camel.example.Provider package, I created my own Client which
talks to end application.
I used this client in my CamelCxfExample.java Class and modified the tester
bean as well. 
Now I modified the CamelCXFProviderRouteConfig.xml in the same project.

Now when I run   mvn exec:java -PWebServiceProvider command from eclipse, I
am getting below stack of error:
[INFO] Scanning for projects...
[INFO] 
[INFO]

[INFO] Building Camel :: Example :: CXF 2.11.0
[INFO]

[INFO] 
[INFO] >>> exec-maven-plugin:1.1.1:java (default-cli) @ camel-example-cxf
>>>
[INFO] 
[INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @
camel-example-cxf ---
[INFO] 
[INFO] <<< exec-maven-plugin:1.1.1:java (default-cli) @ camel-example-cxf
<<<
[INFO] 
[INFO] --- exec-maven-plugin:1.1.1:java (default-cli) @ camel-example-cxf
---
[rovider.CamelCxfExample.main()] ClassPathXmlApplicationContext INFO 
Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@6b5b5783:
startup date [Fri Jul 12 12:35:44 IST 2013]; root of context hierarchy
[rovider.CamelCxfExample.main()] XmlBeanDefinitionReaderINFO 
Loading XML bean definitions from class path resource
[META-INF/spring/CamelCXFProviderRouteConfig.xml]
[rovider.CamelCxfExample.main()] XmlBeanDefinitionReaderINFO 
Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
[rovider.CamelCxfExample.main()] ClassPathXmlApplicationContext INFO  Bean
'cxf' of type [class org.apache.cxf.bus.spring.SpringBus] is not eligible
for getting processed by all BeanPostProcessors (for example: not eligible
for auto-proxying)
[rovider.CamelCxfExample.main()] DefaultListableBeanFactory INFO 
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@3da997a:
defining beans
[bridgePropertyPlaceholder,cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,testBean,soapMessageEndpoint,template,consumerTemplate,test_context:beanPostProcessor,test_context];
root of factory hierarchy
[rovider.CamelCxfExample.main()] CamelContextFactoryBeanINFO 
Bridging Camel and Spring property placeholder configurer with id:
bridgePropertyPlaceholder
[rovider.CamelCxfExample.main()] SpringCamelContext INFO  Apache
Camel 2.11.0 (CamelContext: test_context) is starting
[rovider.CamelCxfExample.main()] ManagementStrategyFactory  INFO  JMX
enabled.
[rovider.CamelCxfExample.main()] DefaultTypeConverter   INFO  Loaded
196 type converters
[rovider.CamelCxfExample.main()] ReflectionServiceFactoryBean   INFO 
Creating Service {http://www.service-now.com/incident}ServiceNow_incident
from WSDL: wsdl/incident.do.wsdl
[rovider.CamelCxfExample.main()] SpringCamelContext INFO  Apache
Camel 2.11.0 (CamelContext: test_context) is shutting down
[rovider.CamelCxfExample.main()] SpringCamelContext INFO  Uptime
0.898 seconds
[rovider.CamelCxfExample.main()] SpringCamelContext INFO  Apache
Camel 2.11.0 (CamelContext: test_context) is shutdown in 0.004 seconds
Get the exception org.apache.camel.RuntimeCamelException:
java.lang.RuntimeException: Protocol mismatch for port 443: engine's
protocol is http, the url protocol is https

My endpoint application runs on https protocol.

Can you please help me.?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Get-the-exception-org-apache-camel-RuntimeCamelException-java-lang-RuntimeException-Protocol-mismatcs-tp5735568.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-15 Thread cannykanna
Thank you William..i will follow the steps from the link U send..if I face
any problem again..i will get back to you.

Regards,
Kannaiah





--
View this message in context: 
http://camel.465427.n5.nabble.com/Get-the-exception-org-apache-camel-RuntimeCamelException-java-lang-RuntimeException-Protocol-mismatcs-tp5735568p5735649.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-15 Thread cannykanna
Hi Mueller

I have added the following lines  

  
  

beforeline

and modified cxfEndpoint as follows:
https://demo005.service-now.com:{{port}}/";
   wsdlURL="wsdl/incident.do.wsdl"
   endpointName="s:ServiceNowSoap"
   serviceName="s:ServiceNow_incident"
   xmlns:s="http://www.service-now.com/incident"/>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Get-the-exception-org-apache-camel-RuntimeCamelException-java-lang-RuntimeException-Protocol-mismatcs-tp5735568p5735650.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-16 Thread cannykanna
Thank you mueller,

Your link was very helpful. My problem got resolved.

Thanks
Kannaiah



--
View this message in context: 
http://camel.465427.n5.nabble.com/Get-the-exception-org-apache-camel-RuntimeCamelException-java-lang-RuntimeException-Protocol-mismatcs-tp5735568p5735710.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Which Component of camel is used for subscriptions or polling?

2013-07-16 Thread cannykanna
I am working on camel 2.11.0. I was able to do routing using cxf component
and perform CRUD operations in my endpoint application. Now how do I do
polling or which component is used for this in camel. 
Subscription or polling: In concurrent intervals of time, whatever updates
or changes happen in my endpoint application, we need to retrieve this
information. This is called polling or subscription.

Thanks
Kannaiah



--
View this message in context: 
http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Which Component of camel is used for subscriptions or polling?

2013-07-16 Thread cannykanna
Thank you Christopher. Will look into the doc. If there are any requires, i
will let U know..!!

Regards,
Kannaiah



--
View this message in context: 
http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709p5735763.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-17 Thread cannykanna
Hi Christian, Mueller CamelCXFProviderRouteConfig.xml

  
TesterBean.java
  

I am attaching the config xml and testerBean class. but I somehow feel,
there is no routing happening and no where camel is used. Can you check
please..?

Regards
Kannaiah




--
View this message in context: 
http://camel.465427.n5.nabble.com/Get-the-exception-org-apache-camel-RuntimeCamelException-java-lang-RuntimeException-Protocol-mismatcs-tp5735568p5735813.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Replacing standalone client with generic one in cxf component

2013-07-17 Thread cannykanna
HI

I have a wsdl with has many operations and input parameters defined for
each.
Now I wrote a standalone client with talks to my endpoint which exposes its
services through webservices.
This client talks with this endpoint and only one operation is defined in
it.
Now What I am looking is as follows.
>From my starting triggering point I say I have to hit the endpoint and do
one operation on it say get operation.
Now through Camel the the message has to pass as defined by our routing and
hit that endpoint and give back the response as per our routing.
For this my client has to be replaced by a generic one.
How can I do this..? Any ideas?
And through my endpoint I can do any operation uses SOAP messages only.?
Does camel has SOAP Component?

For Any Extra Information, feel free to ask.

Regards,
Kannaiah



--
View this message in context: 
http://camel.465427.n5.nabble.com/Replacing-standalone-client-with-generic-one-in-cxf-component-tp5735827.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Which Component of camel is used for subscriptions or polling?

2013-07-23 Thread cannykanna
Hi Christopher,
The Document link you sent was very helpful.
Thank you so much :)
Does the Camel has any component that supports polling other than EIPs?
Do you have any example where polling is executed?

Regards
Kannaiah



--
View this message in context: 
http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709p5736100.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Perform get Operation for every 10 seconds

2013-07-24 Thread cannykanna
HI 
I am working on camel integration framework with my application which
exposes web services.
Now I want to get configuration items from my application for every 10 secs.
How can this be achieved using camel?

Thanks
Kannaiah



--
View this message in context: 
http://camel.465427.n5.nabble.com/Perform-get-Operation-for-every-10-seconds-tp5736249.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Replacing standalone client with generic one in cxf component

2013-07-28 Thread cannykanna
Hi Willem:
Thanks for the reply.
I made changes in cxf endpoint uri and could configure it and made it work.
Thank you once again :)

I have one more doubt. Suppose i am doing get operation and store the
response in one file. And then for every 10 sec I want this get operation to
be invoked on my endpoint application and if there are any changes in my
application, those changes have to be only reflected and my stored file has
to be modified.

This is called subscriptionToChanges in terminology.

Do you have any idea how to do this?

Thanks
Kannaiah



--
View this message in context: 
http://camel.465427.n5.nabble.com/Replacing-standalone-client-with-generic-one-in-cxf-component-tp5735827p5736389.html
Sent from the Camel - Users mailing list archive at Nabble.com.