A simple example:
Code:
@WebService
public interface MyService {
public void foo(java.util.Date d);
}
@WebService(...snip...)
public class MyServiceImpl implements MyService {
public void foo(java.util.Date d) {
System.out.println("d=" + d);
}
}
Using soapUI
Code:
<soapenv:Envelope ...snip...>
<soapenv:Header/>
<soapenv:Body>
<apis:foo>
<arg0>2009-06-12T12:40:30.767-04:00</arg0>
</apis:foo>
</soapenv:Body>
</soapenv:Envelope>
will print d=Fri Jun 12 12:40:30 EDT 2009
and
Code:
<soapenv:Envelope ...snip...>
<soapenv:Header/>
<soapenv:Body>
<apis:foo>
<arg0>BAD-DATE</arg0>
</apis:foo>
</soapenv:Body>
</soapenv:Envelope>
will print d=null
instead of throwing an unmarshalling exception.
My quest is to make it throw exception.
Any help? Thanks.