RE: java to wsdl

2005-05-06 Thread Koney, Satish
You dont need to worry about the imports. 

But you could have easily tested it..why wait for reply?

> -Original Message-
> From: wsdl nerd [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, May 05, 2005 12:38 PM
> To:   axisgroup
> Subject:  java to wsdl
> 
> Good Afternoon to all,
> I'm happy about joining the group, looking forward for
> some help from you all.
> 
> I've the following queries when i need to expose a
> java component into web service.
> 
> I use axis for the task[using java2wsdl and wsdl2java]
> 
> The following are my queries:
> 
> 1. If i obtain a wsdl file from a class that has all
> the implementation in it, should I bother about the
> Interface and the Implementation obtained from
> wsdl2java?
> 
> 2. Say the java file that i want to expose as
> webservice is a part of a big package, What should i
> do about the import stuff in the file that i have to
> convert to web service?? Has it got something to do
> with the classpath..
> 
> Eagerly Waiting for reply,
> Thank you..
> 
> 
> 
> 
> Yahoo! India Matrimony: Find your life partner online
> Go to: http://yahoo.shaadi.com/india-matrimony
> 

Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.


RE: Trouble wiyh my own serializer/deserializer

2005-04-22 Thread Koney, Satish
Hi Sebastien,

I guess you started writing your own serializer/deserializer to get
rid off the problems with Hibernate.
Is there no other way we can fix this problem?
I also have the same problem with Hibernate. Though I use lazy mode, because
of Axis serializers/ deserializers
it is executing so many queries...

If there is no way other than writing our own serializers/deserializers, can
you please tell where to start?
how difficult is it to write our (De)serializers?
What are the possible negaive impacts of not using Axis
serializers/deserializers?


Thanks in advance,
.



> -Original Message-
> From: Sebastien Mayemba Mbokoso [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, March 22, 2005 8:23 PM
> To:   axis-user@ws.apache.org
> Subject:  Trouble wiyh my own serializer/deserializer
> 
> Hi all,
> 
> for writing my own serializer/deserializer i follow what they say in
> Apache Axis Live. When i
> run my with web service i get that error message : 
> 
> AxisFault
>  faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: java.io.IOException: No serializer found for class
> fr.gouv.finances.projet.transverse.stf.dto.TypeZoneSecuriteDTO in
> registry [EMAIL PROTECTED]
>  faultActor: 
>  faultNode: 
>  faultDetail: 
>   {http://xml.apache.org/axis/}stackTrace: java.io.IOException: No
> serializer found for class
> fr.gouv.finances.projet.transverse.stf.dto.TypeZoneSecuriteDTO in
> registry [EMAIL PROTECTED]
>   at
> org.apache.axis.encoding.SerializationContextImpl.serializeActual(Serializ
> ationContextImpl.java:1281)
>   at
> org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationC
> ontextImpl.java:795)
>   at
> org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.jav
> a:352)
>   at
> org.apache.axis.encoding.SerializationContextImpl.serializeActual(Serializ
> ationContextImpl.java:1255)
>   at
> org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationC
> ontextImpl.java:795)
>   at org.apache.axis.message.RPCParam.serialize(RPCParam.java:225)
>   at
> org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:387)
>   at
> org.apache.axis.message.MessageElement.output(MessageElement.java:783)
>   at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:174)
>   at
> org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:509)
>   at
> org.apache.axis.message.MessageElement.output(MessageElement.java:783)
>   at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
>   at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:483)
>   at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:375)
>   at org.apache.axis.Message.getContentType(Message.java:399)
>   at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:887)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>   at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.jav
> a:339)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> onFilterChain.java:237)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> Chain.java:157)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> java:214)
>   at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCont
> ext.java:104)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520
> )
>   at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardConte
> xtValve.java:198)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> java:152)
>   at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCont
> ext.java:104)
>   at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAsso
> ciationValve.java:72)
>   at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCont
> ext.java:102)
>   at
> org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMg
> rRealm.java:418)
>   at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCont
> ext.java:102)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520
> )
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> 37)
>   at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCont
> ext.java:104)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> 17)
>   at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCont
> ext.java:102)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520
> )
>   at
> org.apache.catalina.c

RE: Axis, Spring and Hibernate

2005-03-14 Thread Koney, Satish
Ya...I could have used lazy="true"
but that requires the sesssion to be open when those elements are accessed.

But I am using spring to maintain the sessions...It is opening at the start
of the method and closing 
session when it is done with that. so by the time the elements are accessed
in my client web applicatoin the sesssion is getting closed. that results in
exceptions

probably, I talked much about hibernate in Axis forum...but i believe that
(De) serialzation is consuming time

Thanks,
.


> -Original Message-
> From: Arijit Mukherjee [SMTP:[EMAIL PROTECTED]
> Sent: Monday, March 14, 2005 2:24 PM
> To:   axis-user@ws.apache.org
> Subject:  RE: Axis, Spring and Hibernate
> 
> If you are using hibernate-style beans (that is, collections are
> represented as sets/bags), you can set the option for "lazy loading" -
> in which case when you are retrieving one object, hibernate will not
> retrieve all the children unless asked to do so. This will reduce the
> time for mapping the relations and their children back into relevant
> objects. 
> 
> I have a similar problem because I am using Axis-generated stubs (which
> contains arrays for collections - and this rules out the possibility of
> lazy loading)...
> 
> Arijit 
> 
> >-Original Message-
> >From: Koney, Satish [mailto:[EMAIL PROTECTED] 
> >Sent: 14 March 2005 07:57
> >To: axis-user@ws.apache.org
> >Subject: RE: Axis, Spring and Hibernate
> >
> >it is not taking 20 minutes for executing the queries..the 
> >queries are executed fast..
> >the problem is with constructing those retrvied records into objects...
> >
> >Can someone plz help!!
> >
> >
> >> -Original Message-
> >> From:  Sebastien Mayemba Mbokoso 
> >[SMTP:[EMAIL PROTECTED]
> >> Sent:  Sunday, March 13, 2005 11:43 AM
> >> To:axis-user@ws.apache.org
> >> Subject:   Re: Axis, Spring and Hibernate
> >> 
> >> I am using Hibernaete in my current project with Axis too. 
> >It's not an 
> >> Axis issue but just a Hibernate trouble. You have to investigate in 
> >> the Hibernate Forum.
> >> 20 minutes for executing a queries it's not possible. My databases 
> >> contains 32 tables with so many relationships and so many tables are 
> >> full. My queries don't spend a lot of time as yours.
> >> 
> >> 
> >> Sebastien
> >> 
> >> 
> >> On Sat, 12 Mar 2005 10:52:28 -0500, Koney, Satish 
> >> <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> > 
> >> > I have two modules in my application.
> >> > The first one is a webservice. (Axis 1.1, spring 1.1.3 and
> >> Hibernate
> >> > 2.1.6 ) This web service is responsible for fetching, updating, 
> >> > deleting the records in database.
> >> > 
> >> > The second one is web application which is consuming this 
> >> > web service. It is purely for presentation.
> >> > It does not do anything other than presentation.
> >> > 
> >> > The problem I am facing now is, when I request Hibernate 
> >for records 
> >> > in
> >> one
> >> > table, it is executing so many queries.
> >> > It is fetching records from the tables which have foreign-key 
> >> > relation
> >> with
> >> > that table. So when the web application is using this web service, 
> >> > it is taking lot of time to load the page. ( 20 minutes just to 
> >> > display 5-6 records)
> >> > 
> >> > On the Axis side, how can I control the 
> >(De)serialization of
> >> objects
> >> > that I am getting from the web service?
> >> > 
> >> > Please help!!!
> >> > 
> >> > Thanks,
> >> > .
> >> > 
> >> > 
> >> > Confidential:  This electronic message and all contents contain
> >> information
> >> > from Syntel, Inc. which may be privileged, confidential or 
> >otherwise 
> >> > protected from disclosure. The information is intended to 
> >be for the 
> >> > addressee only. If you are not the addressee, any 
> >disclosure, copy, 
> >> > distribution or use of the contents of this message is 
> >prohibited.  
> >> > If
> >> you
> >> > have received this electronic message in error, please notify the 
> >> > send

RE: Axis, Spring and Hibernate

2005-03-13 Thread Koney, Satish
it is not taking 20 minutes for executing the queries..the queries are
executed fast..
the problem is with constructing those retrvied records into objects...

Can someone plz help!!


> -Original Message-
> From: Sebastien Mayemba Mbokoso [SMTP:[EMAIL PROTECTED]
> Sent: Sunday, March 13, 2005 11:43 AM
> To:   axis-user@ws.apache.org
> Subject:  Re: Axis, Spring and Hibernate
> 
> I am using Hibernaete in my current project with Axis too. It's not an
> Axis issue but just
> a Hibernate trouble. You have to investigate in the Hibernate Forum.
> 20 minutes for executing a queries it's not possible. My databases
> contains 32 tables with so many relationships and so many tables are
> full. My queries don't spend a lot of time as yours.
> 
> 
> Sebastien
> 
> 
> On Sat, 12 Mar 2005 10:52:28 -0500, Koney, Satish
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I have two modules in my application.
> > The first one is a webservice. (Axis 1.1, spring 1.1.3 and
> Hibernate
> > 2.1.6 ) This web service is responsible for
> > fetching, updating, deleting the records in database.
> > 
> > The second one is web application which is consuming this web
> > service. It is purely for presentation.
> > It does not do anything other than presentation.
> > 
> > The problem I am facing now is, when I request Hibernate for records in
> one
> > table, it is executing so many queries.
> > It is fetching records from the tables which have foreign-key relation
> with
> > that table. So when the web application is
> > using this web service, it is taking lot of time to load the page. ( 20
> > minutes just to display 5-6 records)
> > 
> > On the Axis side, how can I control the (De)serialization of
> objects
> > that I am getting from the web service?
> > 
> > Please help!!!
> > 
> > Thanks,
> > .
> > 
> > 
> > Confidential:  This electronic message and all contents contain
> information
> > from Syntel, Inc. which may be privileged, confidential or otherwise
> > protected from disclosure. The information is intended to be for the
> > addressee only. If you are not the addressee, any disclosure, copy,
> > distribution or use of the contents of this message is prohibited.  If
> you
> > have received this electronic message in error, please notify the sender
> > immediately and destroy the original message and all copies.
> >
> 

Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.


Axis, Spring and Hibernate

2005-03-12 Thread Koney, Satish
Hi,

I have two modules in my application.
The first one is a webservice. (Axis 1.1, spring 1.1.3 and Hibernate
2.1.6 ) This web service is responsible for 
fetching, updating, deleting the records in database. 

The second one is web application which is consuming this web
service. It is purely for presentation.
It does not do anything other than presentation.

The problem I am facing now is, when I request Hibernate for records in one
table, it is executing so many queries.
It is fetching records from the tables which have foreign-key relation with
that table. So when the web application is 
using this web service, it is taking lot of time to load the page. ( 20
minutes just to display 5-6 records)

On the Axis side, how can I control the (De)serialization of objects
that I am getting from the web service?

Please help!!!


Thanks,
.



Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.


Using ant task to deploy services

2005-03-01 Thread Koney, Satish
Hi All,

Can someone tell me what is the ideal way of deploying a web service
using ant task?

Following is how I am doing it now: (Each step is a separate task)

1. compile the project and build the war file

2. copy the war file into JBoss server/default/deploy/webapps directory
(This is to deploy the war file)

3. deploy the webservice using adminClient ant task ( In the second step,
only the war file is deployed, not the service)

But the problem I am facing is, each time I restart my server, I need to
redeploy the web service.

If my application is in the form of a directory (WebService.war directory) ,
when I deploy the service, it is creating a server-config.wsdd file in my
WEB-INF directory.

But if it is a war file, that file is not created, but the service is
deployed.I do not understand where it is keeping all the web service
information.

So can someone please me tell me how i deploy the web service using ant
task?


Thanks,
.


Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.