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 bu...@apache.org on 2002/10/25 20:31:26 UTC

DO NOT REPLY [Bug 13979] New: - WSDL produced for arrays in wrapped doc/lit service has SOAP encoding

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13979>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13979

WSDL produced for arrays in wrapped doc/lit service has SOAP encoding

           Summary: WSDL produced for arrays in wrapped doc/lit service has
                    SOAP encoding
           Product: Axis
           Version: 1.0
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: cyongtan@hotmail.com


Created a wrapped document/literal service with Axis 1.0 
(also tried with nightly build of 10-19-2002). Service has a method:
 
  String[] echoStringArray(String[] strArray) 

The WSDL produced for the service is invalid because it 
uses SOAP encoding for the string array type: 

<complexType name="ArrayOf_xsd_string"> 
  <complexContent> 
    <restriction base="soapenc:Array"> 
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/> 
    </restriction> 
  </complexContent> 
</complexType> 

.NET's wsdl.exe chokes on it.

=========================================================================
WSDD for service
=========================================================================

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 <service name="TestWrappedDocLiteral" provider="java:RPC" style="wrapped">
  <parameter name="className" value="myAxis.style.TestWrappedDocLiteral"/>
  <parameter name="allowedMethods" value="*"/>
  <typeMapping 
xmlns:ns="http://localhost:8080/axis/services/TestWrappedDocLiteral" 
  				qname="ns:Book" 
				type="java:myAxis.style.Book"
  serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" 
  deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"  />   
 </service>
</deployment>

=======================================================================
Test Service
======================================================================= 

package myAxis.style;

public class TestWrappedDocLiteral
{
	
    public String echoString(String arg)
    {
        return arg;
    }
	
    public String[] echoStringArray(String[] arg)
    {
        return arg;
    }
      
}