Hi
I'm having a bit of trouble setting up what should be a very routine web service call using SI.
Please see the relevant excerpts of my config below.
I am receiving the message correctly (and for the purposes of getting everything wired, then disregarding it) and hardcoding in the webservice request into the transformer.Code:<jms:inbound-gateway id="serviceSynchJmsIn" connection-factory="connectionFactory" request-destination="serviceRequestQueue" request-channel="service-request-channel" reply-timeout="30000" concurrent-consumers="80" max-concurrent-consumers="100"/> <beans:bean id="testTransformerBean" class="*.TestTransformer" /> <int:chain input-channel="service-request-channel" output-channel="service-response-channel"> <!-- Custom transformer to create the required webservice request. --> <int:transformer ref="testTransformerBean" /> <int-ws:header-enricher> <int-ws:soap-action value="http://**/ServiceRequest" /> </int-ws:header-enricher> <int-ws:outbound-gateway uri="http://**/service" /> </int:chain>
The problem that I am on the server that hosts the WS that the entire body of the call is somehow being stripped out with the envelope being formatted correctly.Code:@Component public class TestTransformer { private static String test = "<tx:ServiceRequest xmlns:tx='*/messaging/schemas/ServiceRequest'>" + " <tx:Transaction>" + " <tx:Serial>14165195</tx:Serial>" + " <tx:Amount>100</tx:Amount>" + " </tx:Transaction>" + "</tx:TaxServiceRequest>"; @Transformer public String transform(final String message) { return test; } }
I can send a message perfectly fine via SOAP_UI and have managed to use a messaging gateway to autowire a test, it is when I bring in JMS that I find myself in trouble.Code:<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > <soapenv:Header/> <soapenv:Body> <tx:ServiceRequest xmlns:tx='*/messaging/schemas/ServiceRequest'> </tx:ServiceRequest> </soapenv:Body> </soapenv:Envelope>
Have you any ideas,
Thanks,
Barry


Reply With Quote
)