java - camel proxied web service returns an empty soap envelope -
java - camel proxied web service returns an empty soap envelope -
i'm using camel proxy webservice (i need modify soap header first). i'm using cxf_message dataformat allows me alter soap header. sending soap message using soapui works fine, , can see arrives @ real webservice, however, the response empty soap envelope? when switch message dataformat response right (but can't alter soap headers).
what doing wrong? why dataformat alter in/out behaviour?
<cxf:cxfendpoint id="broker"> ... </cxf:cxfendpoint> <camelcontext id="camelcontext" xmlns="http://camel.apache.org/schema/spring"> <endpoint id="realws" uri="http://localhost:8080/service?throwexceptiononfailure=true" /> <route> <from uri="cxf:bean:broker?dataformat=cxf_message" /> <to ref="realws" /> </route> </camelcontext>
as far aware there no such cxf_message
info format @ all. there pojo
(which default), payload
, message
. message
info format won't able process soap
- mode applies no soap
processing.
in order process soap
headers need specify payload
info format. able process soap
headers. check here how this. note: in link routes done via java code. in order via spring you'll have create own processor , uri forwards message custom processor, modify headers , send real endpoint.
see also:
proxying payload format apache camel cxf component java cxf apache-camel
Comments
Post a Comment