This week's giveaway is in the Java in General forum.
We're giving away four copies of Java Challengers and have Rafael del Nero on-line!
See this thread for details.
Win a copy of Java Challengers this week in the Java in General forum!

Shawn Ch

Greenhorn
+ Follow
since Jan 20, 2015
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shawn Ch

I have a job that will have multiple partitions. Does not run in a container. How can I share the cache between partitions? Each partition is processing a batch of records.
5 years ago
I created the WSDL first in RSA and then created the java bean skelaton from the WSDL. There are a couple of dateTime fields in the WSDL that are created as GregorianCalendar objects.

When I test with SOAPui and the date fields are passed correctly, everything works great. But when there is an invalid date format or anything else in the SOAP request, instead of returning a Conversion exception or some other validation exception, the field is passed as a null to the request object in the SOAP IMPL. Should't this return an exception?

Sample requests inputs:
<endTimeStamp>2014-01-28T01:30:14.474Z</endTimeStamp> - Date
<endTimeStamp>06-FEB-14 01.51.00.000000000 AM</endTimeStamp> - Null
<endTimeStamp>Any other string be it a date or not.</endTimeStamp> - Null


Request Object - endTimeStamp definition and getter:

@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar endTimeStamp;

/**
* Gets the value of the endTimeStamp property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getEndTimeStamp() {
return endTimeStamp;
}
6 years ago