-
Mar 14th, 2008, 01:45 AM
#1
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 at 01:51 AM.
-
Mar 15th, 2008, 09:52 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
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