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 "Tim K (JIRA)" <ax...@ws.apache.org> on 2005/04/20 21:58:24 UTC
[jira] Created: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
-----------------------------------------------------------------------
Key: AXIS-1942
URL: http://issues.apache.org/jira/browse/AXIS-1942
Project: Axis
Type: Bug
Versions: 1.2RC3
Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
Reporter: Tim K
Priority: Blocker
NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
rpc/enc mode, I have a type:
<complexType name="NamedValue">
<sequence>
<element name="name" nillable="true" type="soapenc:string" />
<element name="value" nillable="true" type="xsd:anyType" />
</sequence>
</complexType>
When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
<name xsi:type="soapenc:string">nv1</name>
<value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
<item href="#id11"/>
<item href="#id12"/>
<item href="#id13"/>
<item href="#id14"/>
<item href="#id15"/>
</value>
The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
<name xsi:type="soapenc:string">nv1</name>
<value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
<item href="#id6"/>
<item href="#id7"/>
<item href="#id8"/>
<item href="#id9"/>
<item href="#id10"/>
</value>
The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
Note that only the *server* side is broken.
NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Tim K (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=comments#action_63873 ]
Tim K commented on AXIS-1942:
-----------------------------
Sorry, on the client I missed the [0] indexing, it should be:
// THIS CAST WILL FAIL!
long[] tmpClient = (long[]) value[0].getValue();
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
> Attachments: RemoteLoginManager.wsdl
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=comments#action_63871 ]
Davanum Srinivas commented on AXIS-1942:
----------------------------------------
Tim,
please send code snippets that you want me to use both on server and client.
thanks,
dims
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
> Attachments: RemoteLoginManager.wsdl
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=comments#action_63869 ]
Davanum Srinivas commented on AXIS-1942:
----------------------------------------
tim,
i just generated the server and test client using the wsdl (w2j -s -t) using latest CVS. i edited the Impl file as follows:
public class RemoteLoginManagerSoapBindingImpl implements com.oracle.xmlns.ifs.files.ws.RemoteLoginManager{
public com.oracle.xmlns.ifs.files.ws.NamedValue[] login(java.lang.String username, java.lang.String password, com.oracle.xmlns.ifs.files.ws.NamedValue[] options, com.oracle.xmlns.ifs.files.ws.AttributeRequest[] userAttributes) throws java.rmi.RemoteException, com.oracle.xmlns.ifs.files.ws.FdkException {
return options;
}
public void logout() throws java.rmi.RemoteException, com.oracle.xmlns.ifs.files.ws.FdkException {
}
}
and edited the test client as follows:
com.oracle.xmlns.ifs.files.ws.NamedValue[] value = new NamedValue[1];
value[0] = new com.oracle.xmlns.ifs.files.ws.NamedValue();
value[0].setName("nv1");
value[0].setValue(new long[]{1,2,3,5,7,11});
value = binding.login(new java.lang.String("user"), new java.lang.String("pass"), value, new com.oracle.xmlns.ifs.files.ws.AttributeRequest[0]);
everything works fine....
-- dims
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
> Attachments: RemoteLoginManager.wsdl
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Tim K (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=all ]
Tim K updated AXIS-1942:
------------------------
Attachment: RemoteLoginManager.wsdl
Attached WSDL file. The long[] is passed as part of the "value" attribute of the NamedValue complex type.
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
> Attachments: RemoteLoginManager.wsdl
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Tim K (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=comments#action_63872 ]
Tim K commented on AXIS-1942:
-----------------------------
On the server side do this in the login() method:
public com.oracle.xmlns.ifs.files.ws.NamedValue[] login(java.lang.String username, java.lang.String password, com.oracle.xmlns.ifs.files.ws.NamedValue[] options, com.oracle.xmlns.ifs.files.ws.AttributeRequest[] userAttributes) throws java.rmi.RemoteException, com.oracle.xmlns.ifs.files.ws.FdkException {
// cast to long[], this should work
long[] tmpServer = (long[]) options[0].getValue();
return options;
}
On the client side, add the following to the end of your code above:
...
value = binding.login(new java.lang.String("user"), new java.lang.String("pass"), value, new com.oracle.xmlns.ifs.files.ws.AttributeRequest[0]);
// THIS CAST WILL FAIL!
long[] tmpClient = (long[]) value.getValue();
Thanks.
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
> Attachments: RemoteLoginManager.wsdl
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Tim K (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=comments#action_64017 ]
Tim K commented on AXIS-1942:
-----------------------------
I'm happy to report the fix works. Thanks for your help.
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
> Attachments: RemoteLoginManager.wsdl
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=comments#action_63832 ]
Davanum Srinivas commented on AXIS-1942:
----------------------------------------
can i bug you to upload the wsdl? :)
-- dims
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Tim K (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=comments#action_63870 ]
Tim K commented on AXIS-1942:
-----------------------------
Well, the messages make it back and forth, but the long[] when sent back from the server to the client ends up as an Object[].
Try casting the value of the NamedValue to (long[]) both on the server and on the client. You will see that on the server it works, but on the client it doesn't because it's an Object[] with Long objects inside instead of long[].
Also, look at the messages on the wire, at the encodings and you will see the difference: xsd:long[] vs. xsd:anyType[]
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
> Attachments: RemoteLoginManager.wsdl
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (AXIS-1942) 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1942?page=all ]
Davanum Srinivas resolved AXIS-1942:
------------------------------------
Resolution: Fixed
Thanks for being persistent and helping with fixing this bug :) i checked in a fix into CVS. please try that and let me know.
-- dims
> 1.2RC3: rpc/enc mode, encoding long[] as xsd:anyType broken from 1.2RC2
> -----------------------------------------------------------------------
>
> Key: AXIS-1942
> URL: http://issues.apache.org/jira/browse/AXIS-1942
> Project: Axis
> Type: Bug
> Versions: 1.2RC3
> Environment: Tried 1.2RC3 official release, and also 1.2RC3 current nightly build
> Reporter: Tim K
> Priority: Blocker
> Attachments: RemoteLoginManager.wsdl
>
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> rpc/enc mode, I have a type:
> <complexType name="NamedValue">
> <sequence>
> <element name="name" nillable="true" type="soapenc:string" />
> <element name="value" nillable="true" type="xsd:anyType" />
> </sequence>
> </complexType>
> When for value the *client* side of Axis sends a long[] it gets *properly* encoded as xsd:long[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:long[5]" xsi:type="soapenc:Array">
> <item href="#id11"/>
> <item href="#id12"/>
> <item href="#id13"/>
> <item href="#id14"/>
> <item href="#id15"/>
> </value>
> The cast of the value to long[] works perfectly on the server side, the server correctly creates a long[].
> BUT, when the *server* side of Axis sends a long[] it gets *incorrectly* encoded as xsd:anyType[], as in:
> <name xsi:type="soapenc:string">nv1</name>
> <value soapenc:arrayType="xsd:anyType[5]" xsi:type="soapenc:Array">
> <item href="#id6"/>
> <item href="#id7"/>
> <item href="#id8"/>
> <item href="#id9"/>
> <item href="#id10"/>
> </value>
> The client then gets an Object[] back from the server and the cast to (long[]) obviously fails.
> Note that only the *server* side is broken.
> NOTE: This is a regression from 1.2RC2 Things used to work correctly in RC2 but they are broken in RC3 both the official release and the current nightly builds.
> This is a blocker bug as it is a regression and the behavior is not correct and different between the client and server code of Axis.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira