ZSI -> CXF: Parameters coming in as NULL
Recounting a strange little compatibility issue I had between ZSI 2.0 and CXF 2.0.x. I was using CXF as the server, running from Maven using Jetty, and ZSI as the client. The parameters from the ZSI were arriving at the service implementation as null. With the web services logging turned on I could see that the SOAP packet was arriving OK, and looked good.
A little bit of digging round the web turned up this message.
The issue was that ZSI wasn’t explicitly namespacing the elements, and so CXF was not seeing them. The solution was to add elementFormDefault=”qualified” to my WSDL definition, and rebuild the ZSI stubs.
<wsdl:definitions xmlns:soap=”http://schemas.xmlsoap.org/wsdl/soap/”
…
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xsd:elementFormDefault=”qualified”
xsd:attributeFormDefault=”unqualified”>
-
Archives
- July 2009 (1)
- February 2009 (1)
- December 2008 (1)
- November 2008 (1)
- October 2008 (2)
- September 2008 (1)
- August 2008 (1)
- April 2008 (2)
- February 2008 (4)
- January 2008 (2)
- November 2007 (1)
- October 2007 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS