Bottom up web service not working with Dates [message #149074] |
Fri, 25 November 2005 04:53 |
Eclipse User |
|
|
|
Originally posted by: brennanspies.sbcglobal.net
Hi,
I am writing a very simple web service using the bottom up methodology as
outlined in the WTP tutorial (using the RPC literal style). The method in
the Java class looks like:
public double getRoundTripPrice(String destination, Date depart, Date ret)
{...}
The request SOAP from the Web Services Explorer looks like:
<soapenv:Envelope xmlns:q0="http://demo.yawl.ejgallo.com"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<q0:destination>New York, NY</q0:destination>
<q0:depart>2005-11-26T03:34:32.638Z</q0:depart>
<q0:ret>2005-12-07T03:34:43.864Z</q0:ret>
</soapenv:Body>
</soapenv:Envelope>
Problem is, I am getting a NullPointerException because BOTH Date
parameters being passed in are null (the String parameter gets passed just
fine). Testing with the Axis DateDeserializer class reveals no problems
handling the date strings...
Does anyone know what is going on here?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02561 seconds