Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-1979

Problem with .NET string[] deserializing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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>
      -------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            dnikitin Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: