camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muruga <muruga.m...@marriott.com>
Subject Re: Camel HTTPS Webservice Consumption - HTTP Status Code 500
Date Thu, 15 Nov 2012 21:53:34 GMT
Thanks for your help!  Appreciate that.

Here is my camel config xml. 

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:camel="http://camel.apache.org/schema/spring"
       xmlns:cxf="http://camel.apache.org/schema/cxf"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:http="http://cxf.apache.org/transports/http/configuration"
       xmlns:sec="http://cxf.apache.org/configuration/security"
      
xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
       http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd
       http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
       http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
       http://cxf.apache.org/transports/http-jetty/configuration
http://cxf.apache.org/schemas/configuration/http-jetty.xsd 
       ">

  <import resource="classpath:META-INF/cxf/cxf.xml"/>

  
  <context:property-placeholder
location="classpath:incident.properties,file:target/custom.properties"
                                ignore-resource-not-found="true"/>

  
  <bean id="enrichBean"
class="org.apache.camel.example.cxf.proxy.EnrichBean"/>
  <bean id="getReservationBean"
class="com.marriott.webserivce.test.InputGetReservation"/>
  <bean id="getResponseBean"
class="com.marriott.webserivce.test.OutputGetReservation"/>
  <bean id="controllListBean"
class="com.marriott.webserivce.test.GetControllList"/>
  <bean id="reservationResponseBean"
class="com.marriott.webserivce.test.GetReservationResponse"/>
  <bean id="reservationControlListBean"
class="com.marriott.webserivce.test.ReservationControlListBean"/>

	<bean id="camelTracer"
class="org.apache.camel.processor.interceptor.Tracer">
	    <property name="traceExceptions" value="true"/>
	    <property name="traceInterceptors" value="true"/>
	  	<property name="traceOutExchanges" value="true" />
	</bean>
	
	<bean id="traceFormatter"
class="org.apache.camel.processor.interceptor.DefaultTraceFormatter">
	  <property name="showOutBody" value="true" />
	  <property name="showOutBodyType" value="true" />
	  <property name="showException" value="true" />
	</bean>

  	
  	<cxf:cxfEndpoint id="getReservation"
                  
address="http://localhost:${proxy.port}/camel-example-cxf-proxy/webservices/get_reservation"
                   endpointName="s:GetReservationEndpoint"
                   serviceName="s:GetReservationEndpointService"
                   wsdlURL="etc/reservation.wsdl"
                  
serviceClass="com.marriott.webserivce.test.GetReservationEndpointService"
                   xmlns:s="http://reservation.marriott.com/services"/>               
   
 
 	<http:conduit name="*.http-conduit">
		<http:tlsClientParameters secureSocketProtocol="SSL" >
			<sec:keyManagers keyPassword="mcom123">
				<sec:keyStore type="JKS" password="mcom123" file="C:/Temp/testcert.jks"
/>
			</sec:keyManagers>
			<sec:trustManagers>
				<sec:keyStore type="JKS" password="mcom123" file="C:/Temp/testcert.jks"
/>
			</sec:trustManagers>
			<sec:cipherSuitesFilter>
				<sec:include>.*.*</sec:include>
			</sec:cipherSuitesFilter>
		</http:tlsClientParameters>
		<http:client AllowChunking="true" />  
	</http:conduit>  
  
  <camelContext trace="true"  xmlns="http://camel.apache.org/schema/spring">
    <propertyPlaceholder
location="classpath:incident.properties,file:target/custom.properties"
id="properties"/>
    <endpoint
uri="http://dsasdf.sdf.sadf.sdf.sf/content/services/Service_v1"
id="callGetControlList"/>
    <endpoint uri="https://asfdasdf.adf.asf.asdf:5618/Reservation"
id="callReservationWS"/>
    <endpoint uri="https://asdfasfasdf.asdf.sadf.asf.sdf:5070/Processor_v3"
id="callRewardsWS"/>
    <route>
        <from uri="cxf:bean:getReservation"/>
        <to
uri="bean:reservationControlListBean?method=getReservationRequest"/>
        <to uri="log:input"/>
        <to ref="callReservationWS"/>
    </route>
</camelContext>

</beans>


*NOTE: * the URLs are mocked when posted here.




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-HTTPS-Webservice-Consumption-HTTP-Status-Code-500-tp5722782p5722806.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message