You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Hansen, Richard" <ri...@thomson.com> on 2003/07/17 17:23:15 UTC
RE: RE: Possible bug in Axis while creation of stub classes from
WSDL2Java for Document style Web Service
Maybe I am missing something? But the deployment descriptors for the bug
example and and your example are different. Wouldn't this make a
difference. I have experienced the exact same "bug" using document/literal
message style using axis 1.1 from june 13th.
Rick Hansen
<service name="documentstyle" style="document">
<service name="documentService" provider="java:RPC" style="wrapped"
use="literal">
> -----Original Message-----
> From: Balaji D L [mailto:balajidl@yahoo.com]
> Sent: Thursday, July 17, 2003 10:11 AM
> To: axis-user@ws.apache.org
> Subject: RE: RE: Possible bug in Axis while creation of stub classes
> from WSDL2Java for Document style Web Service
>
>
> Please see the reply for the same!.
>
> --- "Agarwal, Naresh" <na...@informatica.com>
> wrote: > Posted a bug for the same, #21687
> >
> > regards,
> > Naresh Agarwal
> >
> > -----Original Message-----
> > From: Davanum Srinivas [mailto:dims@yahoo.com]
> > Sent: Thursday, July 17, 2003 7:03 PM
> > To: axis-user@ws.apache.org
> > Subject: Fwd: RE: Possible bug in Axis while
> > creation of stub classes
> > from WSDL2Java for Document style Web Service
> >
> >
> >
> > --- "Agarwal, Naresh" <na...@informatica.com>
> > wrote:
> > > Subject: RE: Possible bug in Axis while creation
> > of stub classes from WSDL2Java for Document
> > > style Web Service
> > > Date: Thu, 17 Jul 2003 05:47:28 -0700
> > > From: "Agarwal, Naresh" <na...@informatica.com>
> > > To: <ba...@yahoo.com>,
> > > <di...@yahoo.com>
> > >
> > > Hi Balaji/Dims,
> > >
> > > Previously I have been using Axis-rc1.
> > > I've tried the same program with Axis-1.1.
> > >
> > > Now the WSDL generated by AXIS is correct and I'm
> > able to generate stub classes.
> > >
> > > I'm getting the correct Soap response when I try
> > to access the method using
> > > ?method=methodname on a URL.
> > >
> > > However, I'm still getting null values of various
> > fields of the bean returned
> > > by function call.
> > >
> > > I'm attaching the following with the mail:
> > >
> > > 1)deploy.wsdd
> > > 2)document.java (the main class, which implements
> > the service)
> > > 3)detailsBean.java(the java bean class)
> > >
> > > The two java files are in a package
> > "myprograms.documentstyle"
> > >
> > > It would be great, if you could have a look at
> > them and help me out.
> > >
> > >
> > > The SOAP response, when i invoke the function
> > "getDetails" is as follows:
> > >
> > > -----------------
> > > HTTP/1.1 200 OK Content-Type: text/xml;
> > charset=utf-8 Date: Thu, 17 Jul 2003 12:36:33 GMT
> > > Server: Apache Coyote/1.0 Connection: close <?xml
> > version="1.0" encoding="UTF-8"?>
> > > <soapenv:Envelope
> >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > <soapenv:Body>
> > > <getDetailsReturn
> > xmlns="http://documentstyle.myprograms">
> > > <phone>555</phone>
> > > <zip>560025</zip>
> > > <state>Karnatka</state>
> > > <city>Bangalore</city>
> > > </getDetailsReturn>
> > > </soapenv:Body>
> > > </soapenv:Envelope>
> > > -----------------
> > >
> > > However, when I try to access the fields (phone,
> > zip etc..) from stub classes, i get null values
> > > in case of string and 0 in case of integer.
> > >
> > > thanks & regards,
> > > Naresh Agarwal
> > >
> > > -----Original Message-----
> > > From: Balaji D L [mailto:balajidl@yahoo.com]
> > > Sent: Thursday, July 17, 2003 4:26 PM
> > > To: axis-user@ws.apache.org; dims@yahoo.com
> > > Subject: Re: Possible bug in Axis while creation
> > of stub classes from
> > > WSDL2Java for Document style Web Service
> > >
> > >
> > > If I understood your problem correctly, then I
> > would
> > > say it is NOT a bug!..
> > > I have been able to deploy a service which
> > returns
> > > object(java bean)with document/literal style.
> > > The generated wsdl is also correct. The service
> > > works fine if i invoke a method with
> > > ?method=methodname on a URL. I'm also able
> > generate
> > > stub classes using wsdl2java, invoke and get
> > results
> > > back.
> > > Its also works fine with webservicestudio(.net).
> > > Please see whether you have deployed the service
> > > properly with proper de/serializer etc.,
> > >
> > > Regards
> > > Balaji
> > > --- Davanum Srinivas <di...@yahoo.com> wrote: >
> > > Naresh,
> > > >
> > > > Please log a bug report. I saw something similar
> > > > yesterday.
> > > >
> > > > Thanks,
> > > > dims
> > > >
> > > > --- "Agarwal, Naresh" <na...@informatica.com>
> > > > wrote:
> > > > > Hi
> > > > >
> > > > > I've developed a simple document style web
> > service
> > > > (contains a function, which return a bean)
> > > > > using AXIS . I've generated the WSDL file for
> > > > this.
> > > > > The WSDL file generated by AXIS has two bugs
> > > > (empty targetNameSpace and missing namespace
> > > > > prefix) due to which WSDL2Java fails to
> > generate
> > > > stub classes.
> > > > >
> > > > > I have manually edited the WSDL file and was
> > able
> > > > to generate the stub classes from WSDL2Java
> > > > > tool.
> > > > >
> > > > > I developed a client application from the stub
> > > > classes. When I run the client, I am receiving
> > > > > various fields of bean (return value of the
> > > > function) as null.
> > > > > However, I have checked from TCPMon and found
> > > > that data is not null in Soap response.
> > > > >
> > > > > Could any one help me out? Is there a bug in
> > stub
> > > > classes generated for document style Web
> > > > > Service
> > > > >
> > > > > thanks & regards,
> > > > > Naresh Agarwal
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > =====
> > > > Davanum Srinivas -
> > > > http://webservices.apache.org/~dims/
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > http://sbc.yahoo.com
> > >
> > >
> > > http://mobile.yahoo.com.au - Yahoo! Mobile
> > > - Check & compose your email via SMS on your
> > Telstra or Vodafone mobile.
> > >
> >
> > > ATTACHMENT part 2 application/octet-stream
> > name=deploy.wsdd
> >
> >
> > > ATTACHMENT part 3 application/octet-stream
> > name=detailsBean.java
> >
> >
> > > ATTACHMENT part 4 application/octet-stream
> > name=document.java
> >
> >
> >
> > =====
> > Davanum Srinivas -
> > http://webservices.apache.org/~dims/
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> >
> === message truncated ===
>
> http://mobile.yahoo.com.au - Yahoo! Mobile
> - Check & compose your email via SMS on your Telstra or
> Vodafone mobile.
>
RE: RE: Possible bug in Axis while creation of stub classes from WSDL2Java for Document style Web Service
Posted by Davanum Srinivas <di...@yahoo.com>.
See "[What does "wrapped" mean? How is it different from "document"?]" @
http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages
-- dims
--- Balaji D L <ba...@yahoo.com> wrote:
> No!.. Its me who missed the whole point(?).
> If i use style="wrapped" , its works fine, but the
> same fails if i use "document".
> The response for style=wrapped service is
> <?xml version="1.0" encoding="UTF-8" ?>
> - <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> - <soapenv:Body>
> - <getDetailsReturn xmlns="">
> <zip>560025</zip>
> <city>Bangalore</city>
> <state>Karnatka</state>
> <phone>555</phone>
> </getDetailsReturn>
> </soapenv:Body>
> </soapenv:Envelope>
>
> and style=document is
>
> <?xml version="1.0" encoding="UTF-8" ?>
> - <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> - <soapenv:Body>
> - <getDetailsResponse xmlns="">
> - <getDetailsReturn>
> <zip>560025</zip>
> <city>Bangalore</city>
> <state>Karnatka</state>
> <phone>555</phone>
> </getDetailsReturn>
> </getDetailsResponse>
> </soapenv:Body>
> </soapenv:Envelope>
>
> Naresh Agarwal!.. Could you please reopen the bug!..
>
>
>
>
> --- "Hansen, Richard" <ri...@thomson.com>
> wrote: > Maybe I am missing something? But the
> deployment
> > descriptors for the bug
> > example and and your example are different.
> > Wouldn't this make a
> > difference. I have experienced the exact same "bug"
> > using document/literal
> > message style using axis 1.1 from june 13th.
> >
> > Rick Hansen
> >
> > <service name="documentstyle" style="document">
> > <service name="documentService" provider="java:RPC"
> > style="wrapped"
> > use="literal">
> >
> > > -----Original Message-----
> > > From: Balaji D L [mailto:balajidl@yahoo.com]
> > > Sent: Thursday, July 17, 2003 10:11 AM
> > > To: axis-user@ws.apache.org
> > > Subject: RE: RE: Possible bug in Axis while
> > creation of stub classes
> > > from WSDL2Java for Document style Web Service
> > >
> > >
> > > Please see the reply for the same!.
> > >
> > > --- "Agarwal, Naresh" <na...@informatica.com>
> > > wrote: > Posted a bug for the same, #21687
> > > >
> > > > regards,
> > > > Naresh Agarwal
> > > >
> > > > -----Original Message-----
> > > > From: Davanum Srinivas [mailto:dims@yahoo.com]
> > > > Sent: Thursday, July 17, 2003 7:03 PM
> > > > To: axis-user@ws.apache.org
> > > > Subject: Fwd: RE: Possible bug in Axis while
> > > > creation of stub classes
> > > > from WSDL2Java for Document style Web Service
> > > >
> > > >
> > > >
> > > > --- "Agarwal, Naresh" <na...@informatica.com>
> > > > wrote:
> > > > > Subject: RE: Possible bug in Axis while
> > creation
> > > > of stub classes from WSDL2Java for Document
> > > > > style Web Service
> > > > > Date: Thu, 17 Jul 2003 05:47:28 -0700
> > > > > From: "Agarwal, Naresh"
> > <na...@informatica.com>
> > > > > To: <ba...@yahoo.com>,
> > > > > <di...@yahoo.com>
> > > > >
> > > > > Hi Balaji/Dims,
> > > > >
> > > > > Previously I have been using Axis-rc1.
> > > > > I've tried the same program with Axis-1.1.
> > > > >
> > > > > Now the WSDL generated by AXIS is correct and
> > I'm
> > > > able to generate stub classes.
> > > > >
> > > > > I'm getting the correct Soap response when I
> > try
> > > > to access the method using
> > > > > ?method=methodname on a URL.
> > > > >
> > > > > However, I'm still getting null values of
> > various
> > > > fields of the bean returned
> > > > > by function call.
> > > > >
> > > > > I'm attaching the following with the mail:
> > > > >
> > > > > 1)deploy.wsdd
> > > > > 2)document.java (the main class, which
> > implements
> > > > the service)
> > > > > 3)detailsBean.java(the java bean class)
> > > > >
> > > > > The two java files are in a package
> > > > "myprograms.documentstyle"
> > > > >
> > > > > It would be great, if you could have a look at
> > > > them and help me out.
> > > > >
> > > > >
> > > > > The SOAP response, when i invoke the function
> > > > "getDetails" is as follows:
> > > > >
> > > > > -----------------
> > > > > HTTP/1.1 200 OK Content-Type: text/xml;
> > > > charset=utf-8 Date: Thu, 17 Jul 2003 12:36:33
> > GMT
> > > > > Server: Apache Coyote/1.0 Connection: close
> > <?xml
> > > > version="1.0" encoding="UTF-8"?>
> > > > > <soapenv:Envelope
> > > >
> > >
> >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > >
> > > >
> > >
> >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > > > <soapenv:Body>
> > > > > <getDetailsReturn
> > > > xmlns="http://documentstyle.myprograms">
> > > > > <phone>555</phone>
> > > > > <zip>560025</zip>
> > > > > <state>Karnatka</state>
> > > > > <city>Bangalore</city>
> > > > > </getDetailsReturn>
> > > > > </soapenv:Body>
> > > > > </soapenv:Envelope>
> > > > > -----------------
> > > > >
> > > > > However, when I try to access the fields
> > (phone,
> > > > zip etc..) from stub classes, i get null values
> > > > > in case of string and 0 in case of integer.
> > > > >
> > > > > thanks & regards,
> > > > > Naresh Agarwal
> > > > >
> > > > > -----Original Message-----
> > > > > From: Balaji D L [mailto:balajidl@yahoo.com]
> > > > > Sent: Thursday, July 17, 2003 4:26 PM
> > > > > To: axis-user@ws.apache.org; dims@yahoo.com
> > > > > Subject: Re: Possible bug in Axis while
> > creation
> > > > of stub classes from
> > > > > WSDL2Java for Document style Web Service
> > > > >
> > > > >
> > > > > If I understood your problem correctly, then I
> > > > would
> > > > > say it is NOT a bug!..
> > > > > I have been able to deploy a service which
> > > > returns
> > > > > object(java bean)with document/literal style.
> > > > > The generated wsdl is also correct. The
> > service
> > > > > works fine if i invoke a method with
> > > > > ?method=methodname on a URL. I'm also able
> > > > generate
> > > > > stub classes using wsdl2java, invoke and get
> > > > results
> > > > > back.
> > > > > Its also works fine with
> > webservicestudio(.net).
> > > > > Please see whether you have deployed the
>
=== message truncated ===
=====
Davanum Srinivas - http://webservices.apache.org/~dims/
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
RE: RE: Possible bug in Axis while creation of stub classes from WSDL2Java for Document style Web Service
Posted by Balaji D L <ba...@yahoo.com>.
No!.. Its me who missed the whole point(?).
If i use style="wrapped" , its works fine, but the
same fails if i use "document".
The response for style=wrapped service is
<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <getDetailsReturn xmlns="">
<zip>560025</zip>
<city>Bangalore</city>
<state>Karnatka</state>
<phone>555</phone>
</getDetailsReturn>
</soapenv:Body>
</soapenv:Envelope>
and style=document is
<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <getDetailsResponse xmlns="">
- <getDetailsReturn>
<zip>560025</zip>
<city>Bangalore</city>
<state>Karnatka</state>
<phone>555</phone>
</getDetailsReturn>
</getDetailsResponse>
</soapenv:Body>
</soapenv:Envelope>
Naresh Agarwal!.. Could you please reopen the bug!..
--- "Hansen, Richard" <ri...@thomson.com>
wrote: > Maybe I am missing something? But the
deployment
> descriptors for the bug
> example and and your example are different.
> Wouldn't this make a
> difference. I have experienced the exact same "bug"
> using document/literal
> message style using axis 1.1 from june 13th.
>
> Rick Hansen
>
> <service name="documentstyle" style="document">
> <service name="documentService" provider="java:RPC"
> style="wrapped"
> use="literal">
>
> > -----Original Message-----
> > From: Balaji D L [mailto:balajidl@yahoo.com]
> > Sent: Thursday, July 17, 2003 10:11 AM
> > To: axis-user@ws.apache.org
> > Subject: RE: RE: Possible bug in Axis while
> creation of stub classes
> > from WSDL2Java for Document style Web Service
> >
> >
> > Please see the reply for the same!.
> >
> > --- "Agarwal, Naresh" <na...@informatica.com>
> > wrote: > Posted a bug for the same, #21687
> > >
> > > regards,
> > > Naresh Agarwal
> > >
> > > -----Original Message-----
> > > From: Davanum Srinivas [mailto:dims@yahoo.com]
> > > Sent: Thursday, July 17, 2003 7:03 PM
> > > To: axis-user@ws.apache.org
> > > Subject: Fwd: RE: Possible bug in Axis while
> > > creation of stub classes
> > > from WSDL2Java for Document style Web Service
> > >
> > >
> > >
> > > --- "Agarwal, Naresh" <na...@informatica.com>
> > > wrote:
> > > > Subject: RE: Possible bug in Axis while
> creation
> > > of stub classes from WSDL2Java for Document
> > > > style Web Service
> > > > Date: Thu, 17 Jul 2003 05:47:28 -0700
> > > > From: "Agarwal, Naresh"
> <na...@informatica.com>
> > > > To: <ba...@yahoo.com>,
> > > > <di...@yahoo.com>
> > > >
> > > > Hi Balaji/Dims,
> > > >
> > > > Previously I have been using Axis-rc1.
> > > > I've tried the same program with Axis-1.1.
> > > >
> > > > Now the WSDL generated by AXIS is correct and
> I'm
> > > able to generate stub classes.
> > > >
> > > > I'm getting the correct Soap response when I
> try
> > > to access the method using
> > > > ?method=methodname on a URL.
> > > >
> > > > However, I'm still getting null values of
> various
> > > fields of the bean returned
> > > > by function call.
> > > >
> > > > I'm attaching the following with the mail:
> > > >
> > > > 1)deploy.wsdd
> > > > 2)document.java (the main class, which
> implements
> > > the service)
> > > > 3)detailsBean.java(the java bean class)
> > > >
> > > > The two java files are in a package
> > > "myprograms.documentstyle"
> > > >
> > > > It would be great, if you could have a look at
> > > them and help me out.
> > > >
> > > >
> > > > The SOAP response, when i invoke the function
> > > "getDetails" is as follows:
> > > >
> > > > -----------------
> > > > HTTP/1.1 200 OK Content-Type: text/xml;
> > > charset=utf-8 Date: Thu, 17 Jul 2003 12:36:33
> GMT
> > > > Server: Apache Coyote/1.0 Connection: close
> <?xml
> > > version="1.0" encoding="UTF-8"?>
> > > > <soapenv:Envelope
> > >
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > >
> > >
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > > <soapenv:Body>
> > > > <getDetailsReturn
> > > xmlns="http://documentstyle.myprograms">
> > > > <phone>555</phone>
> > > > <zip>560025</zip>
> > > > <state>Karnatka</state>
> > > > <city>Bangalore</city>
> > > > </getDetailsReturn>
> > > > </soapenv:Body>
> > > > </soapenv:Envelope>
> > > > -----------------
> > > >
> > > > However, when I try to access the fields
> (phone,
> > > zip etc..) from stub classes, i get null values
> > > > in case of string and 0 in case of integer.
> > > >
> > > > thanks & regards,
> > > > Naresh Agarwal
> > > >
> > > > -----Original Message-----
> > > > From: Balaji D L [mailto:balajidl@yahoo.com]
> > > > Sent: Thursday, July 17, 2003 4:26 PM
> > > > To: axis-user@ws.apache.org; dims@yahoo.com
> > > > Subject: Re: Possible bug in Axis while
> creation
> > > of stub classes from
> > > > WSDL2Java for Document style Web Service
> > > >
> > > >
> > > > If I understood your problem correctly, then I
> > > would
> > > > say it is NOT a bug!..
> > > > I have been able to deploy a service which
> > > returns
> > > > object(java bean)with document/literal style.
> > > > The generated wsdl is also correct. The
> service
> > > > works fine if i invoke a method with
> > > > ?method=methodname on a URL. I'm also able
> > > generate
> > > > stub classes using wsdl2java, invoke and get
> > > results
> > > > back.
> > > > Its also works fine with
> webservicestudio(.net).
> > > > Please see whether you have deployed the
> service
> > > > properly with proper de/serializer etc.,
> > > >
> > > > Regards
> > > > Balaji
> > > > --- Davanum Srinivas <di...@yahoo.com> wrote:
> >
> > > > Naresh,
> > > > >
> > > > > Please log a bug report. I saw something
> similar
> > > > > yesterday.
> > > > >
> > > > > Thanks,
> > > > > dims
> > > > >
> > > > > --- "Agarwal, Naresh"
> <na...@informatica.com>
> > > > > wrote:
> > > > > > Hi
> > > > > >
> > > > > > I've developed a simple document style web
> > > service
> > > > > (contains a function, which return a bean)
> > > > > > using AXIS . I've generated the WSDL file
> for
> > > > > this.
> > > > > > The WSDL file generated by AXIS has two
> bugs
> > > > > (empty targetNameSpace and missing namespace
> > > > > > prefix) due to which WSDL2Java fails to
> > > generate
> > > > > stub classes.
> > > > > >
> > > > > > I have manually edited the WSDL file and
> was
> > > able
> > > > > to generate the stub classes from WSDL2Java
> > > > > > tool.
> > > > > >
> > > > > > I developed a client application from the
> stub
> > > > > classes. When I run the client, I am
> receiving
> > > > > > various fields of bean (return value of
> the
> > > > > function) as null.
>
=== message truncated ===
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.