axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WJ Krpelan <krpelan...@yahoo.com>
Subject Re: Bug? SimpleType enumeration output is incorrect.
Date Fri, 17 Aug 2007 10:44:54 GMT
Right. I'd never bet on living in a perfect world,
however :-)
Wolfgang

--- Anne Thomas Manes <atmanes@gmail.com> wrote:

> That's an inappropriate restriction. XML has no such
> "reserved words"
> constraints. If Axis2 has a problem dealing with a
> valid local name,
> it's a bug.
> 
> Anne
> 
> On 8/16/07, WJ Krpelan <krpelan_wj@yahoo.com> wrote:
> > Hi
> > Methinks you shouldn't use "type" as element name,
> and
> > neither "element" nor "attribute" etc. as these
> are
> > kind of "reserved words". Use "type1" or something
> and
> > it should work imho.
> > Cheers
> > Wolfgang Krpelan
> >
> >
> > --- Amila Suriarachchi
> <amilasuriarachchi@gmail.com>
> > wrote:
> >
> > > Can you please test this for Axis2 1.3 release.
> > >
> > > And run this sample code which gives me the
> correct
> > > out put
> > >
> > > public class TestClass extends TestCase {
> > >
> > >     public void testGetResponse(){
> > >         GetResponse getResponse = new
> GetResponse();
> > >         getResponse.setOut("Test out");
> > >         getResponse.setType(Type_T.a);
> > >
> > >         try {
> > >             OMElement omElement =
> > > getResponse.getOMElement(
> > > GetResponse.MY_QNAME,
> > > OMAbstractFactory.getOMFactory());
> > >             System.out.println("OM Element ==> "
> +
> > > omElement.toStringWithConsume());
> > >         } catch (ADBException e) {
> > >             e.printStackTrace();  //To change
> body
> > > of catch statement use
> > > File | Settings | File Templates.
> > >         } catch (XMLStreamException e) {
> > >             e.printStackTrace();  //To change
> body
> > > of catch statement use
> > > File | Settings | File Templates.
> > >         }
> > >     }
> > > }
> > >
> > > <ns1:GetResponse
> > > xmlns:ns1="http://localhost:8080/wsdlfile/">
> > >     <ns1:out>Test out</ns1:out>
> > >     <ns1:type>a</ns1:type>
> > > </ns1:GetResponse>
> > >
> > > Amila.
> > >
> > >
> > > On 8/10/07, Kevin TierOne
> <kevin.tierone@gmail.com>
> > > wrote:
> > > >
> > > > 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
> > > <amilasuriarachchi@gmail.com> wrote:
> > > > > 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 "
> > > > > > >
> > > > >
> 
=== message truncated ===



      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message