Re: Initializing Web Service (Server) before first request received

2010-02-09 Thread sri ram
If you are using Tomcat as your webserver.
then you can configureit  in the web.xml .
To initialize a servlet on start up add this in the web.xml
load-on-startup1/load-on-startup..



-Sriram





From: Oded Onn oded@mobixell.com
To: axis-user@ws.apache.org
Sent: Tue, 9 February, 2010 7:56:48 PM
Subject: Initializing Web Service (Server) before first request received

 
Hi all,
 
I am deploying an AXIS2 web service (server side). 
 
My problem: The skeleton class (the one that performs all
the business logic) is read for the first time only when the first request is 
received
by the server. It means that the first response takes a really long time (up to
20 seconds on a weak machine) since there are a lot of initialization I have to
perform (static init).
 
Solution: I am assuming I can write some sort of a main
class that will try to call the skeleton class. This is not only ugly but also
prone to all sorts of errors. Is there a proper way to init my service class? I
would expect some mechanism to be used, such as utilizing the servlet init of
the axis servlet.
 
Anyone? Thanks!
Oded


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

Re: Regarding Apache Axis not releasing objects (possible memory leak)

2009-11-17 Thread sri ram
Is this the same with Axis 2.1.4 also.
Can Axis 2 developers throw some light on this .

-Sriram


--- On Tue, 17/11/09, ahmadbasha.sh...@wipro.com ahmadbasha.sh...@wipro.com 
wrote:

From: ahmadbasha.sh...@wipro.com ahmadbasha.sh...@wipro.com
Subject: Regarding Apache Axis not releasing objects (possible memory leak)
To: axis-user@ws.apache.org
Date: Tuesday, 17 November, 2009, 2:50 PM


 

 
Hi

 
Background of the Problem:
I used Apache Axis 1 - 1.3 to create some stubs. 
Using these stubs, I had written a Web Service client to access a Web Service 
(which is an external web service, developed long back with Axis 1 - 1.3).
 
Tests done to re-produce the problem:
We have been doing a Load Test and while doing this we hooked JProbe on to our 
WAR file. 
In the JProbe snapshots captured before, during and after the processing by the 
WAR file, we noticed the following:
a. Objects in the package org.apache.* are not getting released. 
    Instead, even after the processing is complete by the war (i.e. on the next 
day too), it still shows count of the objects in the pacakge org.apache.* as 
same as what was present after the previous nights test.
    There is no decrease in the memory utilized on the next day.
b. Objects in the package edu.emory.mathcs.backport.java.util.concurrent.* also 
exhibit the same behavior.
 
FYI - Environment:
Application Server - IBM WebSphere 6
Java - JDK 1.5
OS - Solaris
Apache Axis - Axis 1 - 1.3
 
Can anybody please suggest a way to solve this ?
 
Regards
Ahmad Please do not print this email unless it is absolutely necessary.  


 The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com




  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

Re: Regarding XMLBeans generation Of files

2009-10-16 Thread sri ram
Since we have already done an extensive coding using this databinding .
Its highly unlikely to revert back.
So now we are trying to improvise the generator itself :(

Hmm  ... is there no other way to achieve the below queries.

-Sriram


--- On Fri, 16/10/09, Amila Suriarachchi amilasuriarach...@gmail.com wrote:

From: Amila Suriarachchi amilasuriarach...@gmail.com
Subject: Re: Regarding XMLBeans generation Of files
To: axis-user@ws.apache.org
Date: Friday, 16 October, 2009, 11:56 AM

can you try another data binding frame work like adb or jaxbri.

thanks,
Amila.

On Thu, Oct 15, 2009 at 2:51 PM, sri ram pinnamaraju_sri...@yahoo.co.in wrote:


Attaching the files

--- On Thu, 15/10/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:


From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Regarding XMLBeans generation Of files
To: axis-user@ws.apache.org

Date: Thursday, 15 October, 2009, 2:50 PM


Hi all,

As we know that XMLbeans generates a lot of file reading the schema.
I have tried my best to modify the schema to best known format to reduce the 
number of
 files.
And I have been succesfull in doing that .

What I see is that  there are a lot of unused methods that are getting 
generated in  files that  are generated .Unused in my code of implementation.
For example there are a lot of overloaded parse methods that are generated 
,which are

 public and static  and hence need to be loaded in the memory even if they are 
used or not.
So my concern is can we suppress the generation of these methods
by using some options in the command line (while compiling the schema).

Else can we change the source code of the XMLBeans generator to get the 
required methods. If yes what are jars that   we can
 modify without violating any of the rules of open source code .

I have attached two files to show the  number of methods that are actually in 
use.
And  what we want to achieve.

The number of files that are generated are 4029  .

The number of line we want to reduce is 50 line in each file .
ie approx 50 * 4000= 200,000

Our schema is ever increasing  with every version.
It will allow my application to work better and faster.

Can someone quickly respond to it.


Thanks in advance 


-Sriram


   Now, send attachments up to 25MB with Yahoo! India Mail. Learn how.


   Connect more, do more and share more with Yahoo! India Mail.  Learn more.



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/




  Keep up with people you care about with Yahoo! India Mail. Learn how. 
http://in.overview.mail.yahoo.com/connectmore

Regarding XMLBeans generation Of files

2009-10-15 Thread sri ram
Hi all,

As we know that XMLbeans generates a lot of file reading the schema.
I have tried my best to modify the schema to best known format to reduce the 
number of files.
And I have been succesfull in doing that .

What I see is that  there are a lot of unused methods that are getting 
generated in  files that  are generated .Unused in my code of implementation.
For example there are a lot of overloaded parse methods that are generated 
,which are
 public and static  and hence need to be loaded in the memory even if they are 
used or not.
So my concern is can we suppress the generation of these methods
by using some options in the command line (while compiling the schema).
Else can we change the source code of the XMLBeans generator to get the 
required methods. If yes what are jars that   we can modify without violating 
any of the rules of open source code .

I have attached two files to show the  number of methods that are actually in 
use.
And  what we want to achieve.

The number of files that are generated are 4029  .
The number of line we want to reduce is 50 line in each file .
ie approx 50 * 4000= 200,000

Our schema is ever increasing  with every version.
It will allow my application to work better and faster.

Can someone quickly respond to it.

Thanks in advance 


-Sriram



  Keep up with people you care about with Yahoo! India Mail. Learn how. 
http://in.overview.mail.yahoo.com/connectmore

Re: Regarding XMLBeans generation Of files

2009-10-15 Thread sri ram
Attaching the files

--- On Thu, 15/10/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Regarding XMLBeans generation Of files
To: axis-user@ws.apache.org
Date: Thursday, 15 October, 2009, 2:50 PM

Hi all,

As we know that XMLbeans generates a lot of file reading the schema.
I have tried my best to modify the schema to best known format to reduce the 
number of files.
And I have been succesfull in doing that .

What I see is that  there are a lot of unused methods that are getting 
generated in  files that  are generated .Unused in my code of implementation.
For example there are a lot of overloaded parse methods that are generated 
,which are
 public and static  and hence need to be loaded in the memory even if they are 
used or not.
So my concern is can we suppress the generation of these methods
by using some options in the command line (while compiling the schema).
Else can we change the source code of the XMLBeans generator to get the 
required methods. If yes what are jars that   we can
 modify without violating any of the rules of open source code .

I have attached two files to show the  number of methods that are actually in 
use.
And  what we want to achieve.

The number of files that are generated are 4029  .
The number of line we want to reduce is 50 line in each file .
ie approx 50 * 4000= 200,000

Our schema is ever increasing  with every version.
It will allow my application to work better and faster.

Can someone quickly respond to it.

Thanks in advance 


-Sriram


   Now, send attachments up to 25MB with Yahoo! India Mail. Learn how.


  Connect more, do more and share more with Yahoo! India Mail. Learn more. 
http://in.overview.mail.yahoo.com//*
 * XML Type:  AddPersonGroupMatrixReq
 * Namespace: http://www.kiran.com/AXL/API/8.0
 * Java type: com.kiran.www.AddPersonGroupMatrixReq
 *
 * Automatically generated - do not modify.
 */
package com.kiran.www;


/**
 * An XML AddPersonGroupMatrixReq(@http://www.kiran.com).
 *
 * This is a complex type.
 */
public interface AddPersonGroupMatrixReq extends com.kiran.www.APIRequest
{
public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)

org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AddPersonGroupMatrixReq.class.getClassLoader(),
 
schemaorg_apache_xmlbeans.system.sC9186F50FFFED779ED0597E80002DA3D).resolveHandle(addPersongroupmatrixreq1467type);

/**
 * Gets the PersonGroupMatrix element
 */
com.kiran.www.XPersonGroupMatrix getPersonGroupMatrix();

/**
 * Sets the PersonGroupMatrix element
 */
void setPersonGroupMatrix(com.kiran.www.XPersonGroupMatrix 
PersonGroupMatrix);

/**
 * Appends and returns a new empty PersonGroupMatrix element
 */
com.kiran.www.XPersonGroupMatrix addNewPersonGroupMatrix();

/**
 * A factory class with static methods for creating instances
 * of this type.
 */

public static final class Factory
{
public static com.kiran.www.AddPersonGroupMatrixReq newInstance() {
  return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }

public static com.kiran.www.AddPersonGroupMatrixReq 
newInstance(org.apache.xmlbeans.XmlOptions options) {
  return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options 
); }

/** @param xmlAsString the string value to parse */
public static com.kiran.www.AddPersonGroupMatrixReq 
parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
  return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, 
null ); }

public static com.kiran.www.AddPersonGroupMatrixReq 
parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) 
throws org.apache.xmlbeans.XmlException {
  return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, 
options ); }

/** @param file the file from which to load an xml document */
public static com.kiran.www.AddPersonGroupMatrixReq parse(java.io.File 
file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }

public static com.kiran.www.AddPersonGroupMatrixReq parse(java.io.File 
file, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
  return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options 
); }

public static

[no subject]

2009-10-01 Thread sri ram
Hi,

As  I see in Axis 2 doesn't support a format of SOAP messages which doesn't 
have namespace prefix.As shown below the request doesn't work ,however when 
substituted bya namespace prefix it does work well.



SOAP-ENV:Envelope 
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
    
SOAP-ENV:Body 
    executeSQLQuery 
xmlns=http://www.kiran.com/AXL/API/7.1 
    
sqlselect * from typeproduct/sql  
    
/executeSQLQuery 
    
/SOAP-ENV:Body 

/SOAP-ENV:Envelope     
 



 (axis 2) expects the request message  to have 
namespace prefix in the request 
. 
  
SOAP-ENV:Envelope 
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
    
SOAP-ENV:Body 
    ns:executeSQLQuery xmlns:ns 
=http://www.kiran.com/AXL/API/8.0; 
    
sqlselect * from typeproduct/sql  
    /ns:executeSQLQuery 
    
/SOAP-ENV:Body 
/SOAP-ENV:Envelope
Is there a way to  make the axis 2 framework to allow and process the other 
format of request ie withoute the namespace prefix.



Is this (namespace prefix )  a standard followed by all the SOAPEngines and 
Parsers.Can some one throw some light on it.

Please  reply back soon.

If this kind of question is already addressed can you guys  please give link to 
the corresponding mail.


Thanks ,
Sriram 


  Yahoo! India has a new look. Take a sneak peek http://in.yahoo.com/trynew

Re:

2009-10-01 Thread sri ram
Thanks to Paul and Andreas.

The same request when modified to this format ,works fine
SOAP-ENV:Envelope xmlns:ns=http://www.kiran.com; 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
   SOAP-ENV:Body
  executeSQLQuery xmlns=http://www.kiran.com;
 sql xmlns=select * from typedevice/sql
  /executeSQLQuery
   /SOAP-ENV:Body
/SOAP-ENV:Envelope

I have elementFormDefault=unqualified attributeFormDefault=unqualified 
in the schema .I  will  change these values and check if it works for me.

One question :When is it recommended to have a elementFormDefault=qualified 
attributeFormDefault=qualified ?

Thanks,
Sriram


--- On Thu, 1/10/09, Andreas Veithen andreas.veit...@gmail.com wrote:

From: Andreas Veithen andreas.veit...@gmail.com
Subject: Re:
To: axis-user@ws.apache.org
Date: Thursday, 1 October, 2009, 1:25 PM

The two requests are NOT the same. In the first request, the sql
element has a namespace, while in the second one it does not. It is
normal that Axis2 rejects one of them. Which of the two request is the
correct one depends on the WSDL/Schema, more specifically on the
setting for elementFormDefault.

Andreas

On Thu, Oct 1, 2009 at 08:29, Paul Fremantle pzf...@gmail.com wrote:

 Sriram

 You don't need to have the ns prefix. As long as the XML is properly formed, 
 you can use either style.

 Paul

 On Thu, Oct 1, 2009 at 7:12 AM, sri ram pinnamaraju_sri...@yahoo.co.in 
 wrote:

 Hi,

 As  I see in Axis 2 doesn't support a format of SOAP messages which doesn't 
 have namespace prefix.As shown below the request doesn't work ,however when 
 substituted bya namespace prefix it does work well.

 SOAP-ENV:Envelope encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

     SOAP-ENV:Body

     executeSQLQuery 
 xmlns=http://www.kiran.com/AXL/API/7.1

     sqlselect * from 
 typeproduct/sql

     /executeSQLQuery

     /SOAP-ENV:Body

 /SOAP-ENV:Envelope

  (axis 2) expects the request message  to have namespace prefix in the 
 request .



 SOAP-ENV:Envelope encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

     SOAP-ENV:Body

     ns:executeSQLQuery xmlns:ns 
 =http://www.kiran.com/AXL/API/8.0;

     sqlselect * from 
 typeproduct/sql

     /ns:executeSQLQuery

     /SOAP-ENV:Body

 /SOAP-ENV:Envelope

 Is there a way to  make the axis 2 framework to allow and process the other 
 format of request ie withoute the namespace prefix.



 Is this (namespace prefix )  a standard followed by all the SOAPEngines and 
 Parsers.

 Can some one throw some light on it.

 Please  reply back soon.

 If this kind of question is already addressed can you guys  please give link 
 to the corresponding mail.

 Thanks ,

 Sriram

 
 Connect more, do more and share more with Yahoo! India Mail. Learn more.


 --
 Paul Fremantle
 Co-Founder and CTO, WSO2
 Apache Synapse PMC Chair
 OASIS WS-RX TC Co-chair

 blog: http://pzf.fremantle.org
 p...@wso2.com

 Oxygenating the Web Service Platform, www.wso2.com



  Try the new Yahoo! India Homepage. Click here. http://in.yahoo.com/trynew

Few SOAP Request format not supported by AXIS 2

2009-09-23 Thread sri ram
HI Alll,

Axis 2 doesn't support some format of SOAP messages ,Is there a reason for 
it,or is it
a standard.



Axis 2 doesn't support this format of request , any idea why ???


SOAP-ENV:Envelope 
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
    
SOAP-ENV:Body
    executeSQLQuery 
xmlns=http://www.kiran.com/AXL/API/7.1
    
sqlselect * from typeproduct/sql 
    
/executeSQLQuery
    
/SOAP-ENV:Body
/SOAP-ENV:Envelope
    
 



 (axis 2) expects the request message  to have 
namespace prefix in the request 
.
  
SOAP-ENV:Envelope 
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
    
SOAP-ENV:Body
    ns:executeSQLQuery xmlns:ns 
=http://www.kiran.com/AXL/API/8.0;
    
sqlselect * from typeproduct/sql 
    /ns:executeSQLQuery
    
/SOAP-ENV:Body
/SOAP-ENV:EnvelopeIs there a way to  make the axis 2 framework to allow and 
process the other format of request .
Can someone reply back soon.

Thanks ,
Sriram 



  From cricket scores to your friends. Try the Yahoo! India Homepage! 
http://in.yahoo.com/trynew

Fw: High Priority ,Parallel requests throwing null pointer exception.

2009-09-17 Thread sri ram







Hi All,
I have a webservice developed in axis 2.
Works fine when there are sequence of requests.

However when two  parallel request hit the Axis Servlet I get exception.
When I send these two requests sequentially everything is holy .
So ideally,nothing is wrong with the  request.


PFA : For Error Stack trace


Can Some one help me out on
 this.
Should I make some changes in axis2.xml
Or there's an patch available for Axis2 servlet for this scenario.

Thanks,
Sriram






   Keep up with people you care about with Yahoo! India Mail. Learn how.




   Add whatever you love to the Yahoo! India homepage. Try now!


  Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. 
http://in.overview.mail.yahoo.com/photosjava.lang.NullPointerException
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2955)
at 
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:299)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(XMLEntityScanner.java:1619)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(XMLEntityScanner.java:1684)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$XMLDeclDriver.next(XMLDocumentScannerImpl.java:795)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at 
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.setInputSource(XMLStreamReaderImpl.java:207)
at 
com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(XMLInputFactoryImpl.java:273)
at 
com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:157)
at org.apache.axiom.om.util.StAXUtils$1.run(StAXUtils.java:114)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:110)
at 
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:51)
at 
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:164)
at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:270)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:135)

Re: WSDL2Java generates uncompilable code

2009-06-12 Thread sri ram

Hello  Again ,

Do i need to put in some more details 
Please let me know.
This is a major issue.



--- On Wed, 10/6/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: WSDL2Java generates uncompilable code
To: axis-user@ws.apache.org
Date: Wednesday, 10 June, 2009, 4:29 PM

Hi axis 1.4 Users,
I have an issue while using axis 1.4 engine .

While I run wsdl2java
 WSDL2Java generates uncompilable code 

Issue is : 
(java.lang.String)
super(_value);
^
1 error
 Because the code invokes a superconstructor but doesn't extend any 
other class. I'm assuming that the problem is in the use of the extension 
element.

For this scenario  I have found the probable solution given from one of the 
users 
in this link

https://issues.apache.org/jira/browse/AXIS-2605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505768

He modified the JavaBeanWriter.java file .
Is that the right fix should I follow it.
Can anyone confirm  or give an alternate fix for this .


Can anyone give a solution...
 

Thanks 
Sriram











   Explore and discover exciting holidays and getaways with Yahoo! India 
Travel  Click here!


  Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/

Re: WSDL2Java generates uncompilable code

2009-06-11 Thread sri ram
resending .
This issue should have been addressed before, can anyone guide me its important.

--- On Wed, 10/6/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: WSDL2Java generates uncompilable code
To: axis-user@ws.apache.org
Date: Wednesday, 10 June, 2009, 4:29 PM

Hi axis 1.4 Users,
I have an issue while using axis 1.4 engine .

While I run wsdl2java
 WSDL2Java generates uncompilable code 

Issue is : 
(java.lang.String)
super(_value);
^
1 error
 Because the code invokes a superconstructor but doesn't extend any 
other class. I'm assuming that the problem is in the use of the extension 
element.

For this scenario  I have found the probable solution given from one of the 
users 
in this link

https://issues.apache.org/jira/browse/AXIS-2605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505768

He modified the JavaBeanWriter.java file .
Is that the right fix should I follow it.
Can anyone confirm  or give an alternate fix for this .


Can anyone give a solution...
 

Thanks 
Sriram











   Explore and discover exciting holidays and getaways with Yahoo! India 
Travel  Click here!


  Cricket on your mind? Visit the ultimate cricket website. Enter 
http://beta.cricket.yahoo.com

WSDL2Java generates uncompilable code

2009-06-10 Thread sri ram
Hi axis 1.4 Users,
I have an issue while using axis 1.4 engine .

While I run wsdl2java
 WSDL2Java generates uncompilable code 

Issue is : 
(java.lang.String)
super(_value);
^
1 error
 Because the code invokes a superconstructor but doesn't extend any 
other class. I'm assuming that the problem is in the use of the extension 
element.

For this scenario  I have found the probable solution given from one of the 
users 
in this link

https://issues.apache.org/jira/browse/AXIS-2605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505768

He modified the JavaBeanWriter.java file .
Is that the right fix should I follow it.
Can anyone confirm  or give an alternate fix for this .


Can anyone give a solution...
 

Thanks 
Sriram










  Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/

Re: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread sri ram
Hi All,


In Axis 2.1.4 ,the axis servlet sets some header by default but doesn't set the 
Content Length header which plays a major part in chunking a response.

I just need to know how to include this header in my response .
Should I Use MessageReceiver Class ?
Or 
Are there some other Class that can manipulate the response to add my own 
headers
Please let me  know its kind of important.






--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Re: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 5:59 PM

Can someone immediately reply for this query.If needed I can provide 
necessary data.Its urgent.

--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 PM

Hi all,
(Axis 2.14.) 
In my scenario we need a header
 mentioning the Content Length of the SOAP response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 




   Connect with friends all over the world.  Get Yahoo! India Messenger.

   Connect with friends all over the world.  Get Yahoo! India Messenger.


  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/

RE: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread sri ram
Hi Erwin,

We don't need chunking ,thats the reason we need Content Length header .

Regards,
Sriram


--- On Wed, 22/4/09, Erwin Reinhoud erwin.reinh...@ictu.nl wrote:

From: Erwin Reinhoud erwin.reinh...@ictu.nl
Subject: RE: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Wednesday, 22 April, 2009, 1:26 PM



 
Do 
you need to apply chunking? I think if you dont the Content length is 
added.
 
regards,
Erwin




Van: sri ram 
[mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 
2009 8:46
Aan: axis-user@ws.apache.org
Onderwerp: Re: 
Getting the Content Lenth of The SOAP Response




  
  
Hi All,


In Axis 2.1.4 ,the axis servlet sets 
  some header by default but doesn't set the 
Content Length header which 
  plays a major part in chunking a response.

I just need to know how 
  to include this header in my response .
Should I Use MessageReceiver 
  Class ?
Or 
Are there some other Class that can manipulate the 
  response to add my own headers
Please let me  know its kind of 
  important.






--- On Tue, 14/4/09, sri ram 
  pinnamaraju_sri...@yahoo.co.in wrote:

  
From: 
sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Re: Getting 
the Content Lenth of The SOAP Response
To: 
axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 5:59 
PM




  
  
Can someone immediately reply for this query.If needed 
  I can provide 
necessary data.Its urgent.

--- On Tue, 
  14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in 
  wrote:

  
From: 
sri ram pinnamaraju_sri...@yahoo.co.in
Subject: 
Getting the Content Lenth of The SOAP Response
To: 
axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 
PM




  
  
Hi all,
(Axis 2.14.) 
In my scenario we 
  need a header mentioning the Content Length of the SOAP 
  response
and we extend AxisServlet ,and do the 
  super.doPost(request,response).
Can some body let me 
  know how to extract the response size .

Thanks, 
  
Sriram 





Connect with friends all over the world. Get Yahoo! India 
  Messenger.


Connect with friends all over the world. Get Yahoo! India 
  Messenger.


From Chandigarh to Chennai - find friends all over India. Click 
here.


  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/

Getting the Content Lenth of The SOAP Response

2009-04-14 Thread sri ram
Hi all,
(Axis 2.14.) 
In my scenario we need a header mentioning the Content Length of the SOAP 
response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 





  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: Getting the Content Lenth of The SOAP Response

2009-04-14 Thread sri ram
Can someone immediately reply for this query.If needed I can provide 
necessary data.Its urgent.

--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 PM

Hi all,
(Axis 2.14.) 
In my scenario we need a header mentioning the Content Length of the SOAP 
response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 




   Connect with friends all over the world.  Get Yahoo! India Messenger.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: HTTP status

2009-02-02 Thread sri ram
Can someone give some insight on this

--- On Mon, 2/2/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:
From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: HTTP status
To: axis-user@ws.apache.org
Date: Monday, 2 February, 2009, 1:55 PM

Hi all,
I am using Axis 2.1.4 and XMLBeans as my databinding.
I have extended AxisServlet .If I get the proper response 
with no exceptions I am getting HTTP status as 200, which is completely
fine but when I get any fault message its sets the status to 500 automatically.
So I have added  the code to set the staus to 200 everytime even if there is an 
exception
but its not working .Does the Axis 2 apis prevent it from setting .

response.setContentType(text/xml; charset=UTF-8);        
response.setStatus(200);

Do help me on this its urgent

Thanks ,
Sriram




   Add more friends to your messenger and enjoy!  Invite them now.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

CDATA section

2009-01-19 Thread sri ram
Hi ,
I am Using XMLBeans  data binding .In my service there is a method that 
executes sql query  mentioned in the request.
So the response is all the rows that the query would give.The only problem is 
when the database column type is xml its adding CDATA tag to the response.
Can anyone suggest a way to eliminate this CDATA tag .

This is high priority for us pls reply soon.

Thanks ,
Sriram P











  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

XMLBeans

2009-01-07 Thread sri ram
Hi all 
When I run WSDL2Java  using XMLBeans as databinding,It generates lot of schema 
binary files.

When we build the entire xsb files and deploy it,It takes 80 minutes.
Can any one suggest a way to reduce this somehow.








  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Need to find an easy way, testing my code

2008-11-05 Thread sri ram
Hi all,
I am  using   Axis 2.0 XMLBeans Databinding for my application .
It creates a lot of files and folders(32000 files and 721 folders )  from my 
given WSDL and Schema .To test my code I need to create an .aar file of these 
generated  files and finally deploy it in the service folder.
So when I test it I find these cases,
1. The request is handled correctly and response is  also correct.No issues 
with this...case
2.The response is different from what I have expected ,so I need to make some 
changes
---Either in the code That I have written .
  So I make the changes in the code  compile the code create an aar file deploy 
in the server and restart it,takes atleast 20 minutes  to do this .

Either in the schema That we have 
So changing the schema 
Changing the code 
Compiling the schema (20 minutes)
Creating the aar  file (20minutes)
And finally testing it.
 

Its quite cumbersome to do this even for small changes ,can anyone please 
provide a way
that would reduce our testing time .

Thanks,
Sriram 












  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: Need to find an easy way, testing my code

2008-11-05 Thread sri ram
 Is there some way to handle this with XMLBeans ,as we have done  most of our 
development work using this databinding .


--- On Wed, 5/11/08, Murali Krishnan [EMAIL PROTECTED] wrote:
From: Murali Krishnan [EMAIL PROTECTED]
Subject: Re: Need to find an easy way, testing my code
To: axis-user@ws.apache.org
Date: Wednesday, 5 November, 2008, 9:29 PM

Have you tried using jaxb2 for databinding? In my experience, I've noticed that 
jaxb2 generates as much as 1/10th the number of files that xmlbeans does. Just 
another option you can investigate...

From: sri ram [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Wednesday, November 5, 2008 4:01:31 AM
Subject: Need to find an easy way, testing my code


Hi all,
I am  using   Axis 2.0 XMLBeans Databinding for my application .
It creates a lot of files and folders(32000 files and 721 folders )  from my 
given WSDL and Schema .To test my code I need to create an .aar file of these 
generated  files and finally deploy it in the service folder.
So when I test it I find these cases,
1. The request is handled correctly and response is  also correct.No issues 
with this...case
2.The response is different from what I have expected ,so I need to make some 
changes
---Either in the code That I have written .
  So I make the changes in the
 code  compile the code create an aar file deploy in the server and restart 
it,takes atleast 20 minutes  to do this .

Either in the schema That we have 
So changing the schema
 
Changing the code 
Compiling the schema (20 minutes)
Creating the aar  file (20minutes)
And finally testing it.
 

Its quite cumbersome to do this even for small changes ,can anyone please 
provide a way
that would reduce our testing time .

Thanks,
Sriram 











   Add more friends to your messenger and enjoy!  Invite them now.


  


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: XMLBeans ? is there a better approach

2008-08-01 Thread sri ram
Hi Amila ,
The other databindings provided by axis2 are ADB and  JIBX 
However XMLBeans provides 100% schema support which is a great advantage of 
using this databinding which may not be there in other databinding's .
So can any one please tell the advantages of other databindings.
Thanks And Regards
Sriram P
 
--- On Fri, 1/8/08, Amila Suriarachchi [EMAIL PROTECTED] wrote:
From: Amila Suriarachchi [EMAIL PROTECTED]
Subject: Re: XMLBeans ? is there a better approach
To: axis-user@ws.apache.org
Date: Friday, 1 August, 2008, 10:56 AM



On Thu, Jul 31, 2008 at 2:31 PM, sri ram [EMAIL PROTECTED] wrote:


Hi all,
 Can anyone give me the better approach of databinding that I have to 
follow for my project.This project  has almost 396 method and can be more in 
the upcoming releases, which are exposed as webservices.

 So while using XMLBeans  as databinding it created many .java and xsb 
files .
These files take ,quite a long time to get compiled and sometimes have 
OutOfMemoryException and we have to set out heap size to get rid of this 
exception.

Once the aar file is deployed into the server and send a SOAP request ,the Axis 
Servlet takes more time to get initialized which is one of the main performance 
drawback.
  So can any one suggest a better databinding to  have better performance  
as a whole A databinding which can give 100% schema support,Quick
 response and Quick initialization of the servlet.
try to use ADB or jaxbri

thanks
Amila. 




Thanks And Regards 
Sriram P
   


.
















   Unlimited freedom, unlimited storage. Get it now



-- 
Amila Suriarachchi,
WSO2 Inc.





  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: XMLBeans ? is there a better approach

2008-08-01 Thread sri ram

Hi David,
   I just wanted to confirm regarding this.
Does the scomp compiler doesn't show any Out of Memory Exeptions?
And Moreover when we use  wsdl2java command we do mention the databinding
using -d option ,if we mention XMLBeans in that option will it not recompile 
the schema.Or is there a way to eliminate the recompiling of the schema .

Would like to know your ideas on this which is of a great help .
Thanks And Regards
Sriram P




--- On Fri, 1/8/08, David Ojeda [EMAIL PROTECTED] wrote:
From: David Ojeda [EMAIL PROTECTED]
Subject: Re: XMLBeans ? is there a better approach
To: axis-user@ws.apache.org
Date: Friday, 1 August, 2008, 3:50 AM

Hello,
I had a similar problem with XMLBeans, but regarding file generation.
The XSDs I used were very big (10k classes), so this caused an 
OutOfMemoryException when doing wsdl2java.
The solution I found was generating the XMLBeans classes in a separate xml with

scomp and using wsdl2java with the -Ewdc option.

Maybe this idea will help you.

On Thursday 31 July 2008 04:31:13 am sri ram wrote:
 Hi all,
  Can anyone give me the better approach of databinding that I have
to
 follow for my project.This project  has almost 396 method and can be more
 in the upcoming releases, which are exposed as webservices. So while using
 XMLBeans  as databinding it created many .java and xsb files . These
files
 take ,quite a long time to get compiled and sometimes have
 OutOfMemoryException and we have to set out heap size to get rid of this
 exception. Once the aar file is deployed into the server and send a SOAP
 request ,the Axis Servlet takes more time to get initialized which is one
 of the main performance drawback. So can any one suggest a better
 databinding to  have better performance  as a whole A databinding which
can
 give 100% schema support,Quick response and Quick initialization of the
 servlet.

 Thanks And Regards
 Sriram P
   


 .














   Unlimited freedom, unlimited storage. Get it now, on
 http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

Axis 2.0 libs ? what all are required

2008-06-19 Thread sri ram
Hi all,
Let me explain the situation.
I have  generated files  using wsdl2java  with XMLBeans as a databind ,now I 
have created a .aar  of  it and deployed it into the tomcat .Now in the lib 
folder what all jar files are required
can any suggest on this.


Thanks ,
Sriram
 


  Share files, take polls, and make new friends - all under one roof. Go to 
http://in.promos.yahoo.com/groups/

changing end point reference

2008-06-11 Thread sri ram
Hi all,
I have got a problem ,presently my service is available at this endpoint
run/services/apiservices
Can i change the endpoint to just 
run/
will I be able to see my services there ,if yes how can I do that ,what all 
changes should i do to the configuration files like axis2.xml

Please guide me on this 
Thanks and Regards
Sriram P


   
-
 Meet people who discuss and share your passions.  Join them now.