axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balaji D L <balaj...@yahoo.com>
Subject RE: RE: Possible bug in Axis while creation of stub classes from WSDL2Java for Document style Web Service
Date Thu, 17 Jul 2003 15:11:06 GMT
Please see the reply for the same!.

 --- "Agarwal, Naresh" <nagarwal@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" <nagarwal@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" <nagarwal@informatica.com>
> > To: <balajidl@yahoo.com>,
> > 	<dims@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 <dims@yahoo.com> wrote: >
> > Naresh,
> > > 
> > > Please log a bug report. I saw something similar
> > > yesterday.
> > > 
> > > Thanks,
> > > dims
> > > 
> > > --- "Agarwal, Naresh" <nagarwal@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.

Mime
View raw message