You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Mark Chai (JIRA)" <ax...@ws.apache.org> on 2004/11/12 01:24:23 UTC

[jira] Created: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Allow doAutoTypes to be configured through AxisProperties
---------------------------------------------------------

         Key: AXIS-1664
         URL: http://nagoya.apache.org/jira/browse/AXIS-1664
     Project: Axis
        Type: Improvement
  Components: Serialization/Deserialization  
    Versions: current (nightly)    
    Reporter: Mark Chai


I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56643 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

tomorrow is fine too...can you join us on irc to speed up the process? (irc.freenode.net channel #apache-axis). can we do jws on the server for now.  and then see if we need to specify the flag in wsdd?

thanks,
dims

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56641 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

OK!

I'll spruce up the tests (there were some bugs) and have a stab at some samples.
I'm assuming JUnit tests don't count.

If they do, then all is well.

There might be an issue with "today" ending a little earlier for me...

Also, I'm a little rusty on deploying dynamically to AXIS: is it possible to add the DoAutoTypes property to server-config.wsdd using AdminClient?

  

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56766 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

One thing about the test cases:

quite probably my mistake, but I had some initial confusion about the setup and teardown not working.

This is because the AdminClient is deploying changes (succesfully) to the *axis* web application.

Through looking at the URLs in test cases, I assumed the right thing to do was to install the updated axis.jar and the jws file to a new web application called "jws".

I'm guessing you have a mapping set up to map axis to jws, or some virtual directory under that, so the tests then run OK as the AdminClient deploys to the right web application.

Is this mapping documented somewhere, or is part of the standard build and test set-up?

Just to let you know as quickly as possible: I'm going to have a look at the docs now.

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56634 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

Let's do this today...i have a few items pending before this. So can i do it all as one checkin? (new samples, test cases from you and update of patch against current cvs?)

thanks,
dims

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56651 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

plz send it to my dims@yahoo.com and/or davanum@gmail.com accounts.

-- dims

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_55980 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

Mark,

how do you intend to use this? Can you please submit a small test case?

thanks,
dims


> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56772 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

Patrick,

current code effectively does the same thing "Call.invoke" internally. See AxisClientProxy.java :)

thanks,
dims

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56773 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

I wouldn't want to give the impression that I expected it be done any other way ;-)

And that's for the record, folks!

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56771 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Doh!

Thanks.

It seems to me that the operation of AutoTypes is effectively flawless. Meaning I haven't been able to come up with any tests that fail yet.

But the take home message is "works for me" - using Call.invoke is supported as expected.

Do you think test.functional.TestAutoTypes should be extended to demonstrate this?

I do have a few comments about the documentation I'm collating slowly- more anon.

Regards,

Patrick

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56250 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

The DoAutoTypes property in TypeMappingImpl actually seems to be in a very usable state, for scenarios where the client and server are both AXIS and have the same classes on the classpath for the Web Service parameters.

It's been suggested that setting the property could be easier.
I've submitted some simpe test cases based upon a hacked up version of the AXIs CVS head from 03 Dec where the property is simply initialised to true.
As can be seen (hopefully), using a simple JWS with the property set to true makes exposing a service class seamless, and there is some trivial work required to get the client engine to cooperate.

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56893 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Hello,

is the documentation what was wanted? 

If "everyone" is happy, then this issue could be closed, perhaps.


> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56671 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

Am reviewing the zip...

thanks,
dims

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56260 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Update:

Note that the only problems are related to deserialising the return at the client.
Note that input types to the Web Service are handled automatically.

Knowing this, this can be fixed more simply via something like 

        Class retClass = method.getReturnType();
        // need to handle only base component type
        if (retClass.isArray())
             retClass = retClass.getComponentType();
        // AAACK test for standard types
        // FIXME does not walk fields of Class to register those
        if ( (void.class != retClass) && (int.class != retClass) )
        {
            
            QName qnameRet = new QName(Namespaces.makeNamespace(retClass
                    .getName()), Types.getLocalNameFromFullName(retClass
                            .getName()));
            if (!tm.isRegistered(method.getReturnType(), qnameRet))
            {
                tm.register(SimpleBean.class, qnameRet, new BeanSerializerFactory(
                        SimpleBean.class, qnameRet), new BeanDeserializerFactory(
                                retClass, qnameRet));
            }
        }


However I suspect there might be a simple fix lurking in the AXIS code.

There is a post that is perhaps on this matter?

http://marc.theaimsgroup.com/?l=axis-user&m=103367809228985&w=2

However it mentions the "lines in red" as the changes they made to.Bit hard to see in white on black .

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56775 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

java\docs\reference.html#global_configuration
site\src\documentation\content\xdocs\java\reference.ihtml#global_configuration

Suggest axis.doAutoTypes is documented briefly

Alterations of the html and the ihtml with suggested text attached.

I'm afraid I'm a little clueless as to relevance of the ihtml files or even how they're produced... Sorry.


In addition as a "nice thing to have":-
Perhaps the literal "axis.doAutoTypes" should be extracted out as a constant so it appears in
java\build\javadocs\constant-values.html.
Suggest some good places might be org.apache.axis.Message, org.apache.axis.MessageContext, org.apache.axis.transport.http.AxisServlet
or maybe just TypeMappingImpl?


Regards,

Patrick



> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Dr. Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1664?page=comments#action_59680 ]
     
Dr. Patrick Martin commented on AXIS-1664:
------------------------------------------

Regression in Axis 1.2beta3, apparently.

Previous tests with the CVS latest as of the time of fix fail with the beta3 axis.jar on the server (tomcat).

Client continues to pass tests with the beta3 in place

matrix is as follows:

           Client        Server
Pass       Dec 12 CVS    Dec 12 CVS
Fail       Dec 12 CVS    beta 3
Fail       beta 3        beta 3
Pass       beta 3        Dec 12 CVS


Using server-config.wsdd to set axis.doAutoTypes for server, and AxisProperties to set property before creating Call object.

Will re-test using the test cases in the axis source tree.




> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://issues.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56646 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Having trouble uploading the latest samples and tests.

More anon.

Let me know if you can't carry on without this latest, as the current upload should get you started...

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1664?page=history ]
     
Davanum Srinivas resolved AXIS-1664:
------------------------------------

    Resolution: Fixed

Closing as per Mark's final comments.

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://issues.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Dr. Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1664?page=comments#action_59708 ]
     
Dr. Patrick Martin commented on AXIS-1664:
------------------------------------------

Using the snapshot

http://cvs.apache.org/snapshots/ws-axis/ws-axis_20050224115203.tar.gz

I find there is no problem with doAutoTypes, with or without Date field in JavaBeans.

1.2beta3 definitely had a problem for us, but this seems resolved.

I suggest we close this one; the UK Winter problem I will open as  a new case.

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://issues.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56632 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

Patrick,

is it not possible to reverse engineer the java namespace from the namespace on the wire?

thanks,
dims

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56633 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Well, yes it is, but given that AXIS (with AutoTypes) is doing an excellent job already apart from just the one case of a return type of a call that hasn't been used in the input parameters, it would be nice if that were closed off once and for all.

Currently I am kinda reverse engineering the namespace from the wire in the test cases attached, as I'm using the AXIS NameSpaces and Types classes to register the return deserialiser with the right, as "I happen to know" these are used in the DoAutoTypes code on the server.
Does this count?

I appreciate this scenario is not the most widely used, but it would be nice to get it to a slightly more complete state and publicise the feature a bit better.

I'd be very happy to submit some test cases and examples for documentation if it were fixed (hint, hint)

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56702 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

Please get latest CVS. It has all changes needed in TypeMappingImpl.java and Namespaces.java. Please review the testcase (test/functional/TestAutoTypes.java) as well. 

I'd REALLY appreciate quick feedback AND update to the docs. For example if you look at auto-deploy.wsdd, you can see that you can as the server to switch auto types on in the wsdd global param itself. If you look at the TestAutoTypes.java, you can see that on the client-side you can use AxisProperties.setProperty to do the same (or add it in client-config.wsdd). Yes, also information such as the fact that we are assuming the namespace is constructed in such a way that we can extract the full class name (with package name) from it (see Namespaces.java). 

Note that there are 2 sets of html files (both mirror each other and both need to be updated)
- ws-axis\site\src\documentation\content\xdocs
- ws-axis\java\docs

Thanks,
dims

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Dr. Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1664?page=comments#action_59698 ]
     
Dr. Patrick Martin commented on AXIS-1664:
------------------------------------------

got hold of the latest tarball 

http://cvs.apache.org/snapshots/ws-axis/ws-axis_20050223174226.tar.gz

and ran the all task in build.xml.

The outcome is

BUILD FAILED: C:\localinstall\AXIS\AXIS Head\java\build.xml:326: The following error occurred while executing this line:
C:\localinstall\AXIS\AXIS Head\java\buildTest.xml:109: Test test.encoding.PackageTests failed

Looking into the test now



> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://issues.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56703 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Excellent news.

I will try to get back ASAP, though it will probablt be after 9:00 GMT (15th).

Thanks,

Patrick

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56769 ]
     
Davanum Srinivas commented on AXIS-1664:
----------------------------------------

Patrick,

The test case assumes, that the service is deployed on the SimpleAxisServer that runs as part of the functional test. You can run all the functional tests simply by cd to the test/functional directory and run "ant compile test"

-- dims

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56261 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

More Oops!

Due to shoddy work, I didn't spot that walking the fields of the return class is not required either.

The updated code is (goes in WebServiceRTTIProxySimple::invoke in the attached test case project)


        Class retClass = method.getReturnType();
        // need to handle only base component type
        if (retClass.isArray())
             retClass = retClass.getComponentType();
        // AAACK incomplete test for standard types
        if ( (void.class != retClass) && (int.class != retClass) )
        {
            
            QName qnameRet = new QName(Namespaces.makeNamespace(retClass.getName()),
                    			       Types.getLocalNameFromFullName(retClass.getName()));
            if (!tm.isRegistered(method.getReturnType(), qnameRet))
            {
                tm.register(retClass, qnameRet, new BeanSerializerFactory(
                        retClass, qnameRet), new BeanDeserializerFactory(
                                retClass, qnameRet));
            }
        }


This seems works fine to fix up missing deserialisers for return types in the client.

Regards,
Patrick

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=history ]

Patrick Martin updated AXIS-1664:
---------------------------------

    Attachment: reference.html
                reference.ihtml

Updated documentation with the Global Configuration section amended to reference the new doAutoTypes functionality

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=history ]

Patrick Martin updated AXIS-1664:
---------------------------------

    Attachment: AutoTypesTest.jws

Oops! Forgot the JWS

This goes in the axishead/autotypestest virtual directory.
The AutoTypesTest class is meant to be the source for the JWS, however either remember to delete the "implements IAutoTypesTest" or add the class file and keep it up to date.
I prefer the former, while I'm still hacking away.

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56644 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Really sorry: no can do IRC.

Yes, use the JWS: don't forget TypeMappingImpl needs hacking to set doAutoTypes=true.

The JUnit tests should work.

Posting updated version with less bugs and some explanation ASAP.

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56765 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Very First Impressions: excellent!

I've set up the test.functional.TestAutoTypes test cases and it runs fine.

I just want to double-check both this and see if the alternate styles of using Call.invoke don't have any issues.

Then I'll review the doc pages as requested.

More anon.

Regards, Patrick

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Dr. Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1664?page=comments#action_59707 ]
     
Dr. Patrick Martin commented on AXIS-1664:
------------------------------------------

Removing reference to a Date object does not change the failure.

It complains about not finding the deserialiser.

This doesn't seem related to the test failure in the project test cases 

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://issues.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Dr. Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1664?page=comments#action_59700 ]
     
Dr. Patrick Martin commented on AXIS-1664:
------------------------------------------

Failure in the test package is

- <testcase name="testTimeUKWinter" classname="test.encoding.TestDeser2001" time="0.094">
  <failure message="Failed to decode <result xsi:type="xsd:time">12:01:30.150-00:00</result> [time=12:01:30.150Z; tz=GMT+00:00; offset=-00:00] : expected:<12:01:30.150Z> but was:<13:01:30.150Z>" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: Failed to decode <result xsi:type="xsd:time">12:01:30.150-00:00</result> [time=12:01:30.150Z; tz=GMT+00:00; offset=-00:00] : expected:<12:01:30.150Z> but was:<13:01:30.150Z> at test.encoding.TestDeser.deserialize(TestDeser.java:198) at test.encoding.TestDeser2001.deserializeCalendar(TestDeser2001.java:196) at test.encoding.TestDeser2001.deserializeCalendar(TestDeser2001.java:176) at test.encoding.TestDeser2001.testTimeUKWinter(TestDeser2001.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</failure> 
  </testcase>


I think I know what the problem is: I'm in the UK, and it's Winter.

My test case uses a Date as a field of the JavaBean parameter, which explains why it fails for me.

I'll modify the JavaBean and post the outcome

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://issues.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java, reference.html, reference.ihtml
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=history ]

Patrick Martin updated AXIS-1664:
---------------------------------

    Attachment: AXIS Tests.zip

Here is a simple Eclipse project with some test cases.
IMPORTANT This project will not work until the following is set up:
[i] Build AXIS from latest CVS with doAutoTypes = true set in TypeMappingImpl.java (AAACK - I know, should be done using proper property route in the fullness of time...)
[ii] Create a TOMCAT webapp called axishead, based up the sample webapp in the AXIS distribution
[iii] place all the AXIS jars from java/build/lib in project lib directory
[iv] place same jars in the lib directory for the axishead wep application, replacing the originals
[v] open the Eclipse project: should build as the required jars are now in place
[v] place SimpleBean.class and NestBean.class from /bin/autotypestest in the classes/autotypestest directory of the axishead web application
[vi] fire up tcpmon on 2000, or alter WebServiceRTTIProxySimple to use 8080

The JUnit cases are in the AutoTypesProxyTest class.
Right-click in Eclipse and "run as JUnit test case"

Should see all green, and request/response in the tcpmon window
Now uncomment the marked lines in WebServiceRTTIProxySimple::invoke to see some, but not all tests fail, apparently due to client engine not performing reciprocal tasks to what server engine appears to be doing.

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Mark Chai (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=history ]

Mark Chai updated AXIS-1664:
----------------------------

    Attachment: TypeMappingImpl.java

Attached patched TypeMappingImpl.java

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties

Posted by "Patrick Martin (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56700 ]
     
Patrick Martin commented on AXIS-1664:
--------------------------------------

Excellent: I'll try to reply to any comments here ASAP

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate whether or not to turn doAutoTypes on or off by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira