4 Replies Latest reply: Apr 9, 2012 8:04 AM by Keith Babo RSS

How do I test the camel-soap-proxy quickstart?

Jeff DeLong Master

First off, the readme says

 

2. Start JBoss AS 7 with the standalone-preview.xml :

 

./standalone.sh --server-config=standalone-preview.xml

 

This however throws an exception. I cannot see a standalone-preview.xml

 

Instead I started the server using standalonw.sh with no arguments.

 

Next, the readme say

 

4. Submit a request with your preferred SOAP client - src/test/resources/xml contains sample

   requests and the responses that you should see

 

It is not clear which WSDL to use. If I use ReverseService.wsdl in resources/META-INF, I get a 404. If I change the WSDL soap:address to

 

<service name="ReverseService">

    <port name="ReverseServicePort" binding="tns:ReverseServiceBinding">

      <soap:address location="http://localhost:18002/ReverseService"/>

    </port>

  </service>

 

SwitchYard throws exception

 

12:57:11,665 ERROR [org.switchyard.internal.DefaultHandlerChain] (pool-11-thread-1) org.switchyard.HandlerException was thrown by handler(provider): Unexpected exception handling SOAP Message --- Caused by javax.xml.soap.SOAPException: Cannot process SOAP request --- Caused by javax.xml.ws.WebServiceException: Could not send Message. --- Caused by org.apache.cxf.transport.http.HTTPException: HTTP response '404: Not Found' when communicating with http://localhost:18001/ReverseService

 

I don't see this service being deployed. Here is the console output:

 

12:33:53,848 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "switchyard-quickstart-camel-soap-proxy.jar"

12:33:53,889 INFO  [org.switchyard] (MSC service thread 1-12) Deploying SwitchYard application 'switchyard-quickstart-camel-soap-proxy.jar'

12:33:53,892 INFO  [org.switchyard] (MSC service thread 1-1) Starting SwitchYard service

12:33:54,354 INFO  [org.switchyard.component.soap.OutboundHandler] (MSC service thread 1-1) Creating dispatch with WSDL vfs:/content/switchyard-quickstart-camel-soap-proxy.jar/META-INF/ReverseService.wsdl

12:33:54,410 INFO  [org.apache.camel.impl.DefaultCamelContext] (MSC service thread 1-1) Apache Camel 2.8.0 (CamelContext: camel-2) is starting

12:33:54,411 INFO  [org.apache.camel.impl.DefaultCamelContext] (MSC service thread 1-1) JMX enabled. Using ManagedManagementStrategy.

12:33:54,435 WARN  [org.apache.camel.impl.DefaultCamelContext] (MSC service thread 1-1) Cannot find needed classes for JMX lifecycle strategy. Needed class is in spring-context.jar using Spring 2.5 or newer (spring-jmx.jar using Spring 2.0.x). NoClassDefFoundError: org/springframework/jmx/export/metadata/JmxAttributeSource

12:33:54,436 WARN  [org.apache.camel.impl.DefaultCamelContext] (MSC service thread 1-1) Cannot use JMX. Fallback to using DefaultManagementStrategy (non JMX).

12:33:54,438 INFO  [org.apache.camel.impl.converter.AnnotationTypeConverterLoader] (MSC service thread 1-1) Found 3 packages with 14 @Converter classes to load

12:33:54,445 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-1) Loaded 153 core type converters (total 153 type converters)

12:33:54,448 INFO  [org.apache.camel.impl.converter.AnnotationTypeConverterLoader] (MSC service thread 1-1) Loaded 2 @Converter classes

12:33:54,449 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-1) Loaded additional 13 type converters (total 166 type converters) in 0.002 seconds

12:33:54,449 INFO  [org.apache.camel.impl.DefaultCamelContext] (MSC service thread 1-1) Total 0 routes, of which 0 is started.

12:33:54,450 INFO  [org.apache.camel.impl.DefaultCamelContext] (MSC service thread 1-1) Apache Camel 2.8.0 (CamelContext: camel-2) started in 0.039 seconds

12:33:54,507 INFO  [org.apache.camel.impl.DefaultCamelContext] (MSC service thread 1-1) Route: route1 started and consuming from: Endpoint[switchyard://ProxyService?namespace=urn%3Aswitchyard-quickstart%3Acamel-soap-proxy%3A1.0]

12:33:54,517 INFO  [org.switchyard.component.soap.InboundHandler] (MSC service thread 1-1) Publishing WebService at http://127.0.0.1:18002/ReverseService

12:33:54,518 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {urn:switchyard-quickstart:camel-soap-proxy:1.0}ReverseService from WSDL: vfs:/content/switchyard-quickstart-camel-soap-proxy.jar/META-INF/ReverseService.wsdl

12:33:54,525 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://127.0.0.1:18002/ReverseService

12:33:54,540 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "switchyard-quickstart-camel-soap-proxy.jar"