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

  • Webservice with void param


    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,
    Last edited by H.B.Krishna; Mar 14th, 2008, 01:51 AM.

  • #2
    Still confused


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

    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