I will just keep replying to myself...
looks like it could be related to this bug
http://issues.apache.org/jira/browse/AXIS-1976

On 6/14/05, mike jones < [EMAIL PROTECTED]> wrote:
Hello
Incase anyone is interested this wasnt working because the java2wsdl tool put the enumeration in the namespace soapenc (xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"), once I changed them to xsd (xmlns:xsd="http://www.w3.org/2001/XMLSchema") then it all worked super dooper.



On 6/14/05, mike jones <[EMAIL PROTECTED] > wrote:
All,
I was wondering if anyone could help.
I am deploying a service from an interface that I have created, but my enumerations are just converted to strings in the generated classes even though they are declared as enumerations in the wsdl.

i.e .

genterated wsdl
<simpleType name="Benefit">
    <restriction base="soapenc:string">
     <enumeration value="Defined Contribution"/>
     <enumeration value="Defined Benefit"/>
  </restriction>
</simpleType>

 <complexType name="ArrayOf_tns5_Benefit">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="tns5:Benefit[]"/>
     </restriction>
    </complexContent>
   </complexType>

<complexType name="SPensionSchemeDetails">
    <complexContent>
     <extension base="tns2:SVersioned">
      <sequence>
      ...
       <element name="benefitsProvided" nillable="true" type="impl:ArrayOf_tns5_Benefit"/>     
      ...

But the generated classes there is just a string array..
public class SPensionSchemeDetails  extends com.anite.borris.webservice.service.impl.SVersioned  implements java.io.Serializable {
   ....
    private java.lang.String[] benefitsProvided;
    ...
}

and  the deploy.wsddd maps them as strings
<typeMapping
        xmlns:ns="http://enumerations.customtypes.schemereturn.om.borris.anite.com "
        qname="ns:Benefit"
        type="java:java.lang.String"
        serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>

I am missing something? Why doesnt it use an enumeration type mapping or create a enumeration[] instead of a string[]?

cheers
Mike
--
"If we can hit that bull's-eye, the rest of the dominos will fall like a house of cards - Checkmate."



--
"If we can hit that bull's-eye, the rest of the dominos will fall like a house of cards - Checkmate."



--
"If we can hit that bull's-eye, the rest of the dominos will fall like a house of cards - Checkmate."

Reply via email to