Announcement Announcement Module
Collapse
No announcement yet.
Webservice with void param Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Webservice with void param

    Hi,

    I wonder how can we create a Spring WS with void parameter, a equivalent of following:

    public List<PhoneBookEntry> findAllEntries () {
    ....
    }

    Issue 1:
    I created a XSD with FindAllEntriesResponse definition and without FindAllEntriesRequest. As per the XsdBasedSoap11Wsdl4jDefinitionBuilder source, the wsdl operation style is supposed to be set as OperationType.NOTIFICATION. But in resultant wsdl there is no operation by name FindAllEntries (I don't want to hand code anything in WSDL).

    Issue 2:
    I am using JAXB marshaller and annotated endpoint. Even if I succeed in getting the operation defined in WSDL, how can I map to a end point, as no specific request type is available for the request

    Am I missing something? Are findAll(void) type requests are discouraged?

    With regards,
    HB
    Last edited by H.B.Krishna; Mar 14th, 2008, 01:51 AM.

  • #2
    Still confused

    Hi,

    When exactly is the following code executed in <XsdBasedSoap11Wsdl4jDefinitionBuilder>.createOper ations(...) ?

    Code:
    412: } else if (requestMessage == null
    412: && responseMessage != null) {
    413: operation.setStyle(OperationType.NOTIFICATION);
    414: }

    Being newbie to WS, I am confused how to implement webservice with void param

    Comment

    Working...
    X