axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: Bug? SimpleType enumeration output is incorrect.
Date Fri, 10 Aug 2007 04:10:51 GMT
Can you please describe your qestion bit?

in other words How can I regenerate your issue?

Amila.

On 8/9/07, Kevin TierOne <kevin.tierone@gmail.com> wrote:
>
> Sorry, I forgot to mention that I'm using Axis2 1.2.
>
> Kevin
>
> On 8/9/07, Kevin TierOne <kevin.tierone@gmail.com> wrote:
> > The XML tags in the response messsage of an enumerated element uses
> > the simpleType name.  It should use the element name.  For example,
> > using the wsdl below I get the following request and response.
> >
> > Look at the output "<ns4:Type_T>c</ns4:Type_T>", this element should
> > be <ns4:type>c</ns4:type>
> >
> > REQUEST:
> > <soapenv:Envelope
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:q0="http://localhost:8080/wsdlfile/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Body>
> > <q0:Get>
> > <q0:in>www</q0:in>
> > <q0:type>c</q0:type>
> > </q0:Get>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> > RESPONSE:
> > <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/
> "?>
> > <soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/">
> > <soapenv:Body>
> > <ns4:GetResponse xmlns:ns4="http://localhost:8080/wsdlfile/">
> > <out xmlns="http://localhost:8080/wsdlfile/">www</out>
> > <ns4:Type_T>c</ns4:Type_T>
> > </ns4:GetResponse>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> >     xmlns:tns="http://localhost:8080/wsdlfile/"
> >     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >     xmlns:wsaw="http://www.w3.org/2006/02/addressing/wsdl"
> name="wsdlfile"
> >     targetNamespace="http://localhost:8080/wsdlfile/">
> >     <wsdl:types>
> >         <xsd:schema attributeFormDefault="qualified"
> > elementFormDefault="qualified"
> > targetNamespace="http://localhost:8080/wsdlfile/">
> >             <xsd:element name="Get">
> >                 <xsd:complexType>
> >                     <xsd:sequence>
> >                         <xsd:element name="in" type="xsd:string" />
> >                         <xsd:element name="type"
> > type="tns:Type_T"></xsd:element>
> >                     </xsd:sequence>
> >                 </xsd:complexType>
> >             </xsd:element>
> >             <xsd:element name="GetResponse">
> >                 <xsd:complexType>
> >                     <xsd:sequence>
> >                         <xsd:element name="out" type="xsd:string" />
> >                         <xsd:element name="type"
> >                             type="tns:Type_T">
> >                         </xsd:element>
> >                     </xsd:sequence>
> >                 </xsd:complexType>
> >             </xsd:element>
> >
> >             <xsd:simpleType name="Type_T">
> >                 <xsd:restriction base="xsd:string">
> >                     <xsd:enumeration value="a"></xsd:enumeration>
> >                     <xsd:enumeration value="b"></xsd:enumeration>
> >                     <xsd:enumeration value="c"></xsd:enumeration>
> >                     <xsd:enumeration value="d"></xsd:enumeration>
> >                 </xsd:restriction>
> >             </xsd:simpleType>
> >         </xsd:schema>
> >     </wsdl:types>
> >     <wsdl:message name="GetRequest">
> >         <wsdl:part element="tns:Get" name="parameters" />
> >     </wsdl:message>
> >     <wsdl:message name="GetResponse">
> >         <wsdl:part element="tns:GetResponse" name="parameters" />
> >     </wsdl:message>
> >     <wsdl:portType name="wsdlfile">
> >         <wsdl:operation name="Get" wsaw:Action="tns:GetLink">
> >             <wsdl:input message="tns:GetRequest" />
> >             <wsdl:output message="tns:GetResponse" />
> >         </wsdl:operation>
> >     </wsdl:portType>
> >     <wsdl:binding name="wsdlfileSOAP" type="tns:wsdlfile">
> >         <soap:binding style="document"
> >             transport="http://schemas.xmlsoap.org/soap/http" />
> >         <wsdl:operation name="Get">
> >             <soap:operation
> >                 soapAction="http://localhost:8080/wsdlfile/GetLink" />
> >             <wsdl:input>
> >                 <soap:body use="literal" />
> >             </wsdl:input>
> >             <wsdl:output>
> >                 <soap:body use="literal" />
> >             </wsdl:output>
> >         </wsdl:operation>
> >     </wsdl:binding>
> >     <wsdl:service name="wsdlfile">
> >         <wsdl:port binding="tns:wsdlfileSOAP" name="wsdlfileSOAP">
> >             <soap:address location="http://localhost:8080/wsdlfile" />
> >         </wsdl:port>
> >     </wsdl:service>
> > </wsdl:definitions>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message