WSDL attachment example

2009-03-10 Thread Nan Null
I am developing a WSDL for a web service.  However, I don't know what
is the standard way of having an attachment or two in web service
calls (with other data).  The problem is that I saw some example, but
in the WSDL, there is no mention of the attachment.  I also use the
Axis2 example of attachment, and then view the WSDL, again, there is
no mention of the attachment.  In the client and server code, the
attachment is there (manually added into the code).
After the WSDL is created, it will be sent to another unit for
development.  Therefore, if I need 1 or more attachment in an
operation, I need a way to specify it exactly (as input, output or
both).

Please point me to the right location or give me a snippet of code.
It cannot be this hard.  Please use standard code only.  Thanks.


Re: Axis2 Code Generator Problem

2009-03-10 Thread Michael
I followed these instructions and I still get the error I reported in my 
original email below when I try to generate a WSDL file from my Java code.

Any other suggestions?

Thanks.
  - Original Message - 
  From: Richard Hu 
  To: axis-user@ws.apache.org 
  Sent: Monday, February 23, 2009 10:52 PM
  Subject: RE: Axis2 Code Generator Problem


  This is a known bug.  Here is the solution with explanation:  
http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/

   

  Solution: Copy the jar for stax and for backport to the plug-in directory 
(\plug-ins\\lib) and then add the backport jar 
to the plugin.xml file.

   


--

  From: Michael [mailto:mtarullo...@optonline.net] 
  Sent: Monday, February 23, 2009 9:10 PM
  To: axis-user@ws.apache.org
  Subject: Axis2 Code Generator Problem

   

  I'm developing a bottom up web service and now that I have got it working 
using the code I developed and the client stub generated when I created the web 
service from Eclipse I now want to create a WSDL file.

   

  When I launch the Axis2 Code Generator (v1.3.0) Wizard, enter the fully 
qualified class name and the location of the class file and then select the 
button to test loading the class I keep getting a 
java.lang.ClassNotFoundException.

   

  Is this a bug or am I doing something wrong?



--



  No virus found in this incoming message.
  Checked by AVG - www.avg.com 
  Version: 8.0.237 / Virus Database: 270.11.3/1970 - Release Date: 02/24/09 
13:35:00


[Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility

2009-03-10 Thread Leon Searl
Hi,

The developers at WS02 OxygenTank provided a very good example of  
implementing
Web Services Security with Rampart (http://wso2.org/library/3190).

In this example, they incorporated the WS-Policy information into the  
service WSDL definition,
and then used the tool, wsdl2java to generate the service stub.
This generated stub incorporated the ws-policy, and so no changes or  
extensions were required
in the client (except to set username/password options).

However, when I tried to do the same with a service that I had  
written, the generated
service stub did not include the ws-policy information.
The key difference between the original example and my code was that  
the example
described the service using WSDL 1.1, and I had a WSDL 2.0 definition  
for my service.

Why doesn't wsdl2java incorporate the ws-policy information in the  
stub when given WSDL 2.0 input?
Have I overlooked some command line option?
Or is it dependent upon where in the WSDL the policy information is  
included
(I have placed the policy element inside the wsdl2:binding element)?

The alternative of attaching the policy to the service stub in the  
client code using,
options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,  );
as in the Rampart samples, is much less desirable for our environment.
thanks for your help !

leon

-- 
Leon S. Searl, Software/Hardware Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu



Re: Java2WSDL and abstract classes

2009-03-10 Thread Sagara Gunathunga
Hi Alex,
hammm... u are trying to have "Animal "  class as the return type
,then according to your  internal logic return a instance of it's
subclass like Dog or Cat . AFAIK we can retrieve subclass of a any
given class but I'm not sure is it possible to retrieve sub classes
when you specify super class , So i don't think such feature available
with Java2WSDL tool .

The simplest solution is to  change your method signature to return a
"Dog" instance , it will generate correct schema as i mention in my
previous post .

for a example ,   public Dog getDog ()  or public Dog getAnimal()
will result in to a correct schema generation .

Alternatively you may use JAX-WS  services with Axis2 because JAXB
define @XmlSeeAlso annotation [1]  to archive  your requirement.
please refer link [2] also .

Hope you can find any pointer from this .

[1] 
-http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/XmlSeeAlso.html
[2]- http://weblogs.java.net/blog/kohlert/archive/2006/10/jaxws_and_type.html

Thanks ,

On Tue, Mar 10, 2009 at 11:02 PM, Alexander Rosemann
 wrote:
> Hi Sagara,
>
> Sagara Gunathunga wrote:
>>
>> Hi Alex,
>> AFAIK there is  no special  parameter  required for this , according
>> to method signatures of your service class, Java2WSDL generate correct
>> schema for in/out messages . in your case it should generates types as
>> follow.
>>
>>  
>>                
>>
>>  
>>
>>  
>>                
>>  
>>
>>  
>>                
>>                    
>>                        
>>
>> -
>>
>> -
>>                        
>>                    
>>            
>>  
>>
>>
>>
>> Anyway can you post method signatures of your service class...?
>>
>>
>> Thanks ,
>>
>
> That's what I get from running Java2WSDL:
>
> http://.../xsd"; targetNamespace="http://...";
> attributeFormDefault="qualified" elementFormDefault="qualified">
>            http://..."/>
>            
>                
>                    
>                         type="ax22:Animal" nillable="true"/>
>                    
>                
>            
>        
>        http://.../xsd";
> attributeFormDefault="qualified" elementFormDefault="qualified">
>            
>                
>            
>        
>
> The animal type is there. That's my service class:
>
> public class AnimalService {
>
>  public Animal getAnimal() {
>    return new Dog();
>  }
>
> }
>
> Thanks four help Sagara!
>
> -Alex
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Re: Java2WSDL and abstract classes

2009-03-10 Thread Alexander Rosemann

Hi Sagara,

Sagara Gunathunga wrote:

Hi Alex,
AFAIK there is  no special  parameter  required for this , according
to method signatures of your service class, Java2WSDL generate correct
schema for in/out messages . in your case it should generates types as
follow.

 




 

 




-

-



 



Anyway can you post method signatures of your service class...?


Thanks ,



That's what I get from running Java2WSDL:

http://.../xsd"; targetNamespace="http://..."; 
attributeFormDefault="qualified" elementFormDefault="qualified">

http://..."/>



type="ax22:Animal" nillable="true"/>





http://.../xsd"; 
attributeFormDefault="qualified" elementFormDefault="qualified">






The animal type is there. That's my service class:

public class AnimalService {

  public Animal getAnimal() {
return new Dog();
  }

}

Thanks four help Sagara!

-Alex



Re: Failing to extract RequestedSecurityToken usning STSClient

2009-03-10 Thread Massimiliano Masi

Hi,

Quoting Håkon Sagehaug :

 Cannot obtain token identifier


The best place is to look at the processIssueResponse code.

I think you have to add an wsu:Id to your token and a  
RequestedAttachedReference or RequestedUnattachedReference in the  
RSTR, depending on your policy.




This message was sent using IMP, the Internet Messaging Program.




Re: Java2WSDL and abstract classes

2009-03-10 Thread Sagara Gunathunga
Hi Alex,
AFAIK there is  no special  parameter  required for this , according
to method signatures of your service class, Java2WSDL generate correct
schema for in/out messages . in your case it should generates types as
follow.

 




 

 




-

-



 



Anyway can you post method signatures of your service class...?


Thanks ,

On Tue, Mar 10, 2009 at 8:35 PM, Alexander Rosemann
 wrote:
> Hi,
>
> I know, this has been asked before, though I couldn't find an answer to it.
>
> I'm busy fiddling around with the Java2WSDL ant task shipped with Axis2.
>  The tool works fine until I try to generate the WSDL from an abstract
> class.
>
> Having an abstract class called Animal and a subclass Dog, it creates the
> schema for the Animal but misses out on the Dog type.
>
> I presume I just can't see what ගංගා චක්‍රයේ පරාමිතිය has to be set to get 
> this going.
>
> Any pointers that lead to a resolution of my issue are much appreciated.
>
> Thanks,
> Alex
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Java2WSDL and abstract classes

2009-03-10 Thread Alexander Rosemann

Hi,

I know, this has been asked before, though I couldn't find an answer to it.

I'm busy fiddling around with the Java2WSDL ant task shipped with Axis2. 
 The tool works fine until I try to generate the WSDL from an abstract 
class.


Having an abstract class called Animal and a subclass Dog, it creates 
the schema for the Animal but misses out on the Dog type.


I presume I just can't see what parameter has to be set to get this going.

Any pointers that lead to a resolution of my issue are much appreciated.

Thanks,
Alex



Re: Failing to extract RequestedSecurityToken usning STSClient

2009-03-10 Thread Håkon Sagehaug
Hi

Thanks very much for the help so far, it worked after I reorganized the
setup some. But now a new error can, maybe you could help, it seems like the
token returned can't be referenced,  got this message
 Cannot obtain token identifier

So I guess I've to add a identifier to my token somehow, but little unsure
on how to do this. Can it only be an attribute in the token called id, like
this

  
  http://my.namespace/"; id="1234567">
 ADMIN
 testu_project
  
   

Or does the id attribute have to have a special format, type etc

I read in the spec about RequestedAttachedReference and it said:

"Since returned tokens are considered opaque to the requestor, this optional
element is specified to indicate how to reference the returned token when
that token doesn't support references using URI fragments"

So I guess I want to know how to  make my token in a way that it could be
referenced.

cheers, Håkon

2009/3/10 Massimiliano Masi 

> Hi,
>
> Quoting Håkon Sagehaug :
>
>> Can you specify that an interaction should be final or not? I looked at
>> the
>> messages exchanged in rampart sample 05, and there the
>> RequestedSecurityTokenResponse was not wrapped inside a
>> RequestedSecurityTokenResponseCollection
>>
>
> Look at the Rampart's source, STSClient,
> processIssueResponse:
>
>if (version == RahasConstants.VERSION_05_12) {
>//The WS-SX result will be an RSTRC
>rstr = result.getFirstElement();
>}
>
> This means that the STS has to return the RSTRC. If you use a single
> round trip, then the template is always RST/RSTRC.
>
> I already posted it in the rampart-dev ml:
>
> <
> http://www.nabble.com/Misunderstanding-in-rampart-processIssueResponse-td21706796.html
> >
>
> and also look at the OASIS' ml:
>
> 
>
> Ciao,
>
>  Massimiliano
>
>
> 
> This message was sent using IMP, the Internet Messaging Program.
>
>
>


-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Java2WSDL and abstract classes

2009-03-10 Thread Alexander Rosemann

Hi,

I know, this has been asked before, though I couldn't find an answer to 
my problem.


I'm busy fiddling around with the Java2WSDL ant task shipped with Axis2. 
 The tool works fine until I tried to generate the WSDL from an 
abstract class.


Having an abstract class called Animal and a subclass Dog, it creates 
the schema for the Animal but misses out on the Dog type.


I presume I just can't see what parameter has to be set to get this 
thing going.


Any pointers that lead to a resolution of my issue are much appreciated.

Cheers,
Alex


Adding security header to STSClient in rahas

2009-03-10 Thread Håkon Sagehaug
Hi all,

I wanted to add username/password token in my request to my sts service. I'm
using the STSClient from rahas and tried with this

Options options = new Options();
options.setUserName("user");
options.setPassword("pass");
options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
loadPolicy("policy/sts_policy.xml"));
stsClient.setOptions(options);

But the messages don't have a security header.

Alos how should I configure the callback handler, since it need to both
validate the username password and fetch the certificate for validating the
signed message. Should it be something like this

if(pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN){
   /* Do password validation*/
}

if(pwcb.getUsage() == WSPasswordCallback.SIGNATURE){
/* Do set password for keystore*/
}

cheers, Håkon
-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Re: Failing to extract RequestedSecurityToken usning STSClient

2009-03-10 Thread Massimiliano Masi

Hi,

Quoting Håkon Sagehaug :

Can you specify that an interaction should be final or not? I looked at the
messages exchanged in rampart sample 05, and there the
RequestedSecurityTokenResponse was not wrapped inside a
RequestedSecurityTokenResponseCollection


Look at the Rampart's source, STSClient,
processIssueResponse:

if (version == RahasConstants.VERSION_05_12) {
//The WS-SX result will be an RSTRC
rstr = result.getFirstElement();
}

This means that the STS has to return the RSTRC. If you use a single
round trip, then the template is always RST/RSTRC.

I already posted it in the rampart-dev ml:



and also look at the OASIS' ml:



Ciao,

  Massimiliano


This message was sent using IMP, the Internet Messaging Program.




Re: Failing to extract RequestedSecurityToken usning STSClient

2009-03-10 Thread Håkon Sagehaug
Hi

Can you specify that an interaction should be final or not? I looked at the
messages exchanged in rampart sample 05, and there the
RequestedSecurityTokenResponse was not wrapped inside a
RequestedSecurityTokenResponseCollection


cheers, Håkon


2009/3/10 Massimiliano Masi 

> Hi,
>
> Quoting Håkon Sagehaug :
>
>> I 'm using the STSClient of rahas to call my sts service, but when I get
>> the
>> response back from the server I get this error message
>>
>
> Because you are missing the RequestSecurityTokenResponseCollection.
>
> If it is a final step on issuing the token, the message MUST be:
>
> 
>   
>   
>
> According to the OASIS spec, section 3.2:
>
> The  element (RSTR) is used to return a
> security token or response to a security token request. The
>  element (RSTRC) MUST be used to
> return a security token or response to a security token request on the final
> response.
>
>
>
> 
> This message was sent using IMP, the Internet Messaging Program.
>
>
>


-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Re: Possible to pass SOAP messages directly rather than HTTP or JMS ??

2009-03-10 Thread apinke

Thanks asankha .

Synapse/ESB seems an overkill for my requirement I think and a bit
heavyweight.  What I think it would do is read the file and send the SOAP
message on the bus to another endpoint which would be a webservice over
http. 

I could do something similar : read the SOAP message from the file and make
a call internally ( using HTTPCommons ) to the service . this is a
roundabout and unnecessary way and would also affect the performance I
think.
If there was a way I could directly hook into the stub and pass the message
that would be the most ideal and fast way.

thanks
Pat




Asankha C. Perera wrote:
> 
> Hi Pat
>> I have created a web service from WSDL using Axis 1.2  and HTTP binding. 
>> I have a situation where I will have the SOAP messages available to me in
>> flat files that I have to read and process. 
>>
>> I would like to know if its possible to provide this SOAP message
>> directly
>> to the generated stub (or any other class.) ? The SOAP messages are
>> already
>> available with me and I would like to re-use the same generated classes
>> to
>> processes these SOAP messages. The impl would be a POJO. 
>>
>> That is , I would like to skip the HTTP binding and provide the SOAP
>> message
>> directly. Is there a hook for  not using the HTTP transport and provide
>> the
>> SOAP message 
>> directly ? ( maybe a JavaBinding just like HTTPbinding and JMSBinding ? ) 
>> Maybe this will also be helpful in testing to provide pre defined SOAP
>> requests directly for consumption rather than via http or jms ? 
>>   
> Not sure if this is the exact thing you are looking for.. but the Apache 
> Synapse ESB is capable of picking up files from lots of different file 
> systems (e.g. ftp, sftp, zip, local etc) and pumping them to various 
> other endpoints (like SOAP/HTTP, JMS, FIX, Mail etc)
> 
> See http://synapse.apache.org
> 
> cheers
> asankha
> 
> -- 
> Asankha C. Perera
> AdroitLogic, http://adroitlogic.org
> 
> http://esbmagic.blogspot.com
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Possible-to-pass-SOAP-messages-directly-rather-than-HTTP-or-JMStp22430117p22431066.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Failing to extract RequestedSecurityToken usning STSClient

2009-03-10 Thread Massimiliano Masi

Hi,

Quoting Håkon Sagehaug :

I 'm using the STSClient of rahas to call my sts service, but when I get the
response back from the server I get this error message


Because you are missing the RequestSecurityTokenResponseCollection.

If it is a final step on issuing the token, the message MUST be:


   
   

According to the OASIS spec, section 3.2:

The  element (RSTR) is used to  
return a security token or response to a security token request. The  
 element (RSTRC) MUST be  
used to return a security token or response to a security token  
request on the final response.





This message was sent using IMP, the Internet Messaging Program.




Failing to extract RequestedSecurityToken usning STSClient

2009-03-10 Thread Håkon Sagehaug
Hi all,

I 'm using the STSClient of rahas to call my sts service, but when I get the
response back from the server I get this error message

 org.apache.rahas.TrustException: RequestedSecurityToken missing in the
response

I my response I've got the RequestedSecurityToken element, my response looks
like this

 http://docs.oasis-open.org/ws-sx/ws-trust/200512";>

   http://my.namespace/";>
  ADMIN
  test
   

 

I've set the version of the Sts client to RahasConstants.VERSION_05_12 like
this

stsClient.setVersion(RahasConstants.VERSION_05_12)

So the version should be reflecting the namespace. Does anyone have any
hints on this issue?

cheers, Håkon


-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Re: Possible to pass SOAP messages directly rather than HTTP or JMS ??

2009-03-10 Thread Asankha C. Perera

Hi Pat
I have created a web service from WSDL using Axis 1.2  and HTTP binding. 
I have a situation where I will have the SOAP messages available to me in
flat files that I have to read and process. 


I would like to know if its possible to provide this SOAP message directly
to the generated stub (or any other class.) ? The SOAP messages are already
available with me and I would like to re-use the same generated classes to
processes these SOAP messages. The impl would be a POJO. 


That is , I would like to skip the HTTP binding and provide the SOAP message
directly. Is there a hook for  not using the HTTP transport and provide the
SOAP message 
directly ? ( maybe a JavaBinding just like HTTPbinding and JMSBinding ? ) 
Maybe this will also be helpful in testing to provide pre defined SOAP
requests directly for consumption rather than via http or jms ? 
  
Not sure if this is the exact thing you are looking for.. but the Apache 
Synapse ESB is capable of picking up files from lots of different file 
systems (e.g. ftp, sftp, zip, local etc) and pumping them to various 
other endpoints (like SOAP/HTTP, JMS, FIX, Mail etc)


See http://synapse.apache.org

cheers
asankha

--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






Possible to pass SOAP messages directly rather than HTTP or JMS ??

2009-03-10 Thread apinke

Hi , 

I have created a web service from WSDL using Axis 1.2  and HTTP binding. 
I have a situation where I will have the SOAP messages available to me in
flat files that I have to read and process. 

I would like to know if its possible to provide this SOAP message directly
to the generated stub (or any other class.) ? The SOAP messages are already
available with me and I would like to re-use the same generated classes to
processes these SOAP messages. The impl would be a POJO. 

That is , I would like to skip the HTTP binding and provide the SOAP message
directly. Is there a hook for  not using the HTTP transport and provide the
SOAP message 
directly ? ( maybe a JavaBinding just like HTTPbinding and JMSBinding ? ) 
Maybe this will also be helpful in testing to provide pre defined SOAP
requests directly for consumption rather than via http or jms ? 

thanks 
Pat

-- 
View this message in context: 
http://www.nabble.com/Possible-to-pass-SOAP-messages-directly-rather-than-HTTP-or-JMStp22430117p22430117.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: WSSecurity Implementaton

2009-03-10 Thread Dhanush Gopinath
I think you need to start it with the Rampart Module

 

http://ws.apache.org/axis2/modules/rampart/1_3/security-module.html

 

Dhanush

 

From: Sudhir Mongia [mailto:sudhir.mon...@gmail.com] 
Sent: Tuesday, March 10, 2009 1:56 PM
To: axis-user@ws.apache.org
Subject: WSSecurity Implementaton

 

Hi,

 

I have been asked to learn and implement WSSecurity in Web services exposed by 
us. We are using Axis2 version 1.4.

 

Can anyone tell where to start?

 

Thanks,

Sudhir




WSSecurity Implementaton

2009-03-10 Thread Sudhir Mongia
Hi,
I have been asked to learn and implement WSSecurity in Web services exposed
by us. We are using Axis2 version 1.4.

Can anyone tell where to start?

Thanks,
Sudhir


Re: Daylight savings problem in Australia

2009-03-10 Thread Dennis Sosnoski

Hi Felix,

There's really no correct result on this, since your dateTime value 
doesn't specify a time zone offset. If you want a dateTime value to be 
handled consistently, always use a time zone offset (which may be 'Z', 
meaning 0 offset from UTC) in the XML representation - so fix the web 
service server to do this. I haven't checked lately, but Axis2 should 
handle values with time zone offsets properly (meaning they get 
converted to that UTC value). If you can't change the server, the next 
best approach is to just treat the value as an xs:string in the schema 
and handle the conversion in your own code, where you can make whatever 
assumptions you want about the time zone.


I've got an article on InfoQ which discusses some of the issues around 
schema's poorly thought-out data types for time and other basic data 
type issues for web services: 
http://www.infoq.com/articles/schema-for-ws-part1 The second one in this 
series should be out soon, discussing schema extensibility.


Cheers,

 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Felix Castanar wrote:

Anyone help out there?

If I have this:

2009-02-26T19:10:00

Why does Axis2 returns one hour more during daylight savings (20:10 instead of 
19:10)?

Shouldn't return always the same date?

Cheers!
Felix

-Original Message-
From: Felix Castanar [mailto:felix.casta...@hyro.com] 
Sent: Friday, 27 February 2009 12:52 PM

To: axis-user@ws.apache.org
Subject: Daylight savings problem in Australia

Hi,

I'm in Sydney (Australia) where actually there is daylight savings (DST).
The problem I have is the following:

I'm accessing a web service server (in Australia) which sends the following:
2009-02-26T19:10:00

But the response object (generated using Axis2 1.4.1) creates a Calendar object 
that is equivalent to:

2009-02-26 20:10:00

(so it added one hour to what it was sent)

Since this conversion was working in Axis2 1.0 I investigated the issue.

This is the calendar object returned by Axis2 1.0 (please note the value for the 
last field: DST_OFFSET=360)


java.util.GregorianCalendar[time=123563580,areFieldsSet=true,areAllFieldsSet=true,
lenient=true,zone=sun.util.calendar.ZoneInfo[id="Australia/Sydney",offset=3600,dstSavings=360,
useDaylight=true,transitions=142,lastRule=java.util.SimpleTimeZone[id=Australia/Sydney,offset=3600,
dstSavings=360,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,
startTime=720,startTimeMode=1,endMode=3,endMonth=3,endDay=1,endDayOfWeek=1,endTime=720,
endTimeMode=1]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2009,MONTH=1,
WEEK_OF_YEAR=9,WEEK_OF_MONTH=4,DAY_OF_MONTH=26,DAY_OF_YEAR=57,DAY_OF_WEEK=5,
DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=7,HOUR_OF_DAY=19,MINUTE=10,SECOND=0,MILLISECOND=0,
ZONE_OFFSET=3600,DST_OFFSET=360]

Whereas the same Calendar object returned by Axis2 1.4.1 returns:

java.util.GregorianCalendar[time=?,areFieldsSet=false,areAllFieldsSet=false,
lenient=true,zone=sun.util.calendar.ZoneInfo[id="Australia/Sydney",offset=3600,dstSavings=360,
useDaylight=true,transitions=142,lastRule=java.util.SimpleTimeZone[id=Australia/Sydney,offset=3600,
dstSavings=360,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,
startTime=720,startTimeMode=1,endMode=3,endMonth=3,endDay=1,endDayOfWeek=1,endTime=720,
endTimeMode=1]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=?,YEAR=2009,MONTH=1,
WEEK_OF_YEAR=?,WEEK_OF_MONTH=?,DAY_OF_MONTH=26,DAY_OF_YEAR=?,DAY_OF_WEEK=?,
DAY_OF_WEEK_IN_MONTH=?,AM_PM=?,HOUR=?,HOUR_OF_DAY=19,MINUTE=10,SECOND=0,MILLISECOND=0,
ZONE_OFFSET=3600,DST_OFFSET=0]

Note the last field for this version: DST_OFFSET=0

I dig down the source code till I found the method responsible for the conversion from 
"2009-02-26T19:10:00" to the Calendar object.

This method is "public static Calendar convertToDateTime(String source) " in 
the class org.apache.axis2.databinding.utils.ConvertUtils

This method explicitly sets DST_OFFSSET=0 regardless the TimeZone being in DST or not, so 
for the entry "2009-02-26T19:10:00" I will get one extra added in DST but the 
correct time when DST finishes (I already tested it changing my computer's clock).

I'm aware that JIRA issue 3916 
(https://issues.apache.org/jira/browse/AXIS2-3916) introduced the code where 
DST_OFFSET is set always to 0.

So... 
a) This is still a problem and the issue 3916 should be reopened

b) The web service should be sending the dates in a way we get the right time regardless 
of the DST. Any suggestion how? (AFAIK "2009-02-26T19:10:00" is the correct way)

It would be great if someone could put some light here.

Thanks
Felix