Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
1.6.2
-
None
-
None
-
Windows 7, Tomcat 5.5, java 1.6.0_33 & Axis2-1.6.2
Description
Replication :
Create a simple service :
import java.util.Calendar;
public class ServerTimeService {
public Calendar getServerTime()
{ Calendar cal = Calendar.getInstance(); return cal; }}
Add the following snippet in services.xml :
<service name="ServerTimeService">
<parameter name="ServiceClass">ServerTimeService</parameter>
<operation name="getServerTime">
<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>
</service>
SOAP Request :
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:test="http://">
<soap:Header/>
<soap:Body>
<test:getServerTime/>
</soap:Body>
</soap:Envelope>
SOAP Response:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:getServerTimeResponse xmlns:ns="http://">
<ns:return>2012-11-02T12:38:02.536-07:00</ns:return>
</ns:getServerTimeResponse>
</soapenv:Body>
</soapenv:Envelope>
The computer is in Pacific Time Zone; and on 2nd Nov 2012; daylight savings is on; so the value I'd expect is 2012-11-02T12:38:02.536-08:00