Sep 17th, 2007, 01:20 PM
using AbstractMarshallingPayloadEndpoint when operation has no request message
I want to use the AbstractMarshallingPayloadEndpoint for an API which has no inputs. Therefore, there is no xsd type for the incoming request object. To go along with the airline example, for an operation like "GetAllKnownFlights", in which no input data is required, the wsdl might look like
<wsdl:message name="GetAllKnownFlightsInput" />
Is there a way to use the AbstractMarshallingPayloadEndpoint in such a way? Is there a way to have null passed down to the endpoint in such a case? Do I need to create some empty xsd type for the incoming message?
Sep 17th, 2007, 02:19 PM
Yes, the AbstractMarshallingPayloadEndpoint supports SOAP messages with no Body contents. null will be passed to the invokeInternal method.
Sep 17th, 2007, 03:03 PM
getting java.lang.IllegalArgumentException "source parameter must not be null"
Thanks for your response. I'm seeing an java.lang.IllegalArgumentException thrown by the underlying jaxb unmarshalling implementation when the SOAP message contains no body. What am I missing here? Thanks again for your reply.
Sep 18th, 2007, 04:34 AM
I'm sorry: the issue (http://opensource.atlassian.com/proj...browse/SWS-164) has been solved after Spring-WS 1.0 has been released. It is part of the current snapshots, and will be in 1.0.1, to be released next week.