You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jevans12 <je...@modusoperandi.com> on 2011/06/27 23:10:05 UTC

camel-cxf / spring-ws client saaj

Hello!  I am integrating with a legacy web application by using the camel-cxf
component to host a SOAP service. The service hosts many operations and they
all work, except for the method that uses an attachment. The legacy webapp
is using spring-ws and its client template. As you can see below in the
debug output, the client opens a connection to the url with the trailing
'/?wsdl' URL and tries to send a saaj message. Immediately the CXF endpoint
returns the wsdl to the client and the camel routing never gets initiated.

Testing with a  mock service with the same wsdl using soapUI, the legacy
client is successful.
Ii am using the jetty-http transport. any thoughts would be great. Im n ot
sure who is processing the ?wsdl call, is it in the jeety component? it does
not seem to make it to the CXF code...

camelContext.xml snippits
=============
<cxf:cxfEndpoint
		address="http://192.82.122.139:9083/work/traderService"
		wsdlURL="etc/Trader.wsdl" serviceClass="com.work.trader.TraderServicePort"
		id="TraderService" endpointName="e:TraderServicePort"
		serviceName="s:CatalogQueryService" xmlns:s="java:com.work.trader"
		xmlns:e="java:com.work.trader">
		<cxf:properties>
			<entry key="mtom-enabled" value="true" />
		</cxf:properties>	
	</cxf:cxfEndpoint>

<from uri="cxf:bean:TraderService?dataFormat=PAYLOAD" />
<choice>.....

Legacy WebApp debug output
======================
16:12:41,290 DEBUG [WebServiceTemplate] Opening
[org.springframework.ws.transport.http.HttpUrlConnection@2910f310] to [h
ttp://192.82.122.139:9083/work/TraderService?wsdl]
16:12:41,291 DEBUG [sent] Sent request [SaajSoapMessage
{java:com.work.trader}getTrades]
16:12:41,371 SEVERE [soap] SAAJ0514: Unable to create envelope from given
source because the root element is not named E
nvelope
16:12:41,372 SEVERE [soap] SAAJ0511: Unable to create envelope from given
source
16:12:41,381 SEVERE [soap] SAAJ0514: Unable to create envelope from given
source because the root element is not named E
nvelope
16:12:41,382 SEVERE [soap] SAAJ0514: Unable to create envelope from given
source because the root element is not named E
nvelope
16:12:41,383 SEVERE [soap] SAAJ0514: Unable to create envelope from given
source because the root element is not named E
nvelope
16:12:41,384 DEBUG [received] Received response [SaajSoapMessage] for
request [SaajSoapMessage {java:com.work.trader}getTrades]
16:12:41,385 SEVERE [soap] SAAJ0514: Unable to create envelope from given
source because the root element is not named E
nvelope

--
View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-spring-ws-client-saaj-tp4529813p4529813.html
Sent from the Camel - Users mailing list archive at Nabble.com.