Feb 9th, 2009, 11:45 AM
No args request
I want to create an endpoint method that gets all of the holidays, the method will take no arguments.
I have tried to get this working but have not seen an example of this, my questions are:
1) Do I need to define a request type in my messages.xsd?
such as <GetHolidaysRequest/>
(I will create a GetHolidaysResponse based on one of the other examples, that bit is fine).
2) How can I call this service, ie. what API call?
I tried using getWebServiceTemplate().marshalSendAndReceive(obje ct) and passed
a StringSource (as per the GetFrequentMileageRequest example), and I got an error message back stating:
JAXBException: class org.springframework.xml.transform.StringSource not any of its super class is known to this context.
Can someone advice as to what I should be using where?