Hi Deepal, Here my wsdl. I didn't try to codegen in Axis2 for that wsdl.
<wsdl:definitions xmlns:axis2="ch.softcomponent.mes" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="http://mesfilesprovider.mes.softcomponent.ch/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="ch.softcomponent.mes"> <wsdl:documentation>MESFilesProvider</wsdl:documentation> <wsdl:types> <xs:schema xmlns:ns="http://mesfilesprovider.mes.softcomponent.ch/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://mesfilesprovider.mes.softcomponent.ch/xsd"> <xs:element name="getFiles"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="eanCode" nillable="true" type="xs:string" /> <xs:element name="customerInfos" nillable="true" type="ns:CustomerInformations" /> <xs:element name="type" nillable="true" type="ns:MediaType" /></xs:sequence></xs:complexType></xs:element> <xs:element name="CustomerInformations" type="ns:CustomerInformations" /> <xs:complexType name="CustomerInformations"> <xs:sequence> <xs:element name="customerEmail" nillable="true" type="xs:string" /> <xs:element name="customerFirstName" nillable="true" type="xs:string" /> <xs:element name="customerIP" nillable="true" type="xs:string" /> <xs:element name="customerLastName" nillable="true" type="xs:string" /> <xs:element name="date" nillable="true" type="xs:dateTime" /> <xs:element name="shopID" nillable="true" type="xs:string" /> <xs:element name="transactionID" nillable="true" type="xs:string" /></xs:sequence></xs:complexType> <xs:element name="MediaType" type="ns:MediaType" /> <xs:complexType name="MediaType"> <xs:complexContent> <xs:extension base="xs:Enum"> <xs:sequence> <xs:element name="AUDIO" nillable="true" type="ns:MediaType" /> <xs:element name="VIDEO" nillable="true" type="ns:MediaType" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType> <xs:element name="getFilesResponse"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="return" nillable="true" type="ns:FilesStatus" /></xs:sequence></xs:complexType></xs:element> <xs:element name="FilesStatus" type="ns:FilesStatus" /> <xs:complexType name="FilesStatus"> <xs:sequence> <xs:element name="name" nillable="true" type="xs:string" /> <xs:element name="status" nillable="true" type="ns:FileStatusType" /></xs:sequence></xs:complexType> <xs:element name="FileStatusType" type="ns:FileStatusType" /> <xs:complexType name="FileStatusType"> <xs:complexContent> <xs:extension base="xs:Enum"> <xs:sequence> <xs:element name="NOK" nillable="true" type="ns:FileStatusType" /> <xs:element name="OK" nillable="true" type="ns:FileStatusType" /></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:sch ema> </wsdl:types> <wsdl:message name="getFilesMessage"> <wsdl:part name="part1" element="ns0:getFiles" /> </wsdl:message> <wsdl:message name="getFilesResponse"> <wsdl:part name="part1" element="ns0:getFilesResponse" /> </wsdl:message> <wsdl:portType name="MESFilesProviderPortType"> <wsdl:operation name="getFiles"> <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:getFilesMessage" wsaw:Action="urn:getFiles" /> <wsdl:output message="axis2:getFilesResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="MESFilesProviderSOAP11Binding" type="axis2:MESFilesProviderPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="getFiles"> <soap:operation soapAction="urn:getFiles" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="MESFilesProviderSOAP12Binding" type="axis2:MESFilesProviderPortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="getFiles"> <soap12:operation soapAction="urn:getFiles" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="MESFilesProviderHttpBinding" type="axis2:MESFilesProviderPortType"> <http:binding verb="POST" /> <wsdl:operation name="getFiles"> <http:operation location="getFiles" /> <wsdl:input> <mime:content type="text/xml" /> </wsdl:input> <wsdl:output> <mime:content type="text/xml" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="MESFilesProvider"> <wsdl:port name="MESFilesProviderSOAP11port_http" binding="axis2:MESFilesProviderSOAP11Binding"> <soap:address location="http://192.168.111.1:8080/axis2/services/MESFilesProvider" /> </wsdl:port> <wsdl:port name="MESFilesProviderSOAP12port_http" binding="axis2:MESFilesProviderSOAP12Binding"> <soap12:address location="http://192.168.111.1:8080/axis2/services/MESFilesProvider" /> </wsdl:port> <wsdl:port name="MESFilesProviderHttpport" binding="axis2:MESFilesProviderHttpBinding"> <http:address location="http://192.168.111.1:8080/axis2/services/MESFilesProvider" /> </wsdl:port> </wsdl:service> </wsdl:definitions> -----Original Message----- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: mercredi, 9. mai 2007 08:18 To: axis-user@ws.apache.org Subject: Re: Enum type in Axis2 Hi Nicolas , Do you have the wsdl ? did you try to codegen in Axis2 for that wsdl ? Thanks Deepal >Hi, > >I want to use an enumerate type in my web service. I uses this web >serice from a .NET client. My problem is : when Visual Studio generate >the client stub, the enumerate type is converted in the following class : > >[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mesfilespr >ovide >r.mes.softcomponent.ch/xsd")] >public class MediaType { > > /// <remarks/> > [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] > public MediaType AUDIO; > > /// <remarks/> > [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] > public MediaType VIDEO; > >} > >Have you an idea? That would help me great!!! > >Nicolas > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Thanks, Deepal ................................................................ "The highest tower is built one brick at a time" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]