Announcement Announcement Module
No announcement yet.
How do I define/call a no-arg method? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:element name='item' type='xs:string' minOccurs="0" maxOccurs='unbounded'/>

    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