-
Apr 24th, 2008, 03:08 PM
#1
How do I define/call a no-arg method?
I realize spring-ws and message endpoints are different than RPC. I already have client and server example working with jaxb-marshalled complex types for requests and responses.
but I also want to create a getStatus( ) service that takes no args and returns List<String>.
Can I just define an empty schema request element like this:
<xs:element name="getStatusRequest"/>
<xs:element name="getStatusResponse">
<xs:complexType>
<xs:sequence>
<xs:element name='item' type='xs:string' minOccurs="0" maxOccurs='unbounded'/>
</xs:sequence>
</xs:complexType>
</xs:element>
and my endpoint impl like this:
@PayloadRoot(localPart = "getStatusRequest", namespace = "myns")
public GetStatusResponse getStatus() {
.....
}
if so, how do I use client WebServiceTemplate to send the request? Is marshalling involved? I'm really only concerned about the request part (I know how to make the response work).
Thanks for helping...
-- David
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules