Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Bottom up web service not working with Dates
Bottom up web service not working with Dates [message #149074] Fri, 25 November 2005 04:53 Go to next message
Eclipse UserFriend
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?
Re: Bottom up web service not working with Dates [message #150122 is a reply to message #149074] Thu, 01 December 2005 05:25 Go to previous message
Eclipse UserFriend
Originally posted by: brennanspies.sbcglobal.net

Typo, actually the style is Document/Literal...filed a bug, seems like
there is a similar problem that Kathy Chan filed a bug on for
Document/Literal with a complex type.
Previous Topic:Creating Web Service Client Error
Next Topic:WTP 1.0M9 available for download!
Goto Forum:
  


Current Time: Sat Nov 09 05:52:23 GMT 2024

Powered by FUDForum. Page generated in 0.02561 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top