1 - If I run the wsdl through the code generator, I get the file
WsdlfileSkeleton.java.
2 - I implement this method:
public localhost.wsdlfile.GetResponse Get(localhost.wsdlfile.Get get0)
{
localhost.wsdlfile.GetResponse resp=new localhost.wsdlfile.GetResponse();
resp.setOut(get0.getIn());
resp.setType(get0.getType());
return resp;
}
3 - After deploying the webservice, I send the request as shown in the
original post.
4 - In the TCP monitor, I see the response shown the original post. I
expect that the response should echo the same values and structure as
in the request. However, in the response, the Element <ns4:Type_T> is
incorrect. The name of the element should be <type>.
Let me know if you need any other info.
Kevin
On 8/10/07, Amila Suriarachchi <[EMAIL PROTECTED]> wrote:
> Can you please describe your qestion bit?
>
> in other words How can I regenerate your issue?
>
> Amila.
>
>
> On 8/9/07, Kevin TierOne < [EMAIL PROTECTED]> wrote:
> >
> > Sorry, I forgot to mention that I'm using Axis2 1.2.
> >
> > Kevin
> >
> > On 8/9/07, Kevin TierOne <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]