cxf web service client on Jboss EAP 6.4 with wrapper style WSDL and implicit header giving error
by Kaushal Kishore Agrawal
Hi All,
We have a small application, which accept a REST call and transform it into
a SOAP call and pass the same to third application (Southbound app).
Response received from third application is transformed back in the REST
response to be sent to the calling application (Northbound app).
Southbound App has exposed a WSDL with implicit header, while generating
client stub we have ignored the header part, as same need to be taken care
by the SOAPHandler.
But on transformation body part of SOAP message is getting populated as
empty causing southbound application to reject the request.
Details of the environment:
‐ Cxf 2.7.14
‐ Jboss EAP 6.4
‐ Southbound application is mocked using SOAP UI, URL of the mocked
application need to pass as header parameter in the northbound call as
‘_mockURL’ parameter.
‐ Request and response are getting logged using LogRequest SOAP handler.
Path of the log file need to be updated based on local directory structure.
This is just to check the outgoing request and incoming response from
southbound app.
‐ Gradle 1.11 is used as build tool
---------------------------------------------------------------------------------------
Northbound request details
URL : http://localhost:8080/SharedProject/customers/245?type=RETAIL
Method : GET
Headers:
Accept - application/xml
Content-Type - application/xml
_mockURL - <URL of the mocked southbound application>
Kindly share if someone has faced similar issue and any solution provided
for this.
Attached is the standalone gradle project that can be used to validate the
issue.
Thanks,
Kaushal
8 years, 5 months