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 "Dmitry (JIRA)" <ax...@ws.apache.org> on 2005/05/06 14:49:07 UTC
[jira] Created: (AXIS-1979) Problem with .NET string[] deserializing
Problem with .NET string[] deserializing
----------------------------------------
Key: AXIS-1979
URL: http://issues.apache.org/jira/browse/AXIS-1979
Project: Axis
Type: Bug
Reporter: Dmitry
When .NET-client deserialize bean with String[] property, client throws exception:
------------
System.InvalidOperationException: Thera is an error in XML document(1, 1075). --->
System.InvalidOperationException: The specified type was not recognized: name='string', namespace='http://schemas.xmlsoap.org/soap/encoding/', at <stringListId xmlns=''>.
------------
Exception occures with axis1.2RC2 on server. With axis1.1 it works fine.
Trasfered bean:
-------------
public class UdfValueBean {
private String[] stringListId;
public String[] getStringListId() {
return stringListId;
}
public void setStringListId(String[] stringListId) {
this.stringListId = stringListId;
}
}
-------------
WSDD file:
-------------
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns="http://xml.apache.org/axis/wsdd/" xmlns:mycompany="http://www.soapinterop.org/Mycompany">
<globalConfiguration>
<parameter name="adminPassword" value="admin"/>
<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
<parameter name="sendXsiTypes" value="true"/>
<parameter name="sendMultiRefs" value="true"/>
<parameter name="sendXMLDeclaration" value="true"/>
<parameter name="axis.sendMinimizedElements" value="true"/>
<parameter name="axis.development.system" value="true"/>
<requestFlow>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="session"/>
</handler>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="request"/>
<parameter name="extension" value=".jwr"/>
</handler>
</requestFlow>
</globalConfiguration>
<handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
<handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
<service name="Udf" provider="java:RPC">
<parameter name="className" value="com.mycompany.soap.service.Udf"/>
<parameter name="allowedMethods" value="*"/>
</service>
<typeMapping
xmlns:ns="http://bean.soap.mycompany.com/"
qname="ns:UdfValueBean"
type="java:com.mycompany.soap.bean.UdfValueBean"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>
<typeMapping
xmlns:ns="http://service.soap.mycompany.com/"
qname="ns:ArrayOfUdfValueBean"
type="java:com.mycompany.soap.bean.UdfValueBean[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>
<transport name="http">
<requestFlow>
<handler type="URLMapper"/>
<handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
</transport>
<transport name="local">
<responseFlow>
<handler type="LocalResponder"/>
</responseFlow>
</transport>
</deployment>
-------------
--
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-1979) Problem with .NET string[] deserializing
Posted by "Tim K (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1979?page=comments#action_64632 ]
Tim K commented on AXIS-1979:
-----------------------------
See this bug, it may help you:
http://issues.apache.org/jira/browse/AXIS-1954
> Problem with .NET string[] deserializing
> ----------------------------------------
>
> Key: AXIS-1979
> URL: http://issues.apache.org/jira/browse/AXIS-1979
> Project: Axis
> Type: Bug
> Reporter: Dmitry
>
> When .NET-client deserialize bean with String[] property, client throws exception:
> ------------
> System.InvalidOperationException: Thera is an error in XML document(1, 1075). --->
> System.InvalidOperationException: The specified type was not recognized: name='string', namespace='http://schemas.xmlsoap.org/soap/encoding/', at <stringListId xmlns=''>.
> ------------
> Exception occures with axis1.2RC2 on server. With axis1.1 it works fine.
> Trasfered bean:
> -------------
> public class UdfValueBean {
> private String[] stringListId;
> public String[] getStringListId() {
> return stringListId;
> }
> public void setStringListId(String[] stringListId) {
> this.stringListId = stringListId;
> }
> }
> -------------
> WSDD file:
> -------------
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns="http://xml.apache.org/axis/wsdd/" xmlns:mycompany="http://www.soapinterop.org/Mycompany">
> <globalConfiguration>
> <parameter name="adminPassword" value="admin"/>
> <parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
> <parameter name="sendXsiTypes" value="true"/>
> <parameter name="sendMultiRefs" value="true"/>
> <parameter name="sendXMLDeclaration" value="true"/>
> <parameter name="axis.sendMinimizedElements" value="true"/>
> <parameter name="axis.development.system" value="true"/>
> <requestFlow>
> <handler type="java:org.apache.axis.handlers.JWSHandler">
> <parameter name="scope" value="session"/>
> </handler>
> <handler type="java:org.apache.axis.handlers.JWSHandler">
> <parameter name="scope" value="request"/>
> <parameter name="extension" value=".jwr"/>
> </handler>
> </requestFlow>
> </globalConfiguration>
> <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
> <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
> <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
> <service name="Udf" provider="java:RPC">
> <parameter name="className" value="com.mycompany.soap.service.Udf"/>
> <parameter name="allowedMethods" value="*"/>
> </service>
> <typeMapping
> xmlns:ns="http://bean.soap.mycompany.com/"
> qname="ns:UdfValueBean"
> type="java:com.mycompany.soap.bean.UdfValueBean"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> />
> <typeMapping
> xmlns:ns="http://service.soap.mycompany.com/"
> qname="ns:ArrayOfUdfValueBean"
> type="java:com.mycompany.soap.bean.UdfValueBean[]"
> serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> />
> <transport name="http">
> <requestFlow>
> <handler type="URLMapper"/>
> <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
> </requestFlow>
> </transport>
> <transport name="local">
> <responseFlow>
> <handler type="LocalResponder"/>
> </responseFlow>
> </transport>
> </deployment>
> -------------
--
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-1979) Problem with .NET string[] deserializing
Posted by "Dmitry (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1979?page=comments#action_64757 ]
Dmitry commented on AXIS-1979:
------------------------------
many thanks. It works.
> Problem with .NET string[] deserializing
> ----------------------------------------
>
> Key: AXIS-1979
> URL: http://issues.apache.org/jira/browse/AXIS-1979
> Project: Axis
> Type: Bug
> Reporter: Dmitry
>
> When .NET-client deserialize bean with String[] property, client throws exception:
> ------------
> System.InvalidOperationException: Thera is an error in XML document(1, 1075). --->
> System.InvalidOperationException: The specified type was not recognized: name='string', namespace='http://schemas.xmlsoap.org/soap/encoding/', at <stringListId xmlns=''>.
> ------------
> Exception occures with axis1.2RC2 on server. With axis1.1 it works fine.
> Trasfered bean:
> -------------
> public class UdfValueBean {
> private String[] stringListId;
> public String[] getStringListId() {
> return stringListId;
> }
> public void setStringListId(String[] stringListId) {
> this.stringListId = stringListId;
> }
> }
> -------------
> WSDD file:
> -------------
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns="http://xml.apache.org/axis/wsdd/" xmlns:mycompany="http://www.soapinterop.org/Mycompany">
> <globalConfiguration>
> <parameter name="adminPassword" value="admin"/>
> <parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
> <parameter name="sendXsiTypes" value="true"/>
> <parameter name="sendMultiRefs" value="true"/>
> <parameter name="sendXMLDeclaration" value="true"/>
> <parameter name="axis.sendMinimizedElements" value="true"/>
> <parameter name="axis.development.system" value="true"/>
> <requestFlow>
> <handler type="java:org.apache.axis.handlers.JWSHandler">
> <parameter name="scope" value="session"/>
> </handler>
> <handler type="java:org.apache.axis.handlers.JWSHandler">
> <parameter name="scope" value="request"/>
> <parameter name="extension" value=".jwr"/>
> </handler>
> </requestFlow>
> </globalConfiguration>
> <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
> <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
> <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
> <service name="Udf" provider="java:RPC">
> <parameter name="className" value="com.mycompany.soap.service.Udf"/>
> <parameter name="allowedMethods" value="*"/>
> </service>
> <typeMapping
> xmlns:ns="http://bean.soap.mycompany.com/"
> qname="ns:UdfValueBean"
> type="java:com.mycompany.soap.bean.UdfValueBean"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> />
> <typeMapping
> xmlns:ns="http://service.soap.mycompany.com/"
> qname="ns:ArrayOfUdfValueBean"
> type="java:com.mycompany.soap.bean.UdfValueBean[]"
> serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> />
> <transport name="http">
> <requestFlow>
> <handler type="URLMapper"/>
> <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
> </requestFlow>
> </transport>
> <transport name="local">
> <responseFlow>
> <handler type="LocalResponder"/>
> </responseFlow>
> </transport>
> </deployment>
> -------------
--
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