Announcement Announcement Module
Collapse
No announcement yet.
No argument/result specification Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No argument/result specification

    Hi,

    It seems to be a rather simple question, but I did not find any answer for it. I have some simple WS operations like getVersion which do not take any argument, and other operations which do not return anything. I'm wondering how am I supposed to describe it in my schema.

    For both cases, I have defined a "NilType" :

    Code:
    <!-- Type for empty input/output -->
    <xs:complexType name="nilType">
    	<xs:sequence/>
    </xs:complexType>
    Then use it in both requests/responses :

    Code:
    <xs:element name="GetVersionRequest" type="lke:nilType"/>
    ...
    <xs:element name="ReloadLingwareResponse" type="lke:nilType"/>
    This works but when using jaxb bindings, then a "NilType" class is generated and the client stubs, for example, create a getVersion operation which takes a NilType instance as a parameter.

    What's the correct way of describing those operations ?

  • #2
    Either my question is stupid, or the answer is not that trivial, but I'd really like to have the answer.

    Comment

    Working...
    X