[jbossws-cxf-users] cxf web service client on Jboss EAP 6.4 with wrapper style WSDL and implicit header giving error

Kaushal Kishore Agrawal kaushalkishore9 at gmail.com
Mon May 30 07:03:03 EDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbossws-cxf-users/attachments/20160530/48e7ce68/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SharedProject.zip
Type: application/zip
Size: 45330 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/jbossws-cxf-users/attachments/20160530/48e7ce68/attachment-0001.zip 


More information about the jbossws-cxf-users mailing list