RE: Session Managment using .net client..

2009-06-22 Thread Raghu Upadhyayula
HI Amardeep,

 

Here is how you do it in C#.net

 

string url =
http://hostname/webservices/services/MyWSService;;

stub.CookieContainer = new CookieContainer();

stub.Timeout = 1000 * 60 * 60;

stub.Url = url;

 

Thanks

Raghu

 

From: amardeep singh khera [mailto:amardeepsinghkh...@gmail.com] 
Sent: Monday, June 22, 2009 4:00 AM
To: axis-user@ws.apache.org
Subject: Session Managment using .net client..

 

Hi All,

 

I am facing an issue with managing session between  an axis2 java
service and C#.net console client. I am able to manage session between
the same axis2 java service and java client(axis client) by using
following code in my java  client:

 

Service Client client = stub._getServiceClient();

  Options opt = client.getOptions();

  opt.setTimeOutInMilliSeconds(60);

  opt.setManageSession(true);

  client.setOptions(opt);

 

And in my service implementation class I store user details into axis
session using following code

 

MessageContext msgContext = MessageContext.getCurrentMessageContext();

ServiceContext serviceContext =
msgContext.getServiceContext();

serviceContext.setProperty(ROLE_ID, roleId.toString());

serviceContext.setProperty(AUTHENTICATION_STATUS,

authenticationStatus);

serviceContext.setProperty(USER_ID, userId);

msgContext.setServiceContext(serviceContext);

 

This is all working fine for me as long as I am using java client. 

 

Now my other requirement is to develop a C# .net console client for the
same service. So I have generated the proxy class using Microsoft visual
studio from wsdl and written C#.net console client which is working
fine. But now I want to implement session management in a similar way as
I am able to do so in java client. Can anyone please suggest me a way to
do so.

 

Thanks

Amardeep Singh



RE: Session Managment using .net client..

2009-06-22 Thread Raghu Upadhyayula
MyWSService stub = new MyWSWSService();

 

From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Monday, June 22, 2009 9:15 AM
To: axis-user@ws.apache.org
Subject: RE: Session Managment using .net client..

 

how is stub created?

string url = http://hostname/webservices/services/MyWSService;;

stub.CookieContainer = new CookieContainer();

stub.Timeout = 1000 * 60 * 60;

stub.Url = url;

thanks,
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.









Subject: RE: Session Managment using .net client..
Date: Mon, 22 Jun 2009 06:49:21 -0700
From: rupadhyay...@responsys.com
To: axis-user@ws.apache.org

HI Amardeep,

 

Here is how you do it in C#.net

 

string url = http://hostname/webservices/services/MyWSService;;

stub.CookieContainer = new CookieContainer();

stub.Timeout = 1000 * 60 * 60;

stub.Url = url;

 

Thanks

Raghu

 

From: amardeep singh khera [mailto:amardeepsinghkh...@gmail.com] 
Sent: Monday, June 22, 2009 4:00 AM
To: axis-user@ws.apache.org
Subject: Session Managment using .net client..

 

Hi All,

 

I am facing an issue with managing session between  an axis2 java service and 
C#.net console client. I am able to manage session between the same axis2 java 
service and java client(axis client) by using following code in my java  client:

 

Service Client client = stub._getServiceClient();

  Options opt = client.getOptions();

  opt.setTimeOutInMilliSeconds(60);

  opt.setManageSession(true);

  client.setOptions(opt);

 

And in my service implementation class I store user details into axis session 
using following code

 

MessageContext msgContext = MessageContext.getCurrentMessageContext();

ServiceContext serviceContext = msgContext.getServiceContext();

serviceContext.setProperty(ROLE_ID, roleId.toString());

serviceContext.setProperty(AUTHENTICATION_STATUS,

authenticationStatus);

serviceContext.setProperty(USER_ID, userId);

msgContext.setServiceContext(serviceContext);

 

This is all working fine for me as long as I am using java client. 

 

Now my other requirement is to develop a C# .net console client for the same 
service. So I have generated the proxy class using Microsoft visual studio from 
wsdl and written C#.net console client which is working fine. But now I want to 
implement session management in a similar way as I am able to do so in java 
client. Can anyone please suggest me a way to do so.

 

Thanks

Amardeep Singh

 



Insert movie times and more without leaving Hotmail®. See how. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
 



RE: [AXIS2] soap:address location under a Frontend

2009-05-20 Thread Raghu Upadhyayula
Hi Manub,

You can change the hostname in the soap:address location in your
wsdl by specifying the hostname parameter in axis2.xml.

Let me know if this is sufficient for you, if not there is also
a way to change the hostname parameter programmatically.

Thanks
Raghu

-Original Message-
From: manub [mailto:e.bla...@reply.it] 
Sent: Wednesday, May 20, 2009 8:40 AM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] soap:address location under a Frontend


Having some troubles too this way. I hope to be able to patch the jar
myself
:)


Neil Youngman wrote:
 
 There's a suggestion at
 http://archives.devshed.com/forums/showpost.php?p=6965056postcount=6
but
 I couldn't get it to work.
 
 Neil Youngman
 
 
 -Original Message-
 From: manub [mailto:e.bla...@reply.it]
 Sent: Wed 20-May-09 12:02
 To: axis-user@ws.apache.org
 Subject: RE: [AXIS2] soap:address location under a Frontend
  
 
 Maybe I will try it. Thanks.
 
 Another question: if I would manually configure the WSDL to use the
 front-end address (so saving the WSDL and using that modified one
instead
 of
 automatically generate it), how can I do this? I hope to not being too
 much
 OT :)
 
 Thanks (I started using Axis2 only some days ago)
 
 
 Neil Youngman wrote:
 
 I went through this quite recently. Nobody was able to give me a
 solution,
 so I posted a suggested patch at 
 https://issues.apache.org/jira/browse/AXIS2-3843. Are you comfortable
 patching the code yourself?
 
 Neil
 
 
 -Original Message-
 From: manub [mailto:e.bla...@reply.it]
 Sent: Wed 20-May-09 10:35
 To: axis-user@ws.apache.org
 Subject: Re: [AXIS2] soap:address location under a Frontend
  
 
 Thank you Andreas. I saw this issue in Axis2 1.4, but I guess if with
 older
 versions this will work (I'm using 1.2).
 
 No other ways to get it to work, even manually tweaking something?
 
 Thank you.
 
 
 Andreas Veithen-2 wrote:
 
 We are working on this. See AXIS2-3843.
 
 Andreas
 
 On Wed, May 20, 2009 at 11:26, manub e.bla...@reply.it wrote:

 Hi,

 I need to expose some webservices via a front-end (using HTTPS).
 Webservices
 are pyhsically located on a machine with an internal IP address.
I'm
 autogenerating WSDL.

 I tried to set

parameter

name=httpFrontendHostUrlhttps://myFrontend:myPort/myServices/paramet
er

 but in the autogenerated WSDL, still got

 wsdl:service name=myService
 -
 wsdl:port name=myServiceSOAP11port_http
 binding=axis2:myServiceSOAP11Binding
 soap:address

location=http://myInternalIp:myPort/myServices/services/myService/
 /wsdl:port
 -
 wsdl:port name=myServiceSOAP12port_http
 binding=axis2:myServiceSOAP12Binding
 soap12:address

location=http://myInternalIp:myPort/myServices/services/myService/
 /wsdl:port
 -
 wsdl:port name=myServiceHttpport
 binding=axis2:myServiceHttpBinding
 http:address

location=http://myInternalIp:myPort/myServices/services/myService/
 /wsdl:port
 /wsdl:service


 Why isn't the internal IP on the WSDL replaced with the frontend
IP?
 This
 way, clients using this WSDL cannot connect to the webservice as
 they've
 got
 the internal IP address and not the one they should use.

 Another thing: why the protocol is http and not https?

 I'm not so experienced in Axis2.

 Thanks
 --
 View this message in context:

http://www.nabble.com/-AXIS2--soap%3Aaddress-location-under-a-Frontend-t
p23631957p23631957.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 
 
 
 -- 
 View this message in context:

http://www.nabble.com/-AXIS2--soap%3Aaddress-location-under-a-Frontend-t
p23631957p23632085.html
 Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 
  
 
 
 -- 
 View this message in context:

http://www.nabble.com/-AXIS2--soap%3Aaddress-location-under-a-Frontend-t
p23631957p23633294.html
 Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 
 
 

-- 
View this message in context:
http://www.nabble.com/-AXIS2--soap%3Aaddress-location-under-a-Frontend-t
p23631957p23635646.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: [AXIS2] soap:address location under a Frontend

2009-05-20 Thread Raghu Upadhyayula
In my case I just changed it like this

parameter name=hostname locked=truemyFrontEnd/parameter and it worked.

Instead of myFrontEnd if I give the value as http://myFrontEnd then that whole 
string is appearing as it is in the soap:address location and it is showing the 
soap:address location as http://http://myFrontEnd which is wrong, so I've 
changed it to just have the hostname.


-Raghu
-Original Message-
From: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Sent: Wednesday, May 20, 2009 9:12 AM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] soap:address location under a Frontend

While working on AXIS2-3843, I had a closer look at the code and this
is what should work and what doesn't work:

- httpFrontendHostUrl is not supported, neither by the servlet based
HTTP transport, nor by SimpleHTTPServer. It is only used by the JSP
pages of the admin console.
- hostname, when specified at the global level in axis2.xml should
allow to specify the hostname part. This should work with both
transports, but it is not sufficient in this case (because http needs
to be substituted by https).
- hostname, when specified as a parameter of the SimpleHTTPServer
transport receiver, allows to specify the URL. This is not supported
by the servlet based transport.

I think that we should modify both transports to support
httpFrontendHostUrl. The hostname parameter as described in the 2nd
point should remain because it's scope is not limited to the HTTP
transports. The question is what to do with the hostname parameter in
the 3rd option. I think that we should eliminate this one (in favor of
httpFrontendHostUrl) because it is very misleading, both because of
its name (it's not a hostname, but a URL) and because of the existence
of another hostname parameter at the global level. Any thoughts?

Andreas

On Wed, May 20, 2009 at 15:56, manub e.bla...@reply.it wrote:

 I tried, before parameter
 name=httpFrontendHostUrlhttps://myFrontend:myPort/myServices/paramet
 er, to insert a parameter like

 parameter name=hostname
 locked=truehttps://myFrontend:myPort//parameter

 but it still doesn't work. Can you suggest me something? Searching into
 google I know you addressed same problem as mine, some time ago.

 Thanks.


 Raghu Upadhyayula wrote:

 Hi Manub,

       You can change the hostname in the soap:address location in your
 wsdl by specifying the hostname parameter in axis2.xml.

       Let me know if this is sufficient for you, if not there is also
 a way to change the hostname parameter programmatically.

 Thanks
 Raghu

 -Original Message-
 From: manub [mailto:e.bla...@reply.it]
 Sent: Wednesday, May 20, 2009 8:40 AM
 To: axis-user@ws.apache.org
 Subject: RE: [AXIS2] soap:address location under a Frontend


 Having some troubles too this way. I hope to be able to patch the jar
 myself
 :)


 Neil Youngman wrote:

 There's a suggestion at
 http://archives.devshed.com/forums/showpost.php?p=6965056postcount=6
 but
 I couldn't get it to work.

 Neil Youngman


 -Original Message-
 From: manub [mailto:e.bla...@reply.it]
 Sent: Wed 20-May-09 12:02
 To: axis-user@ws.apache.org
 Subject: RE: [AXIS2] soap:address location under a Frontend


 Maybe I will try it. Thanks.

 Another question: if I would manually configure the WSDL to use the
 front-end address (so saving the WSDL and using that modified one
 instead
 of
 automatically generate it), how can I do this? I hope to not being too
 much
 OT :)

 Thanks (I started using Axis2 only some days ago)


 Neil Youngman wrote:

 I went through this quite recently. Nobody was able to give me a
 solution,
 so I posted a suggested patch at
 https://issues.apache.org/jira/browse/AXIS2-3843. Are you comfortable
 patching the code yourself?

 Neil


 -Original Message-
 From: manub [mailto:e.bla...@reply.it]
 Sent: Wed 20-May-09 10:35
 To: axis-user@ws.apache.org
 Subject: Re: [AXIS2] soap:address location under a Frontend


 Thank you Andreas. I saw this issue in Axis2 1.4, but I guess if with
 older
 versions this will work (I'm using 1.2).

 No other ways to get it to work, even manually tweaking something?

 Thank you.


 Andreas Veithen-2 wrote:

 We are working on this. See AXIS2-3843.

 Andreas

 On Wed, May 20, 2009 at 11:26, manub e.bla...@reply.it wrote:

 Hi,

 I need to expose some webservices via a front-end (using HTTPS).
 Webservices
 are pyhsically located on a machine with an internal IP address.
 I'm
 autogenerating WSDL.

 I tried to set

    parameter

 name=httpFrontendHostUrlhttps://myFrontend:myPort/myServices/paramet
 er

 but in the autogenerated WSDL, still got

 wsdl:service name=myService
 -
 wsdl:port name=myServiceSOAP11port_http
 binding=axis2:myServiceSOAP11Binding
 soap:address

 location=http://myInternalIp:myPort/myServices/services/myService/
 /wsdl:port
 -
 wsdl:port name=myServiceSOAP12port_http
 binding=axis2:myServiceSOAP12Binding
 soap12:address

 location=http://myInternalIp:myPort/myServices/services

RE: Re: Axis2: Returning an Object as AnyType - get error

2009-05-11 Thread Raghu Upadhyayula
Hi Boris,

 

You can have the return type as OMElement.  With that you can return
anything you want (it could be a string, date, Boolean or something
else).

 

You'll define it in WSDL like this.

 

any namespace=##targetNamespace minOccurs=0
processContents=lax/

 

 

Thanks

Raghu

From: Boris Klug [mailto:bo...@klg.de] 
Sent: Monday, May 11, 2009 2:44 AM
To: Chinmoy Chakraborty; axis-user@ws.apache.org
Subject: Re: Re: Axis2: Returning an Object as AnyType - get error

 

Hello!

Thank you for your suggestion. I have done it in another case where I
had to return an array of data holder objects. 

Here I realy want to return a String, Integer, Date or Boolean. What I
cant do - but that would be realy ugly - is to create a class like

class ReturnValue {
  public String aString;
  public Integer aInteger;
  public Boolean aBoolean;
}

and only set the value of the type I want to return. It would work - but
its ugly.

So some other hints?

- original Nachricht 

Betreff: Re: Axis2: Returning an Object as AnyType - get error
Gesendet: Mo, 11. Mai 2009
Von: Chinmoy Chakraborty




Hello,

 

I had the same problem when I tried to migrate Axis 1.4 to Axis2 1.4.
Only difference was in my case I was returning Object array (Object[]
which was 2D array, array of arrays).

 

The developers said it works but it didn't work for me. the solution was
to use ComplexTypeArray. If you want to return a complextype, make a
class and use array of that class as return type. e.g. suppose i want to
return names and addresses of people, so i will make class People.

 

class People{

  String name;

  String address;

  int phone_number;

  etc..

}

 

and People[] will be return type and it works perfectly OK. In your case
it will work if you use specific type or complex type instead of Object.

 

Chinmoy

 


 

On Fri, May 8, 2009 at 7:27 PM, Boris Klug bo...@klg.de wrote:

Hi!

We want to migrate a Axis 1.4 webservice to Axis2. The webservice is
generated from a POJO Java class which contains a method like this:

 public Object getData() {
   return a string;
 }

The WSDL generated by Axis2 looks like this:

xs:element name=getDataResponse
  xs:complexType
xs:sequence
  xs:element minOccurs=0
  name=return nillable=true type=xs:anyType/
/xs:sequence
  /xs:complexType
/xs:element

The client is generated from the wsdl using wsdl2java. When I test the
web service with GetDataResponse gdr = stub.getData(); it generates the
following exception:

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Any type element type has not been given
   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
   at package.MyServiceStub.fromOM(ZederbasicServiceStub.java:14738)

The Object returned by getData() can be a String, Integer, Boolean or
Date, no other types. All can be serialized by Axis2.

In Axis 1.4 returning an Object was no problem. I search the mailing
list but found no hint.

Any ideas how I can get this to work?

Thank you in advance.


--
Boris Klug, Koblenz, bo...@klg.de, Fax: 0261-1334249




--- original Nachricht Ende 



RE: What is the status of Axis?

2009-05-04 Thread Raghu Upadhyayula
Florian,

I guess there is no development on Axis after the 1.4 release.
There is a new version of Axis called Axis2 and right now it is in
release 1.4.1,  you can get more details on Axis2 at
http://ws.apache.org/axis2/

Thanks
Raghu

-Original Message-
From: Florian Kirchhoff [mailto:florian.kirchh...@qwest.com] 
Sent: Monday, May 04, 2009 2:22 PM
To: axis-user@ws.apache.org
Subject: What is the status of Axis?


Hi,

since the last release of Axis (Axis 1) was 1.4 in november 2006 what is
the
status of 
development on Axis? Is it in bugs-fix-only mode?

Thanks,

Florian 

-- 
View this message in context:
http://www.nabble.com/What-is-the-status-of-Axis--tp23374857p23374857.ht
ml
Sent from the Axis - User mailing list archive at Nabble.com.



RE: [Axis2] Setting hostname in axis2.xml ????` - WORKS NOW --- THANKS

2009-04-11 Thread Raghu Upadhyayula
Thanks Sagara, After adding the class parameter to the service tag, it is 
working.

Thanks
Raghu

-Original Message-
From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Sent: Thursday, April 09, 2009 11:56 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Setting hostname in axis2.xml  - NOT WORKING

Hi Raghu,
You have missed 3rd step that i mentioned, you should add class
parameter to your service.xml file as follows.

 service name=ResponsysWSService
class=com.rsys.ws.ResponsysWSServiceSkeleton

Hope this will resolve your problem.

Thanks ,



On Fri, Apr 10, 2009 at 1:56 AM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi Sagara,

        Attached is my skeleton class  service.xml files.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Thursday, April 09, 2009 1:37 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml  - NOT WORKING

 Hi Raghu,
 Can you post your skeleton class along with service.xml file?

 Thanks,

 On Thu, Apr 9, 2009 at 11:59 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi Sagara,

        I have a skeleton class generated from WSDL2Java.  I've changed that 
 skeleton class to implement the ServiceLifeCycle interface  implemented the 
 startup method.

        Looks like that startup method is never called, because after that 
 change also I'm getting a private IP address in the soap:address location in 
 WSDL.  I've put a debug point in the startup method  the control never 
 stopped at the debug point.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Tuesday, April 07, 2009 2:36 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml 

 Hi Raghu ,
 You can use same hostname parameter  programatically either  in
 service level or module level . one possible approach is given below .

 1. Implement the  ServiceLifeCycle interface within your service
 class or as a separate class .

 2. set the  value to hostname parameter within the startUp ( ...) method.

        axisService.getAxisConfiguration().addParameter(hostname,
 myhost.com);

 3. add your LifeCycle class to service.xml file.

    service name=SimpleService class=LifeCycleClassName


 Thanks


 On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


RE: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING

2009-04-10 Thread Raghu Upadhyayula
But if you see the services.xml it already has the class parameter defined as a 
parameter name ServiceClass (see below), instead of as an attribute in the 
service/ tag.  Isn't that sufficient.

service name=ResponsysWSService
messageReceivers
messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; 
class=com.rsys.ws.ResponsysWSServiceMessageReceiverInOut/
/messageReceivers
parameter 
name=ServiceClasscom.rsys.ws.ResponsysWSServiceSkeleton/parameter
parameter name=useOriginalwsdltrue/parameter
parameter name=modifyUserWSDLPortAddresstrue/parameter



Thanks
Raghu

-Original Message-
From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Sent: Thursday, April 09, 2009 11:56 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Setting hostname in axis2.xml  - NOT WORKING

Hi Raghu,
You have missed 3rd step that i mentioned, you should add class
parameter to your service.xml file as follows.

 service name=ResponsysWSService
class=com.rsys.ws.ResponsysWSServiceSkeleton

Hope this will resolve your problem.

Thanks ,



On Fri, Apr 10, 2009 at 1:56 AM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi Sagara,

        Attached is my skeleton class  service.xml files.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Thursday, April 09, 2009 1:37 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml  - NOT WORKING

 Hi Raghu,
 Can you post your skeleton class along with service.xml file?

 Thanks,

 On Thu, Apr 9, 2009 at 11:59 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi Sagara,

        I have a skeleton class generated from WSDL2Java.  I've changed that 
 skeleton class to implement the ServiceLifeCycle interface  implemented the 
 startup method.

        Looks like that startup method is never called, because after that 
 change also I'm getting a private IP address in the soap:address location in 
 WSDL.  I've put a debug point in the startup method  the control never 
 stopped at the debug point.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Tuesday, April 07, 2009 2:36 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml 

 Hi Raghu ,
 You can use same hostname parameter  programatically either  in
 service level or module level . one possible approach is given below .

 1. Implement the  ServiceLifeCycle interface within your service
 class or as a separate class .

 2. set the  value to hostname parameter within the startUp ( ...) method.

        axisService.getAxisConfiguration().addParameter(hostname,
 myhost.com);

 3. add your LifeCycle class to service.xml file.

    service name=SimpleService class=LifeCycleClassName


 Thanks


 On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


RE: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING

2009-04-09 Thread Raghu Upadhyayula
Hi Sagara,

I have a skeleton class generated from WSDL2Java.  I've changed that 
skeleton class to implement the ServiceLifeCycle interface  implemented the 
startup method.

Looks like that startup method is never called, because after that 
change also I'm getting a private IP address in the soap:address location in 
WSDL.  I've put a debug point in the startup method  the control never stopped 
at the debug point.

Thanks
Raghu

-Original Message-
From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Sent: Tuesday, April 07, 2009 2:36 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Setting hostname in axis2.xml 

Hi Raghu ,
You can use same hostname parameter  programatically either  in
service level or module level . one possible approach is given below .

1. Implement the  ServiceLifeCycle interface within your service
class or as a separate class .

2. set the  value to hostname parameter within the startUp ( ...) method.

axisService.getAxisConfiguration().addParameter(hostname,
myhost.com);

3. add your LifeCycle class to service.xml file.

service name=SimpleService class=LifeCycleClassName


Thanks


On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


RE: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING

2009-04-09 Thread Raghu Upadhyayula
Hi Sagara,

Attached is my skeleton class  service.xml files.

Thanks
Raghu

-Original Message-
From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Sent: Thursday, April 09, 2009 1:37 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Setting hostname in axis2.xml  - NOT WORKING

Hi Raghu,
Can you post your skeleton class along with service.xml file?

Thanks,

On Thu, Apr 9, 2009 at 11:59 PM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi Sagara,

        I have a skeleton class generated from WSDL2Java.  I've changed that 
 skeleton class to implement the ServiceLifeCycle interface  implemented the 
 startup method.

        Looks like that startup method is never called, because after that 
 change also I'm getting a private IP address in the soap:address location in 
 WSDL.  I've put a debug point in the startup method  the control never 
 stopped at the debug point.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Tuesday, April 07, 2009 2:36 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml 

 Hi Raghu ,
 You can use same hostname parameter  programatically either  in
 service level or module level . one possible approach is given below .

 1. Implement the  ServiceLifeCycle interface within your service
 class or as a separate class .

 2. set the  value to hostname parameter within the startUp ( ...) method.

        axisService.getAxisConfiguration().addParameter(hostname,
 myhost.com);

 3. add your LifeCycle class to service.xml file.

    service name=SimpleService class=LifeCycleClassName


 Thanks


 On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/
?xml version=1.0 encoding=UTF-8?
!-- This file was auto-generated from WSDL --
!-- by the Apache Axis2 version: 1.4  Built on : Apr 26, 2008 (06:24:30 EDT) --
serviceGroup
service name=ResponsysWSService
messageReceivers
messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=com.rsys.ws.ResponsysWSServiceMessageReceiverInOut/
/messageReceivers
parameter name=ServiceClasscom.rsys.ws.ResponsysWSServiceSkeleton/parameter
parameter name=useOriginalwsdltrue/parameter
parameter name=modifyUserWSDLPortAddresstrue/parameter
operation name=login mep=http://www.w3.org/ns/wsdl/in-out; namespace=urn:ws.rsys.com
actionMapping\\/actionMapping
outputActionMappingurn:ws.rsys.com:ResponsysWS:loginResponse/outputActionMapping
faultActionMapping faultName=AccountFaulturn:ws.rsys.com:ResponsysWS:login:Fault:AccountFault/faultActionMapping
faultActionMapping faultName=UnexpectedErrorFaulturn:ws.rsys.com:ResponsysWS:login:Fault:UnexpectedErrorFault/faultActionMapping
/operation
operation name=logout mep=http://www.w3.org/ns/wsdl/in-out; namespace=urn:ws.rsys.com
actionMapping\\/actionMapping
outputActionMappingurn:ws.rsys.com:ResponsysWS:logoutResponse/outputActionMapping
faultActionMapping faultName=UnexpectedErrorFaulturn:ws.rsys.com:ResponsysWS:logout:Fault:UnexpectedErrorFault/faultActionMapping
/operation
operation name=createFolder mep=http://www.w3.org/ns/wsdl/in-out; namespace=urn:ws.rsys.com
actionMapping\\/actionMapping
outputActionMappingurn:ws.rsys.com:ResponsysWS:createFolderResponse/outputActionMapping
faultActionMapping faultName=UnexpectedErrorFaulturn:ws.rsys.com:ResponsysWS:createFolder:Fault:UnexpectedErrorFault/faultActionMapping
faultActionMapping faultName=FolderFaulturn:ws.rsys.com:ResponsysWS:createFolder:Fault:FolderFault/faultActionMapping
/operation
operation name=listFolders mep=http://www.w3.org/ns/wsdl/in-out; namespace=urn:ws.rsys.com
actionMapping\\/actionMapping
outputActionMappingurn:ws.rsys.com:ResponsysWS:listFoldersResponse/outputActionMapping
faultActionMapping faultName=UnexpectedErrorFaulturn:ws.rsys.com:ResponsysWS:listFolders:Fault:UnexpectedErrorFault/faultActionMapping
/operation
operation name=deleteFolder mep=http://www.w3.org/ns/wsdl/in-out; namespace

[Axis2] Setting hostname in axis2.xml ????

2009-04-07 Thread Raghu Upadhyayula
Hi,

 

I'm using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
that the soap:address location in the WSDL (when user types ?wsdl) uses
that hostname instead of showing a IP address.

 

The problem I have is that my webservices war file is deployed on
multiple servers and I can't manually edit each axis2.xml file for each
server.

 

Is there any option to read the server name from some properties file 
set it to the hostname in axis2.xml programmatically?

 

Thanks

Raghu



RE: [Axis2] Setting hostname in axis2.xml ????

2009-04-07 Thread Raghu Upadhyayula
Hi Sagara,

I have a skeleton class generated from WSDL2Java.  I've changed that 
skeleton class to implement the ServiceLifeCycle interface  implemented the 
startup method.

Looks like that startup method is never called, because after that 
change also I'm getting a private IP address in the soap:address location in 
WSDL.  I've put a debug point in the startup method  the control never stopped 
at the debug point.

Thanks
Raghu

-Original Message-
From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Sent: Tuesday, April 07, 2009 2:36 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Setting hostname in axis2.xml 

Hi Raghu ,
You can use same hostname parameter  programatically either  in
service level or module level . one possible approach is given below .

1. Implement the  ServiceLifeCycle interface within your service
class or as a separate class .

2. set the  value to hostname parameter within the startUp ( ...) method.

axisService.getAxisConfiguration().addParameter(hostname,
myhost.com);

3. add your LifeCycle class to service.xml file.

service name=SimpleService class=LifeCycleClassName


Thanks


On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


[Axis2] Is there anyway to set the hostname programatically at runtime?

2009-03-09 Thread Raghu Upadhyayula
Hi,

 

I'm using Axis2 1.4 version.

 

In axis2.xml there is a parameter named hostname

 

!-- Following parameter will set the host name for the epr--

!--parameter name=hostname
locked=truemyhost.com/parameter--

 

Is there a way to set this hostname parameter programmatically at
runtime?

 

The requirement I have is that I have to set a different hostname for
each server where my webservices is deployed and I don't want to edit
each of those axis2.xml files in the corresponding war files.

 

I'll have a hostname defined in some property file  I have to read it
at runtime  set it to this hostname parameter programmatically.

 

Thanks

Raghu



RE: Session cookie in ADB client HTTP request

2009-01-28 Thread Raghu Upadhyayula
Hi Jason,

Try this ...

 
stub._getServiceClient().getOptions().setManageSession(true);

Thanks
Raghu

-Original Message-
From: Jason Wells [mailto:ja...@wells.me] 
Sent: Tuesday, January 27, 2009 5:14 PM
To: axis-user@ws.apache.org
Subject: Session cookie in ADB client HTTP request 

Hi,

I used wsdl2java to generate an ADB client that goes against a  
stateful service in Axis2. When I call service operations with the  
client, the JSESSIONID that the server sends in the HTTP responses  
aren't maintained in its requests, so the server opens a new session  
with each request. How can I configure the client to maintain the  
session? In other words, I want to do what it looks like you can do in  
Axis1 with these settings:

Stub.setMaintainSession(true);
Stub._setProperty(Call.SESSION_MAINTAIN_PROPERTY, new Boolean(true));

Thanks,
Jason



RE: Permission Denied - Attachments

2008-12-22 Thread Raghu Upadhyayula
John,

Which version of Axis are you using?

Thanks
Raghu

-Original Message-
From: John B. Moore [mailto:j...@esonicspider.com] 
Sent: Monday, December 22, 2008 10:57 AM
To: axis-user@ws.apache.org
Subject: Re: Permission Denied - Attachments

It seems to boil down to where the property

attachments.Directory

..is set..

So far I can't find that place or any documentation of where that 
might be set/defined/etc..

Any pointers will be very much appreciated..

John..


RE: Permission Denied - Attachments

2008-12-22 Thread Raghu Upadhyayula
John,

From the name of the property (attachments.Directory) it looks
like you are using Axis 1.x (either 1.3 or 1.4).  In that case this
property will be in the server-config.wsdd file.

Thanks
Raghu

-Original Message-
From: John B. Moore [mailto:j...@esonicspider.com] 
Sent: Monday, December 22, 2008 10:57 AM
To: axis-user@ws.apache.org
Subject: Re: Permission Denied - Attachments

It seems to boil down to where the property

attachments.Directory

..is set..

So far I can't find that place or any documentation of where that 
might be set/defined/etc..

Any pointers will be very much appreciated..

John..


RE: Permission Denied - Attachments

2008-12-22 Thread Raghu Upadhyayula
Hi John,

I'm not sure what path axis sees as its root directory, in my
previous project I've given a full path like /usr/local/temp/attachments
and I suggest to do the same thing ...

Thanks
Raghu

-Original Message-
From: John B. Moore [mailto:j...@esonicspider.com] 
Sent: Monday, December 22, 2008 1:20 PM
To: axis-user@ws.apache.org
Subject: Re: Permission Denied - Attachments

Raghu Upadhyayula wrote:
 John,
 
   From the name of the property (attachments.Directory) it looks
 like you are using Axis 1.x (either 1.3 or 1.4).  In that case this
 property will be in the server-config.wsdd file.


Ah, thanks, found it...

Next question..  The property is:

  parameter name=attachments.Directory value=./attachments/

So what does Axis see as its root directory so that I can create that 
folder,  OR is it best just to put a hard coded path like

/usr/local/tomcat/temp

??

(Remember this is Tomcat 5.5.x on CentOS 4.7)

Thanks..

John..



 
 Thanks
 Raghu
 
 -Original Message-
 From: John B. Moore [mailto:j...@esonicspider.com] 
 Sent: Monday, December 22, 2008 10:57 AM
 To: axis-user@ws.apache.org
 Subject: Re: Permission Denied - Attachments
 
 It seems to boil down to where the property
 
 attachments.Directory
 
 ..is set..
 
 So far I can't find that place or any documentation of where that 
 might be set/defined/etc..
 
 Any pointers will be very much appreciated..
 
 John..
 
 



RE: listServices issue

2008-12-18 Thread Raghu Upadhyayula
Hi Shah,

The listServices will only work if you have the axis2-web folder
which comes with the Axis2 webapp in your war at the same level of
WEB-INF, because the listServices functionality in AxisServlet is
referring a jsp file (listServices.jsp) which is inside axis2-web
folder.

Thanks
Raghu

-Original Message-
From: Shah Asrani [mailto:shahasr...@gmail.com] 
Sent: Thursday, December 18, 2008 11:19 AM
To: axis-user@ws.apache.org
Subject: Re: listServices issue

yes, I must have missed something. I can even do ?wsdl on the service
and get wsdl.  really weird. I will try do some more debugging and may
be I can find out what is wrong.

On Thu, Dec 18, 2008 at 11:40 AM, Deepal jayasinghe deep...@gmail.com
wrote:
 Shah Asrani wrote:
 I have deployed a web service dynamically in Axis2.  The web service
 works fine.  When client make a call, web service is found and a
 response is returned.  However, if I use the url to list the
services,
 it returns nothing:
 http://localhost:8080/mycontext/services/listServices
 it is weird  :), if you can access the service then it should be list
under the available services. May be you have missed something.

 Deepal

 Any Ideas?

 Shah Asrani




 --
 Thank you!


 http://blogs.deepal.org
 http://deepal.org




RE: [Axis2] excludeOperations in services.xml problem

2008-12-11 Thread Raghu Upadhyayula
Hi,

 

I have a webservices (written in Java) with several operations.  I want
to exclude couple of operations from that.  I've used the
excludeOperations tag in services.xml as shown below.  I'm using Axis2
1.4.

 

excludeOperations

operationcopy/operation

operationmove/operation

/excludeOperations

 

After restarting the app server when I see view the WSDL in the browser,
I still see these 2 operations  also I was able to access those
operations from the Java client.

 

Thanks

Raghu



[Axis2] excludeOperations in services.xml problem

2008-12-02 Thread Raghu Upadhyayula
Hi,

 

I have a webservices (written in Java) with several operations.  I want
to exclude couple of operations from that.  I've used the
excludeOperations tag in services.xml as shown below

 

excludeOperations

operationcopy/operation

operationmove/operation

/excludeOperations

 

After restarting the app server when I see view the WSDL in the browser,
I still see these 2 operations  also I was able to access those
operations from the Java client.

 

Thanks

Raghu



RE: [Axis2] excludeOperations in services.xml problem

2008-12-02 Thread Raghu Upadhyayula
I'm using Axis2 1.4
 
-Raghu



From: Afkham Azeez [mailto:[EMAIL PROTECTED]
Sent: Tue 12/2/2008 6:22 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] excludeOperations in services.xml problem


What is the Axis2 version you are using?

Azeez


On Tue, Dec 2, 2008 at 8:30 PM, Raghu Upadhyayula [EMAIL PROTECTED] wrote:


Hi,

 

I have a webservices (written in Java) with several operations.  I want 
to exclude couple of operations from that.  I've used the excludeOperations 
tag in services.xml as shown below

 

excludeOperations

operationcopy/operation

operationmove/operation

/excludeOperations

 

After restarting the app server when I see view the WSDL in the 
browser, I still see these 2 operations  also I was able to access those 
operations from the Java client.

 

Thanks

Raghu




-- 
Thanks
Afkham Azeez

Blog: http://afkham.org http://afkham.org/ 
Developer Portal: http://www.wso2.org http://www.wso2.org/ 
WSAS Blog: http://wso2wsas.blogspot.com http://wso2wsas.blogspot.com/ 
Company: http://wso2.com http://wso2.com/ 
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

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

RE: Returning Multiple values

2008-12-01 Thread Raghu Upadhyayula
Hi Harikrishna,

 

My suggestion is to use a Java bean instead of an object
array.

 

Thanks

Raghu

 



From: Chinmoy Chakraborty [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 01, 2008 5:43 AM
To: axis-user@ws.apache.org
Subject: Re: Returning Multiple values

 

You can do that using object array...e,g.

 

Object[] obj = new Object[3];

obj[0] = name;

obj[1] = location;

obj[2] = address.and so on..

 

From the client end you can get the corresponding values from the
respective location of the object array

 

HTH

Chinmoy

On Mon, Dec 1, 2008 at 4:23 PM, Harikrishna Vemula
[EMAIL PROTECTED] wrote:

 

Sorry, may be my question was not clear, the method has to return
multiple variables (ex. name, location, etc...)
Thanks in advance

 

-hari

 

On Mon, Dec 1, 2008 at 3:54 PM, Chinmoy Chakraborty [EMAIL PROTECTED]
wrote:

You can use object array for different values if you are using axis 1.x
...

 

Chinmoy

On Mon, Dec 1, 2008 at 3:42 PM, Harikrishna Vemula
[EMAIL PROTECTED] wrote:

Hi 

  I have a requirement, in that some methods will return multiple
values. So, which one is good whether to use Holders or to use a java
bean as return type?

I'm using axis 1.1 as my current product is still running on that...

-- 
Hari Krishna Vemula

 





 



RE: WSDL2Java generated a big stub file. How to generate multiple small ones?

2008-11-11 Thread Raghu Upadhyayula
Gus,

Use the -u option in WSDL2Java.

-u  Unpacks the databinding classes

Thanks
Raghu

-Original Message-
From: Gus [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 11, 2008 12:15 PM
To: axis-user@ws.apache.org
Subject: WSDL2Java generated a big stub file. How to generate multiple
small ones?


Hi everyone,

I am very new on Axis2 and WS. Hope someone can help me. I used a wsdl
file
to generate a client stub file (Eclipse IDE), but the stub file is very
big,
about 60,000 line. All sub-classes are static in the stub, e.g. request,
response, binding class:
public static class StudyInterval implements
org.apache.axis2.databinding.ADBBean.

Does anybody know how to generate each individual class, or it has to be
the
big stub? Thanks a lot in advance! Any helps are appreciatable?

Sheng
-- 
View this message in context:
http://www.nabble.com/WSDL2Java-generated-a-big-stub-file.-How-to-genera
te-multiple-small-ones--tp20445169p20445169.html
Sent from the Axis - User mailing list archive at Nabble.com.


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


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



[Axis2] Setting httpFrontendHostUrl programatically.

2008-10-08 Thread Raghu Upadhyayula
Hi,

 

The property httpFrontendHostUrl which is defined in axis2.xml, can it
be set programmatically?  If so how?

 

Thanks

Raghu

 



Asynchronous web services

2008-09-26 Thread Raghu Upadhyayula
Hi,

 

I have a question about Asynchronous web services.



Can a Web Service client use asynchronous style when the Web
Service server is using synchronous style?



Here's an example:

I have a Web Service that is developed to work in a
synchronous style (generated the server side code using WSDL2Java with
-s option).



Can I create the Web Service client to work in asynchronous
style (generate the client side code using WSDL2Java with -a option)?

 

Thanks

Raghu



RE: org.apache.axis2.databinding.ADBException: Unexpected subelement SessionID

2008-06-05 Thread Raghu Upadhyayula
Hi Jyotsna,

 

Use tcpmon to see what request you are sending  what is the
response you are receiving back from the webservice and post it to the
forum so that we can take a look at it and see if the request / response
has any issue.

 

Thanks

Raghu



From: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 9:34 AM
To: axis-user@ws.apache.org
Subject: RE: org.apache.axis2.databinding.ADBException: Unexpected
subelement SessionID

 

Please anybody help me... How can I read data using the stub classes ?



--- On Thu, 5/6/08, Jyotsna Varma [EMAIL PROTECTED] wrote:

From: Jyotsna Varma [EMAIL PROTECTED]
Subject: RE: org.apache.axis2.databinding.ADBException:
Unexpected subelement SessionID
To: axis-user@ws.apache.org
Date: Thursday, 5 June, 2008, 9:43 PM


please find the attached stub class
--- On Thu, 5/6/08, Perez Arbulu, Ibai [EMAIL PROTECTED]
wrote:

From: Perez Arbulu, Ibai [EMAIL PROTECTED]
Subject: RE: org.apache.axis2.databinding.ADBException: Unexpected
subelement SessionID
To: [EMAIL PROTECTED], axis-user@ws.apache.org
Date: Thursday, 5 June, 2008, 8:23 PM

The Stub itself.

 



De: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 05 de junio de 2008 16:51
Para: Perez Arbulu, Ibai; axis-user@ws.apache.org
Asunto: RE: org.apache.axis2.databinding.ADBException: Unexpected
subelement SessionID

 

Thanks for the response.

 

I am not sure which part of the code you required. Let me explain the
background.

I am using java1.5,tomcat5.5.17 for the web application I am developing,
rather already developed. I am trying to integrate an external
application. I have got the wsdl url which they have provided. I used
axis2 1.3 wsdl2java to generate stub classes. I have copied those stub
classed to the director (I am using netbeans) which application resides.


From one of class I am trying to accesss the methods from stub class
(just to test).

Stub class is bigger in size. Also to be honest I am not sure which are
the classes I need to access the external application's database (thats
what i want to do exactly).

 

Can you tell me which class you need to see ?



--- On Thu, 5/6/08, Perez Arbulu, Ibai  [EMAIL PROTECTED] 
wrote:

From: Perez Arbulu, Ibai  [EMAIL PROTECTED] 
Subject: RE: org.apache.axis2.databinding.ADBException:
Unexpected subelement SessionID
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Thursday, 5 June, 2008, 8:10 PM

Show your code. the involved part at least

 





De: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 05 de junio de 2008 16:38
Para: axis-user@ws.apache.org
Asunto: Re: org.apache.axis2.databinding.ADBException:
Unexpected subelement SessionID

 

Can anybody please help me on this?



--- On Thu, 5/6/08, Jyotsna Varma [EMAIL PROTECTED] wrote:

From: Jyotsna Varma [EMAIL PROTECTED]
Subject: org.apache.axis2.databinding.ADBException: Unexpected
subelement SessionID
To: axis-user@ws.apache.org
Date: Thursday, 5 June, 2008, 6:57 PM

Hi,

 

When I try to access the stub class methods, I get the exception

org.apache.axis2.databinding.ADBException: Unexpected subelement
SessionID

 

Please anyone have an idea what the error is this ?

 

Thanks,

 





Sent from Yahoo! Mail
http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.c
om/evt=52418/*http:/uk.docs.yahoo.com/nowyoucan.html . 
A Smarter Email.

 





Sent from Yahoo! Mail
http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.c
om/evt=52418/*http:/uk.docs.yahoo.com/nowyoucan.html . 
A Smarter Email.

 



Sent from Yahoo! Mail
http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.c
om/evt=52418/*http:/uk.docs.yahoo.com/nowyoucan.html . 
A Smarter Email.

 





Sent from Yahoo! Mail
http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.c
om/evt=52418/*http:/uk.docs.yahoo.com/nowyoucan.html . 
A Smarter Email.


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

 



Sent from Yahoo! Mail
http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.c
om/evt=52418/*http:/uk.docs.yahoo.com/nowyoucan.html . 
A Smarter Email.



RE: AXIS2: ADB: Namespace Optimization or removal??

2008-04-30 Thread Raghu Upadhyayula
If you are using Java then use the -sp option in WSDL2Java when you are
generating your stubs.

 

 

Thanks

Raghu

 



From: Youtsey, Sean J CTR NAVSEA KPWA [mailto:[EMAIL PROTECTED]

Sent: Wednesday, April 30, 2008 12:44 PM
To: axis-user@ws.apache.org
Subject: AXIS2: ADB: Namespace Optimization or removal??

 

I am using AXIS2 (1.3) with ADB as the data binding and am trying to
reduce the size of the XML message being sent across the wire (already
using gzip compression option).

The first question I have is related to namespace optimization...I think
I have seen mention of it, but am unable to find anything related.  It
seems namespaces are printed out many times where they could be defined
once (at a higher element) and referenced.  Is there a flag or parameter
to set to enable this?

The second question is I would like to have the option to remove
namespaces altogether, without having to create a different WSDL and
associated schemas.  If I trimmed out namespaces from the resulting XML
document, would drastically decrease the size.  Is there a flag or
parameter to allow for this?

Thanks in advance for your help! 

- Sean 



RE: How to know how the data is passing between client and server.

2008-04-10 Thread Raghu Upadhyayula
You can use tcpmon to see the SOAP requests  responses.

You can download tcpmon from https://tcpmon.dev.java.net/

Thanks
Raghu

-Original Message-
From: Tikayatray, Lokajit [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 3:10 PM
To: axis-user@ws.apache.org
Subject: How to know how the data is passing between client and server.


Hi all,
I am a newbie to this web service. I have a doubt regarding the way the
data is being passed between client and the server.
My doubt is, how can I find out how my data from client is getting
passed to my server i.e. whether the data is getting serialized or it is
passing as binary data.

Thanks and Regards
Lokajit Tikayatray

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


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



RE: Converting array of objects to OMElement

2008-04-10 Thread Raghu Upadhyayula
Hi Lokajit,

Someone in the forum replied to this some days ago ... here's
the link which tell you how to convert a Java bean to OMELement ...

http://wso2.org/library/332

Thanks
Raghu

-Original Message-
From: Tikayatray, Lokajit [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 4:52 PM
To: axis-user@ws.apache.org
Subject: Converting array of objects to OMElement


Hi All,
I have an array of java custom objects. I need to convert them to
OMElements. Can anybody help me in this regard.
Sample code or any helpful link is much appreciated.


Thanks and Regards
Lokajit Tikayatray

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


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



Is it possible to point multiple WSDL's to the same Service class?

2008-03-27 Thread Raghu Upadhyayula
Is it possible to point multiple WSDL's to the same Service class?

 

Thanks

Raghu



[Axis2] Managing Sessions (using JSESSIONID) between 2 webservices deployed within in the same application (war file)

2008-03-18 Thread Raghu Upadhyayula
Hi,

 

I have 2 webservices deployed within the same application (same war
file).



I want to manage sessions between these 2 webservices (using the
setManageSession method).  I want the JSESSIONID to be used in all the
requests.  It works fine if I have 1 service.



Here is my scenario.

1.  FirstService has a login method (takes username   password as
parameters).

 I authenticate the user  create a session, store this session
in ConfigurationContext 

2.  SecondService has other methods which are executed for the user
who has logged into our system using the login method in the
FirstService.



Problem:

If I use just one service, my first response is having a JSESSIONID
and all the subsequent requests will have the same JSESSIONID.

But, if I use 2 services (in one war file), I'm not getting a
JSESSIONID.



Does anyone have seen such a case before  has a solution it?

 

Thanks

Raghu



RE: Repeated xmlns Question

2008-03-10 Thread Raghu Upadhyayula
Alejandro,

There is an option in WSDL2Java to suppress the repeated xmlns
declarations on child elements.

Use the -sp option with your WSDL2Java.

-sp   Suppress namespace prefixes (Optimzation that reduces size of soap
request/response)

Thanks
Raghu

-Original Message-
From: Alejandro Calbazana [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 10, 2008 7:07 AM
To: axis-user@ws.apache.org
Subject: Repeated xmlns Question

Hello,

Quick question...  In the interest of keeping my xml messages relatively

small, I'd like to know if there is a way to suppress repeated xmlns 
declarations on child elements.  I guess Axis2 does this from the 
perspective of processing messages efficiently, but if there is a way to

economize the size of a message while maintaining interoperability, I'd 
be interested in hearing about it.

Thanks,

Alejandro

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


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



RE: [Axis2] What is the difference between various Timeouts?

2008-02-20 Thread Raghu Upadhyayula
Hi,

 

Can anyone let me know the difference between the below 3 timeouts
(Axis2 1.3).  Are they same?

 

1)
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(timeoutIn
MilliSeconds);

2)
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.trans
port.http.HttpConstants.SO_TIMEOUT, timeoutInMilliSeconds);

3)
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.trans
port.http.HttpConstants.CONNECTION_TIMEOUT, timeoutInMilliSeconds);

 

Thanks

Raghu



[Axis2] Deploying multiple services under single web app (single war file)

2008-02-20 Thread Raghu Upadhyayula
Hi,

 

I'm using Axis2 1.3.  Is it possible to deploy multiple services under
single web application (I mean using single war file).

 

Here's my scenario.

 

Current situation:

Currently I have a webservice with multiple methods (one of them being
the login method).  The clients of my webservice will first call the
login method with username  password, I'll authenticate them and return
a session id in the response.  The clients use that session id (pass it
in the soap header) in all the subsequent calls within that session.

 

I want it to be changed something like this: 

I want to make the login method as a separate webservice and all the
other remaining methods in the existing webservice.  So that the clients
will call the login method (with username  password), I'll return
session id and the clients will use that session id to invoke other
webservice methods.

 

I wanted it like this because in future I'll create another webservice
which has a certificate based authentication (currently it is password
based authentication) and that webservice will authenticate the client
and also return a session id and the clients will use that session id to
invoke the other webservice methods.

 

Questions: 

1.   Is this possible with Axis2?

2.   If yes, then how should I do it?

3.   Should there be separate WSDL's, axis2.xml's, services.xml's
for each of the webservices?

4.   How to generate client stubs for such a scenario?

5.   Can the same wsdl file work for different webservices?

 

Note:  I've tried creating a serviceGroup in the service.xml but it
didn't work for me.

 

Thanks

Raghu



RE: How do I add an issue in Jira for Axis2?

2008-02-20 Thread Raghu Upadhyayula
Tom,

 

The JIRA website is https://issues.apache.org/jira/



If you already have an account, login with your username 
password and you can see a menu item on top which says Create a new
issue.



If you don't have an account, you can signup for one and do
the same thing.

 

Thanks

Raghu

 



From: Tom Chappell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 20, 2008 5:43 PM
To: axis-user@ws.apache.org
Subject: How do I add an issue in Jira for Axis2?

 

I'm sorry, I'm probably blind, but I did look for a way to do it for an
awfully long time.  I can see the Jira page, and search for issues, and
see all kinds of report options, but don't see a link for creating a new
issue.  So, how do I do it?  Thanks!



RE: Timeout error during web service call

2008-02-13 Thread Raghu Upadhyayula
Raj,

Try setting
serviceClient.getOptions().setTimeOutInMilliSeconds(timeoutInMilliSecond
s);

Thanks
Raghu

-Original Message-
From: Raj [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 1:24 PM
To: axis-user@ws.apache.org
Subject: Timeout error during web service call

Hello All,

The web service call errors out with timeout message.
We are using axis2. I am able to see the wsdl on the
browser using the
same url:
http://servername/webapp/services/ServiceName?wsdl


Here is the code section where it times out:

RPCServiceClient serviceClient = new
RPCServiceClient();
serviceClient.getOptions().setTo( new
EndpointReference( getServerAddress() ) );
QName saveFile = new QName( http://servername/;,
saveFile );
Object[] response = serviceClient.invokeBlocking(
saveFile, new Object[] {token}, new Class[]
{Integer.class} );

Any ideas?

Thanks in advance,
Raj

==
Here is the stack trace for the:

Timed out: 
http://servername/webapp/services/ServiceName?wsdl
org.apache.axis2.AxisFault: Read timed out
at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
95)
at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:327)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:206)
at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:374)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
at


Caused by: java.net.SocketTimeoutException: Read timed
out
at
java.net.SocketInputStream.socketRead0(Native Method)
at
java.net.SocketInputStream.read(SocketInputStream.java:129)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.jav
a:1116)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon
nectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBa
se.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase
.java:1735)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:1098)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
97)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
tHTTPSender.java:520)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
91)
... 30 more


 


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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


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



[Axis2] Difference between various Timeouts

2008-02-12 Thread Raghu Upadhyayula
Hi,

 

Can anyone let me know the difference between the below 3 timeouts
(Axis2 1.3).

 

1)
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(timeoutIn
MilliSeconds);

2)
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.trans
port.http.HttpConstants.SO_TIMEOUT, timeoutInMilliSeconds);

3)
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.trans
port.http.HttpConstants.CONNECTION_TIMEOUT, timeoutInMilliSeconds);

 

Thanks

Raghu



[Axis2] Getting an exception when returning OMElement

2008-02-04 Thread Raghu Upadhyayula
Hi,

 

I have a webservice which returns a complexType (ObjectResult).

 

Here is the definition of the complexType (ObjectResult).

 

complexType name=ObjectResult

sequence

element name=createdBy nillable=true type=xsd:string / 

element name=createdDate nillable=true type=xsd:dateTime
/ 

element name=lastModifiedBy nillable=true type=xsd:string
/ 

element name=lastModifiedDate nillable=true
type=xsd:dateTime / 

element name=exceptionCode nillable=true
type=fns:ExceptionCode / 

element name=errorMessage nillable=true type=xsd:string
/ 

element maxOccurs=unbounded name=fields nillable=true
type=tns:Field / 

element name=objectType nillable=true type=tns:ObjectType
/ 

any minOccurs=0 namespace=##targetNamespace
processContents=lax / 

/sequence

/complexType

 

The any element in the WSDL is converted to OMElement when we run
WSDL2Java.

 

Now, in the code when I create an OMElement object and set it to the
ObjectResult and return in the response, I'm getting the below exception

 

java.lang.RuntimeException: Error obtaining parser from data source:the
prefix ==  Already exists for namespace ==

 

It used to work before, but suddenly started getting this exception,
nothing has changed regarding the Axis2 libraries in my repository.

 

Please help me regarding this issue.

 

Thanks

Raghu



RE: [Axis2] Getting an exception when returning OMElement - Found more information

2008-02-04 Thread Raghu Upadhyayula
Hi,

 

I debugged this issue further and found that it is failing in the
loggingPhase (LogHandler.java invoke method).

 

As I told in my earlier email it was working before and not now and I
didn't change any Axis2 libraries, now I remember that I added
loggingPhase to the axis2.xml and added LogHandler  LoggingModule
classes to my webservice project to log the SOAP requests  responses.

 

I started getting the exception after I added the loggingPhase, before
that it was working fine.

 

When I debugged further, I found that an exception is being thrown in
LogHandler.java invoke method.

 

The LogHandler.java invoke method has the following line in it.

 

log.info(msgContext.getEnvelope().toString());

 

And when I see the value for msgContext.getEnvelope(), I'm getting this
exception com.sun.jdi.InvocationException occurred invoking method.

 

Any help on this is appreciated

 

Thanks

Raghu



From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 3:42 PM
To: axis-user@ws.apache.org
Subject: [Axis2] Getting an exception when returning OMElement
Importance: High

 

Hi,

 

I have a webservice which returns a complexType (ObjectResult).

 

Here is the definition of the complexType (ObjectResult).

 

complexType name=ObjectResult

sequence

element name=createdBy nillable=true type=xsd:string / 

element name=createdDate nillable=true type=xsd:dateTime
/ 

element name=lastModifiedBy nillable=true type=xsd:string
/ 

element name=lastModifiedDate nillable=true
type=xsd:dateTime / 

element name=exceptionCode nillable=true
type=fns:ExceptionCode / 

element name=errorMessage nillable=true type=xsd:string
/ 

element maxOccurs=unbounded name=fields nillable=true
type=tns:Field / 

element name=objectType nillable=true type=tns:ObjectType
/ 

any minOccurs=0 namespace=##targetNamespace
processContents=lax / 

/sequence

/complexType

 

The any element in the WSDL is converted to OMElement when we run
WSDL2Java.

 

Now, in the code when I create an OMElement object and set it to the
ObjectResult and return in the response, I'm getting the below exception

 

java.lang.RuntimeException: Error obtaining parser from data source:the
prefix ==  Already exists for namespace ==

 

It used to work before, but suddenly started getting this exception,
nothing has changed regarding the Axis2 libraries in my repository.

 

Please help me regarding this issue.

 

Thanks

Raghu



RE: [Axis2] Webservices - 100% Memory and CPU usage (OutOfMemoryError) on API call

2008-01-31 Thread Raghu Upadhyayula
Hi Phillip,

I'm experiencing this on the server side when executing my query
 storing the results in the long[].

As you said one of the solution could be to split one huge
invocation into a number of smaller ones, can you explain that a bit.

Are you saying that I need to restrict the number of elements
returned in the long[] to a smaller number.

Thanks
Raghu

-Original Message-
From: Philipp Leitner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 2:27 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Webservices - 100% Memory and CPU usage
(OutOfMemoryError) on API call

Still not sure whether you expirience the exception on client or server 
side.

However: 300.000 longs do seem like a lot of elements to transport at 
once. I would not be surprised if such a huge array simply leads to 
memory problems during wrapping/unwrapping.

Best solution (if that is indeed the problem) would be to split the one 
huge invocation into a number of smaller ones (or increasing the heap 
size to  avoid memory problems, but that's probably just a temporary
fix).

100% CPU does not seem very uncommon to me - I have seen similar 
behavior during wrapping/unwrapping of big SOAP messages. XML processing

is expensive in terms of CPU cycles.

/philipp


Raghu Upadhyayula schrieb:
 Hi Phillip,
 
 I think there were around 300,000 elements in the long[] when I
ran
 into this issue.
 
 I suppose, the exception happens in the app logic, I haven't tried
 it on my local machine yet (the error happened on one of our QA
 servers).
 
 In the application logic, what I do is, execute a query, loop
 through the result set, store the results in a ListLong as I don't
 know how many rows are in the result set, and then loop through the
 ListLong and store then in the long[] and return the long[] back to
 the client.
 
 Thanks
 Raghu
 -Original Message-
 From: Philipp Leitner [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 31, 2008 5:05 AM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Webservices - 100% Memory and CPU usage
 (OutOfMemoryError) on API call
 
 How many elements are there in your long[] when you run out of memory?

 When exactly does the exception happen (in your app logic, during 
 wrapping, during transmission, on client side?).
 
 /philipp
 
 Raghu Upadhyayula schrieb:
 Hi,

  

 I have a webservice API call which is using 100% of Memory  CPU and 
 throwing an OutOfMemoryError (I'm using Axis2 1.3).

  

 My webservice call returns a long array.

  

 Here is the signature of my webservice API.

  

 *public long[] getIds(Calendar startDate, Calendar endDate) throws 
 Exception; *

  

 Based on the given startDate  endDate, I retrieve the corresponding 
 records from the database and store the ids in a long array and
return
 
 the long array to the client.

  

 If the number of records is more, I'm having the issue of 100% memory
 / 
 CPU usage or OutOfMemoryError.

  

 Does anyone of you have any ideas on how to overcome this issue?

  

 Thanks

 Raghu

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

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


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



RE: [Axis2] Webservices - 100% Memory and CPU usage (OutOfMemoryError) on API call

2008-01-31 Thread Raghu Upadhyayula
Thanks for your reply Narayan.

 

So, if I have to use mtom then I need to change my method to return the
attachment (xsd:base64binary) instead of returning the long[] right?

 

Thanks

Raghu



From: Narayan S Dhillon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 3:11 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Webservices - 100% Memory and CPU usage
(OutOfMemoryError) on API call

 

if you transferring heavy data oevr the wire, consider using mtom.

On 31/01/2008, Philipp Leitner [EMAIL PROTECTED] wrote:

Still not sure whether you expirience the exception on client or server
side.

However: 300.000 longs do seem like a lot of elements to transport at
once. I would not be surprised if such a huge array simply leads to
memory problems during wrapping/unwrapping.

Best solution (if that is indeed the problem) would be to split the one
huge invocation into a number of smaller ones (or increasing the heap
size to  avoid memory problems, but that's probably just a temporary
fix).

100% CPU does not seem very uncommon to me - I have seen similar
behavior during wrapping/unwrapping of big SOAP messages. XML processing
is expensive in terms of CPU cycles.

/philipp


Raghu Upadhyayula schrieb:
 Hi Phillip,

 I think there were around 300,000 elements in the long[] when I
ran
 into this issue.

 I suppose, the exception happens in the app logic, I haven't tried
 it on my local machine yet (the error happened on one of our QA
 servers).

 In the application logic, what I do is, execute a query, loop
 through the result set, store the results in a ListLong as I don't
 know how many rows are in the result set, and then loop through the
 ListLong and store then in the long[] and return the long[] back to
 the client.

 Thanks
 Raghu
 -Original Message-
 From: Philipp Leitner [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 31, 2008 5:05 AM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Webservices - 100% Memory and CPU usage
 (OutOfMemoryError) on API call

 How many elements are there in your long[] when you run out of memory?
 When exactly does the exception happen (in your app logic, during
 wrapping, during transmission, on client side?).

 /philipp

 Raghu Upadhyayula schrieb:
 Hi,



 I have a webservice API call which is using 100% of Memory  CPU and
 throwing an OutOfMemoryError (I'm using Axis2 1.3).



 My webservice call returns a long array.



 Here is the signature of my webservice API.



 *public long[] getIds(Calendar startDate, Calendar endDate) throws
 Exception; *



 Based on the given startDate  endDate, I retrieve the corresponding
 records from the database and store the ids in a long array and
return

 the long array to the client.



 If the number of records is more, I'm having the issue of 100% memory
 /
 CPU usage or OutOfMemoryError.



 Does anyone of you have any ideas on how to overcome this issue?



 Thanks

 Raghu


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


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

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

 



RE: [Axis2] Webservices - 100% Memory and CPU usage (OutOfMemoryError) on API call

2008-01-31 Thread Raghu Upadhyayula
Hi Martin,

I am using ADB data binding.

Thanks
Raghu

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 4:03 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Webservices - 100% Memory and CPU usage
(OutOfMemoryError) on API call

Thats alot of longs!

Take a look at implementing a binding depending on returned
datatype..fastest processing for
returning voids, interface objects works best with JAXB
returning Strings and doubles use ADB
http://wso2.org/library/588#resources

HTH
M-
- Original Message -
From: Philipp Leitner [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Thursday, January 31, 2008 5:26 PM
Subject: Re: [Axis2] Webservices - 100% Memory and CPU usage
(OutOfMemoryError) on API call


 Still not sure whether you expirience the exception on client or
server
 side.

 However: 300.000 longs do seem like a lot of elements to transport at
 once. I would not be surprised if such a huge array simply leads to
 memory problems during wrapping/unwrapping.

 Best solution (if that is indeed the problem) would be to split the
one
 huge invocation into a number of smaller ones (or increasing the heap
 size to  avoid memory problems, but that's probably just a temporary
fix).

 100% CPU does not seem very uncommon to me - I have seen similar
 behavior during wrapping/unwrapping of big SOAP messages. XML
processing
 is expensive in terms of CPU cycles.

 /philipp


 Raghu Upadhyayula schrieb:
  Hi Phillip,
 
  I think there were around 300,000 elements in the long[] when I
ran
  into this issue.
 
  I suppose, the exception happens in the app logic, I haven't
tried
  it on my local machine yet (the error happened on one of our QA
  servers).
 
  In the application logic, what I do is, execute a query, loop
  through the result set, store the results in a ListLong as I don't
  know how many rows are in the result set, and then loop through the
  ListLong and store then in the long[] and return the long[] back
to
  the client.
 
  Thanks
  Raghu
  -Original Message-
  From: Philipp Leitner [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 31, 2008 5:05 AM
  To: axis-user@ws.apache.org
  Subject: Re: [Axis2] Webservices - 100% Memory and CPU usage
  (OutOfMemoryError) on API call
 
  How many elements are there in your long[] when you run out of
memory?
  When exactly does the exception happen (in your app logic, during
  wrapping, during transmission, on client side?).
 
  /philipp
 
  Raghu Upadhyayula schrieb:
  Hi,
 
 
 
  I have a webservice API call which is using 100% of Memory  CPU
and
  throwing an OutOfMemoryError (I'm using Axis2 1.3).
 
 
 
  My webservice call returns a long array.
 
 
 
  Here is the signature of my webservice API.
 
 
 
  *public long[] getIds(Calendar startDate, Calendar endDate) throws
  Exception; *
 
 
 
  Based on the given startDate  endDate, I retrieve the
corresponding
  records from the database and store the ids in a long array and
return
 
  the long array to the client.
 
 
 
  If the number of records is more, I'm having the issue of 100%
memory
  /
  CPU usage or OutOfMemoryError.
 
 
 
  Does anyone of you have any ideas on how to overcome this issue?
 
 
 
  Thanks
 
  Raghu
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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




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


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



[Axis2] Webservices - 100% Memory and CPU usage (OutOfMemoryError) on API call

2008-01-30 Thread Raghu Upadhyayula
Hi,

 

I have a webservice API call which is using 100% of Memory  CPU and
throwing an OutOfMemoryError (I'm using Axis2 1.3).

 

My webservice call returns a long array.

 

Here is the signature of my webservice API.

 

public long[] getIds(Calendar startDate, Calendar endDate) throws
Exception; 

 

Based on the given startDate  endDate, I retrieve the corresponding
records from the database and store the ids in a long array and return
the long array to the client.

 

If the number of records is more, I'm having the issue of 100% memory /
CPU usage or OutOfMemoryError.

 

Does anyone of you have any ideas on how to overcome this issue?

 

Thanks

Raghu



RE: java.lang.NoClassDefFoundError: org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl

2007-12-28 Thread Raghu Upadhyayula
Hi Tushar,

 

Do you have axiom-impl-1.2.5.jar in your classpath.  The
SOAP11HeaderBlockImpl class is in this jar file.

 

Thanks

Raghu



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 28, 2007 11:47 AM
To: axis-user@ws.apache.org
Subject: FW: java.lang.NoClassDefFoundError:
org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl

 

Hi, 

I get following error .. 

I short what I am doing is calling another webservice(hosted on another
axis engine)  using client from within our axis engine.

I am using Axis2 1.3 version. 

While debugging what I observed is as follows : 

1) Primary request comes to our axis engine 
2) Goes though our custom In Phase handler 
3) Service class get invked which in turn calls webservice hosted on
another axis engine( remote) using axis client as follows.

  ServiceClient client = new ServiceClient(); 
Options options = new Options(); 
options.setTo(new
EndpointReference(config.getEndPointRef())); 
 
options.setTransportInProtocol(Constants.TRANSPORT_HTTP); 
options.setUseSeparateListener(false); 
options.setAction(config.getSoapAction()); 
client.setOptions(options); 
OMElement response = null; 

 OMElement responseEnvelop =
client.sendReceive(payload); 

4) I see following error in log  while sending a request to this remote
webservice(hosted on another axis engine) 
  
As temporary fix I have disable addressing module which seemed to fix
the problem. 

Question is : 

How to fix following error and also keep addressing module as we need
that option for future ? 
Not sure why I am getting NoClassDefFoundError even though I check
addressing.mar has SOAP11HeaderBlockImpl class. 

Thanks in advance for looking into this issue. 

gianttm.GiantTMServices - null :
org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl 
com.ubs.pbct.giant.blade.BladeException: null :
org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl 
at
com.ubs.pbct.giant.blade.BladeException.createBladeException(BladeExcept
ion.java:114) 
at
com.ubs.pbct.giant.blade.BladeException.createBladeException(BladeExcept
ion.java:100) 
at
com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFactory
.java:174) 
at
com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFactory
.java:75) 
at
com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFactory
.java:102) 
at
com.ubs.pbct.giant.gianttm.GiantTMServices.getTMSecuritiesRequest(GiantT
MServices.java:316) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:1
94) 
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RP
CMessageReceiver.java:98) 
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLo
gic(AbstractInOutMessageReceiver.java:40)

at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessa
geReceiver.java:96) 
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) 
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:275) 
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 
at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) 
at java.security.AccessController.doPrivileged(Native Method) 
at javax.security.auth.Subject.doAsPrivileged(Unknown Source) 
at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav
a:161) 
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:245) 
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFi
lterChain.java:50) 
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC
hain.java:156) 
at java.security.AccessController.doPrivileged(Native Method) 
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:152) 
at

RE: [Axis2] trimming down the xml in axis2 1.3

2007-12-13 Thread Raghu Upadhyayula
Samir,

Yes, it worked for me.

I used the WSDL2Java with -sp option to generate the server code.

What data binding are you using?

If you are using ADB, then you have to replace all the request 
response classes.

Thanks
Raghu
-Original Message-
From: samir shaikh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 13, 2007 10:50 AM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] trimming down the xml in axis2 1.3

Raghu,

I see in the archives that you ran into the same
problem as this. Did wsdl2java with -sp work for you?

Samir

--- Raghu Upadhyayula [EMAIL PROTECTED]
wrote:

 Samir,
 
   WSDL2Java can also be used to generate serverside
 code. Check
 WSDL2Java options, to create serverside code you
 need to specify the
 options -ss -sd -ssi (check the description for
 these options in
 WSDL2Java)
 
 You can use -sp option with WSDL2Java when you
 generate the serverside
 code in which case the namespace is suppressed on
 the serverside.
 
 Thanks
 Raghu
 
 -Original Message-
 From: samir shaikh [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, December 12, 2007 5:31 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] trimming down the xml in axis2
 1.3
 
 Martin,
 
 You mean using QName in the client code?
 
 I'm trying to tune my server to not send back
 excessive xml. I cannot change the xml I send back
 to
 my clients. the extra ns: is causing me trouble
 after upgrading from axis2 1.1.1 to axis2 1.3 e.g.
 ns:fieldName0/ns:fieldName. My clients expect
 fieldName0/fieldName.
 
 Samir
 
 --- Martin Gainty [EMAIL PROTECTED] wrote:
 
  you can always use null..e.g.
   QName paramQName = new QName(, paramName);
  
  M--
  - Original Message -
  From: samir shaikh [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Sent: Wednesday, December 12, 2007 7:20 PM
  Subject: RE: [Axis2] trimming down the xml in
 axis2
  1.3
  
  
   Raghu,
  
   Thanks for your help. I tried that out but I
 want
  to
   suppress it on the server. I think WSDL2Java is
  for
   generating a client, right?
  
   I'm hoping to find some configuration in
  services.xml
   or axis2.xml... any idea?
  
   Samir
  
  
   --- Raghu Upadhyayula
 [EMAIL PROTECTED]
   wrote:
  
Samir,
   
Try WSDL2Java with -sp option to suppress the
namespace prefix.
   
Thanks
Raghu
   
-Original Message-
From: samir shaikh
 [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 12, 2007 2:20 PM
To: axis-user@ws.apache.org
Subject: [Axis2] trimming down the xml in
 axis2
  1.3
   
Hi,
   
I'm trying to trim down the xml exchanged when
  using
a
axis2 client and server. Is there a way I can
configure the serializer to not prefix
 namespace
with
every element e.g.
  ns:errorCode0/ns:errorCode
can
just be errorCode0errorCode. Also not send
  back
the additional headers and field types with
 each
call.
I was able to do that in Axis1.3 with the wsdd
  file.
Can someone point me to where that is done in
  Axis2.
   
Thanks a lot.
   
Samir
   
   
   
   
  
 



Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.
   
  
 

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
   
   
   
   
  
 

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

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


 
  
   Be a better friend, newshound, and
   know-it-all with Yahoo! Mobile.  Try it now.
 

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
  
  
  
 

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

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


 
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile.  Try it now.

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 
=== message truncated ===



 


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

RE: [Axis2] trimming down the xml in axis2 1.3

2007-12-12 Thread Raghu Upadhyayula
Samir,

Try WSDL2Java with -sp option to suppress the namespace prefix.

Thanks
Raghu

-Original Message-
From: samir shaikh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 2:20 PM
To: axis-user@ws.apache.org
Subject: [Axis2] trimming down the xml in axis2 1.3

Hi,

I'm trying to trim down the xml exchanged when using a
axis2 client and server. Is there a way I can
configure the serializer to not prefix namespace with
every element e.g. ns:errorCode0/ns:errorCode can
just be errorCode0errorCode. Also not send back
the additional headers and field types with each call.
I was able to do that in Axis1.3 with the wsdd file.
Can someone point me to where that is done in Axis2.

Thanks a lot.

Samir


 


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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


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



RE: [Axis2] trimming down the xml in axis2 1.3

2007-12-12 Thread Raghu Upadhyayula
Samir,

WSDL2Java can also be used to generate serverside code. Check
WSDL2Java options, to create serverside code you need to specify the
options -ss -sd -ssi (check the description for these options in
WSDL2Java)

You can use -sp option with WSDL2Java when you generate the serverside
code in which case the namespace is suppressed on the serverside.

Thanks
Raghu

-Original Message-
From: samir shaikh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 5:31 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] trimming down the xml in axis2 1.3

Martin,

You mean using QName in the client code?

I'm trying to tune my server to not send back
excessive xml. I cannot change the xml I send back to
my clients. the extra ns: is causing me trouble
after upgrading from axis2 1.1.1 to axis2 1.3 e.g.
ns:fieldName0/ns:fieldName. My clients expect
fieldName0/fieldName.

Samir

--- Martin Gainty [EMAIL PROTECTED] wrote:

 you can always use null..e.g.
  QName paramQName = new QName(, paramName);
 
 M--
 - Original Message -
 From: samir shaikh [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Wednesday, December 12, 2007 7:20 PM
 Subject: RE: [Axis2] trimming down the xml in axis2
 1.3
 
 
  Raghu,
 
  Thanks for your help. I tried that out but I want
 to
  suppress it on the server. I think WSDL2Java is
 for
  generating a client, right?
 
  I'm hoping to find some configuration in
 services.xml
  or axis2.xml... any idea?
 
  Samir
 
 
  --- Raghu Upadhyayula [EMAIL PROTECTED]
  wrote:
 
   Samir,
  
   Try WSDL2Java with -sp option to suppress the
   namespace prefix.
  
   Thanks
   Raghu
  
   -Original Message-
   From: samir shaikh [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, December 12, 2007 2:20 PM
   To: axis-user@ws.apache.org
   Subject: [Axis2] trimming down the xml in axis2
 1.3
  
   Hi,
  
   I'm trying to trim down the xml exchanged when
 using
   a
   axis2 client and server. Is there a way I can
   configure the serializer to not prefix namespace
   with
   every element e.g.
 ns:errorCode0/ns:errorCode
   can
   just be errorCode0errorCode. Also not send
 back
   the additional headers and field types with each
   call.
   I was able to do that in Axis1.3 with the wsdd
 file.
   Can someone point me to where that is done in
 Axis2.
  
   Thanks a lot.
  
   Samir
  
  
  
  
 


   
   Be a better friend, newshound, and
   know-it-all with Yahoo! Mobile.  Try it now.
  
 

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
  
  
  
  
 

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

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



 
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 
 
 

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

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



 


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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


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



Problem using MTOM with a JPEF file.

2007-12-05 Thread Raghu Upadhyayula
Hi,

 

I have a webservice which is used to upload images to the server.

 

I'm getting an exception if I am sending a JPEG file with MTOM enabled.
It works fine if MTOM is not enabled (Base64 encoded).  It works fine if
I send a GIF file with or without MTOM enabled.

 

Here is the exception I'm getting.  Is this a bug?

 

17:30:43,469 ERROR [[AxisServlet]] Servlet.service() for servlet
AxisServlet threw exception

java.lang.ArrayIndexOutOfBoundsException

at java.lang.System.arraycopy(Native Method)

at
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:414)

at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:312)

at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.j
ava:193)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read1(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at java.io.FilterInputStream.read(Unknown Source)

at java.io.PushbackInputStream.read(Unknown Source)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(
BoundaryPushbackInputStream.java:102)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(
BoundaryPushbackInputStream.java:122)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPu
shbackInputStream.java:172)

at
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartIn
putStream.java:87)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at
com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)

at
javax.mail.internet.InternetHeaders.load(InternetHeaders.java:329)

at
javax.mail.internet.InternetHeaders.init(InternetHeaders.java:301)

at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:168)

at
org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:34)

at
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:598)

at
org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachme
nts.java:462)

at
org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.jav
a:427)

at
org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.ja
va:420)

at
org.apache.axis2.transport.TransportUtils.deleteAttachments(TransportUti
ls.java:481)

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:189)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)

at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:230)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175)

at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:179)

at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:84)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)

at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConn
ectionValve.java:157)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
62)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)

at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

at java.lang.Thread.run(Unknown Source)

 

Thanks

Raghu



[Axis2] Problem using MTOM with a JPEG file.

2007-12-05 Thread Raghu Upadhyayula
Hi,

 

I have a webservice which is used to upload images to the server.

 

I'm getting an exception if I am sending a JPEG file with MTOM enabled.
It works fine if MTOM is not enabled (Base64 encoded).  It works fine if
I send a GIF file with or without MTOM enabled.

 

Here is the exception I'm getting.  Is this a bug? (I'm using Axis2 1.3
Version).

 

17:30:43,469 ERROR [[AxisServlet]] Servlet.service() for servlet
AxisServlet threw exception

java.lang.ArrayIndexOutOfBoundsException

at java.lang.System.arraycopy(Native Method)

at
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:414)

at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:312)

at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.j
ava:193)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read1(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at java.io.FilterInputStream.read(Unknown Source)

at java.io.PushbackInputStream.read(Unknown Source)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(
BoundaryPushbackInputStream.java:102)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(
BoundaryPushbackInputStream.java:122)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPu
shbackInputStream.java:172)

at
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartIn
putStream.java:87)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at
com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)

at
javax.mail.internet.InternetHeaders.load(InternetHeaders.java:329)

at
javax.mail.internet.InternetHeaders.init(InternetHeaders.java:301)

at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:168)

at
org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:34)

at
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:598)

at
org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachme
nts.java:462)

at
org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.jav
a:427)

at
org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.ja
va:420)

at
org.apache.axis2.transport.TransportUtils.deleteAttachments(TransportUti
ls.java:481)

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:189)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)

at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:230)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175)

at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:179)

at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:84)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)

at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConn
ectionValve.java:157)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
62)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)

at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

at java.lang.Thread.run(Unknown Source)

 

Thanks

Raghu

 



RE: Axis2 Problem accessing the WSDL.

2007-11-27 Thread Raghu Upadhyayula
Hi tinkugadu,

From the exception it appears to me that you are trying to get
the wsdl using ?WSDL but you have to use ?wsdl (it is case sensitive).

Thanks
Raghu

-Original Message-
From: tinkugadu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 27, 2007 1:16 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 Problem accessing the WSDL.



Hi,

I tried using Axis2 1.3 jars, when i tried getting the WSDL , then i get
the
following exception on the browser. I still see the old
classCastException,
still in the logs. 

Exceptionorg.apache.axis2.AxisFault: The endpoint reference (EPR) for
the
Operation not found is /csows/services/EnrollmentMgtService?WSDL and the
WSA
Action = null at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.
java:86)
at org.apache.axis2.engine.Phase.invoke(Phase.java:308) at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.
java:125)
at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil
.java:119)
at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.process
URLRequest(AxisServlet.java:799)
at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St
ubSecurityHelper.java:225)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH
elper.java:127)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2
72)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:1
65)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:3153)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServ
letContext.java:1973)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletCont
ext.java:1880)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java
:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at
weblogic.work.ExecuteThread.run(ExecuteThread.java:179)/Exception 




keith chapman wrote:
 
 Yes I believe this is fixed in 1.3. Please try the 1.3 release.
 
 Thanks,
 Keith.
 
 On Nov 27, 2007 11:18 AM, Deepal Jayasinghe [EMAIL PROTECTED]
wrote:
 
 Hi tinkugadu ,
 May be a bug in Axis2 1.2 release , if you can please try with Axis2
1.3

 Thanks
 Deepal
  WHen i try to access the WSDL i get the
StringIndexOUtOfBoundsException
  followed by the ClassCastException. WHen i try to access the
  csows/axis2-web/index.jsp from the Weblogic console then i just get
the
  classcast exception
 
  my Environment:
 
  Webserver - Weblogic9
 
  axis version-  axis2 1.2
 
  I am not using axis2.xml
  i have listed the two exceptions below.
 
 
  Nov 26, 2007 1:08:34 PM EST Error HTTP lnx552.dteco.com
  ndsAdmin [ACTIVE] ExecuteThread: '8' for queue: '
 weblogic.kernel.Default
  (self-tuning)' WLS Kernel   1196100514023 BEA-101020
  [EMAIL PROTECTED] - name: '
 csows.war',
  context-path: '/csows'] Servlet failed with Exception
  java.lang.StringIndexOutOfBoundsException: String index out of
range:
 -11
  at java.lang.String.substring(String.java:1768)
  at java.lang.String.substring(String.java:1735)
  at
 
org.apache.axis2.engine.HTTPLocationBasedDispatcher.parseRequestURL(
 HTTPLocationBasedDispatcher.java:106)
  at
  org.apache.axis2.engine.HTTPLocationBasedDispatcher.findOperation(
 HTTPLocationBasedDispatcher.java:52)
  at
  org.apache.axis2.engine.AbstractDispatcher.invoke(
 AbstractDispatcher.java:100)
  at
  org.apache.axis2.transport.http.util.RESTUtil.dispatchAndVerify(
 RESTUtil.java:138)
  at
  org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(
 RESTUtil.java:95)
  at
 

org.apache.axis2.transport.http.AxisServlet$ProcessRESTRequest.processUR
LRequest
 (AxisServlet.java:776)
  at
 
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:238)
  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
 
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
 StubSecurityHelper.java:225)
  at
  weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
 StubSecurityHelper.java:127)
  at
 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java
 :272)
  at
 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java
 :165)
  at
 


Monitoring Web Services

2007-11-27 Thread Raghu Upadhyayula
Hi,

 

I've developed webservices using Axis2 1.3 version.

 

The way my webservices work is the user first need to login using
username  password.  This login method returns a sessionId.  Then the
user can call the subsequent webservices APIs by passing the sessionId
in the SOAP Header, and after everything is done, the user needs to
logout (using the logout webservices API).

 

Question: 

Is there any tool that can monitor webservice calls? OR I should write
my own module to do this?

 

In case of my webservices I need to know the following things.

 

For a given start and end date

- What customers are using the WS API (creating sessions)? What
accounts? What users? What pod?

- How frequently are they using it? Number of sessions over period?

- When are they using? Session start and end times 

- What are they doing within the WS API session? 

- What calls are they making?

- How many times to they call each method within a session?

- What are the input parameters to each call?

- Were any exceptions returned? If so what ones?

 

Thanks

Raghu



HTTP 502 Proxy Error in Axis 1.3

2007-11-16 Thread Raghu Upadhyayula
Hi,

 

We have a webservice which is using Axis 1.3.

 

There are some clients using our webservices.  One of the clients
reported that he is getting a HTTP 502 Proxy Error intermittently when
accessing our webservices.

 

Does anyone face this problem before or know why this is occurring?  Is
there any solution for this issue?

 

Here is the stack trace of the error.

 

AxisFault

 faultCode: {http://xml.apache.org/axis/}HTTP

 faultSubcode:

 faultString: (502)Proxy Error

 faultActor:

 faultNode:

 faultDetail:

{}string: return code:  502

lt;!DOCTYPE HTML PUBLIC quot;-//IETF//DTD HTML 2.0//ENquot;gt;

lt;htmlgt;lt;headgt;

lt;titlegt;502 Proxy Errorlt;/titlegt;

lt;/headgt;lt;bodygt;

lt;h1gt;Proxy Errorlt;/h1gt;

lt;pgt;The proxy server received an invalid^M

response from an upstream server.lt;br /gt;^M

The proxy server could not handle the request lt;emgt;lt;a
href=quot;/webservices/ResponsysWSquot;gt;POSTamp;nbsp;/webservices/
ResponsysWSlt;/agt;lt;/emgt;.lt;pgt;

Reason: lt;stronggt;Error reading from remote
serverlt;/stronggt;lt;/pgt;lt;/pgt;

lt;hrgt;

lt;addressgt;Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a Server
at ws1.responsys.net Port 80lt;/addressgt;

lt;/bodygt;lt;/htmlgt;

 

 

(502)Proxy Error

at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:630)

at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)

at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)

at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)

at org.apache.axis.client.Call.invokeEngine(Call.java:2564)

at org.apache.axis.client.Call.invoke(Call.java:2553)

at org.apache.axis.client.Call.invoke(Call.java:2248)

at org.apache.axis.client.Call.invoke(Call.java:2171)

at org.apache.axis.client.Call.invoke(Call.java:1691)

...

...

 

Thanks in advance

Raghu



RE: Please remove me from this list EOM

2007-11-06 Thread Raghu Upadhyayula
Kishore,

 

Send a mail to [EMAIL PROTECTED]

 

Thanks

Raghu

 



From: Kishore Reddy Vaddipalle [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 05, 2007 8:28 PM
To: axis-user@ws.apache.org
Subject: Please remove me from this list EOM

 

 

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are
unlawful. This e-mail may contain viruses. Infosys has taken every
reasonable precaution to minimize this risk, but is not liable for any
damage you may sustain as a result of any virus in this e-mail. You
should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***



RE: [Axis2] Problem with soap:address location in the WSDL (IP Address is not a public IP that is accessible from Internet).

2007-10-29 Thread Raghu Upadhyayula
Hi Amila,

 

I can't change the soap:address in wsdl file because the address is
different in each environment (localhost, QA, Production etc).

 

Do you mean to edit the soap:address manually in every environment
before deploying?  I guess that's not a good option.

 

Thanks

Raghu



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 4:53 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).

 

 

On 10/24/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

Hi,

 

I have a problem with the soap:address location generated
when I browse the WSDL in the browser.



I'm using Axis2 1.3.



I'm looking at the WSDL in the browser using
http://ws.qa.company.com/webservices/services/MyWSService?wsdl



I get the WSDL and the soap:address location in the WSDL
looks like   soap:address location=
http://10.5.2.182:80/webservices/services/MyWSService
http://10.5.2.182/webservices/services/MyWSService  / 



But then problem is with the IP Address coming in the
soap:address location 10.5.2.182 is not a public IP that is accessible
from Internet.



What changes should I do to change the soap:address location
to look like

 soap:address location=
http://ws.qa.company.com/webservices/services/MyWSService
http://ws.qa.company.com/webservices/MyWSService / 



Another thing, I found is that this is working fine if I use
?wsdl2 in the URL above.

 

Note:

In my services.xml I have useOriginalWSDL property set to
true and modifyUserWSDLPortAddress was also set to true.



I've tried changing modifyUserWSDLPortAddress to false, but
what happened in that case was the soap:address location was not
modified at all.



The soap:address location case as
http://localhost:80/webservices/services/MyWSService
http://localhost/webservices/services/MyWSService  because the
original WSDL had this address in the soap:address location, since the
localhost was coming as it, I've change the modifyUserWSDLPortAddress
property back to true.


why don't you change the soap:address in wsdl file to the correct one?

Amila. 

 

Thanks in Advance.

Raghu

 




-- 
Amila Suriarachchi,
WSO2 Inc. 



RE: [Axis2] Problem with soap:address location in the WSDL (IP Address is not a public IP that is accessible from Internet).

2007-10-29 Thread Raghu Upadhyayula
Hi Ali,

I'm using Axis2 1.3 and having this problem in that.

Thanks
Raghu

-Original Message-
From: Ali, Haneef [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 11:53 AM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).

Hi,
 
This should have been fixed in Axis2 1.3. Please check the following
issue and the comments. 

https://issues.apache.org/jira/browse/AXIS2-3143
http://marc.info/?l=axis-cvsm=118499936203494w=2

Thanks,
Haneef


From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 9:21 AM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).



Hi Amila,

 

I can't change the soap:address in wsdl file because the address is
different in each environment (localhost, QA, Production etc).

 

Do you mean to edit the soap:address manually in every environment
before deploying?  I guess that's not a good option.

 

Thanks

Raghu



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 4:53 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).

 

 

On 10/24/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

Hi,

 

I have a problem with the soap:address location generated
when I browse the WSDL in the browser.



I'm using Axis2 1.3.



I'm looking at the WSDL in the browser using
http://ws.qa.company.com/webservices/services/MyWSService?wsdl



I get the WSDL and the soap:address location in the WSDL
looks like   soap:address location=
http://10.5.2.182:80/webservices/services/MyWSService
http://10.5.2.182/webservices/services/MyWSService  / 



But then problem is with the IP Address coming in the
soap:address location 10.5.2.182 is not a public IP that is accessible
from Internet.



What changes should I do to change the soap:address location
to look like

 soap:address location=
http://ws.qa.company.com/webservices/services/MyWSService
http://ws.qa.company.com/webservices/MyWSService / 



Another thing, I found is that this is working fine if I use
?wsdl2 in the URL above.

 

Note:

In my services.xml I have useOriginalWSDL property set to
true and modifyUserWSDLPortAddress was also set to true.



I've tried changing modifyUserWSDLPortAddress to false, but
what happened in that case was the soap:address location was not
modified at all.



The soap:address location case as
http://localhost:80/webservices/services/MyWSService
http://localhost/webservices/services/MyWSService  because the
original WSDL had this address in the soap:address location, since the
localhost was coming as it, I've change the modifyUserWSDLPortAddress
property back to true.


why don't you change the soap:address in wsdl file to the correct one?

Amila. 

 

Thanks in Advance.

Raghu

 




-- 
Amila Suriarachchi,
WSO2 Inc. 


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


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



RE: [Axis2] Problem with soap:address location in the WSDL (IP Address is not a public IP that is accessible from Internet).

2007-10-29 Thread Raghu Upadhyayula
And also in the JIRA it says that AXIS2-3143 is still open and is not
assigned to anyone.

-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 11:56 AM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).

Hi Ali,

I'm using Axis2 1.3 and having this problem in that.

Thanks
Raghu

-Original Message-
From: Ali, Haneef [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 11:53 AM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).

Hi,
 
This should have been fixed in Axis2 1.3. Please check the following
issue and the comments. 

https://issues.apache.org/jira/browse/AXIS2-3143
http://marc.info/?l=axis-cvsm=118499936203494w=2

Thanks,
Haneef


From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 9:21 AM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).



Hi Amila,

 

I can't change the soap:address in wsdl file because the address is
different in each environment (localhost, QA, Production etc).

 

Do you mean to edit the soap:address manually in every environment
before deploying?  I guess that's not a good option.

 

Thanks

Raghu



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 4:53 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).

 

 

On 10/24/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

Hi,

 

I have a problem with the soap:address location generated
when I browse the WSDL in the browser.



I'm using Axis2 1.3.



I'm looking at the WSDL in the browser using
http://ws.qa.company.com/webservices/services/MyWSService?wsdl



I get the WSDL and the soap:address location in the WSDL
looks like   soap:address location=
http://10.5.2.182:80/webservices/services/MyWSService
http://10.5.2.182/webservices/services/MyWSService  / 



But then problem is with the IP Address coming in the
soap:address location 10.5.2.182 is not a public IP that is accessible
from Internet.



What changes should I do to change the soap:address location
to look like

 soap:address location=
http://ws.qa.company.com/webservices/services/MyWSService
http://ws.qa.company.com/webservices/MyWSService / 



Another thing, I found is that this is working fine if I use
?wsdl2 in the URL above.

 

Note:

In my services.xml I have useOriginalWSDL property set to
true and modifyUserWSDLPortAddress was also set to true.



I've tried changing modifyUserWSDLPortAddress to false, but
what happened in that case was the soap:address location was not
modified at all.



The soap:address location case as
http://localhost:80/webservices/services/MyWSService
http://localhost/webservices/services/MyWSService  because the
original WSDL had this address in the soap:address location, since the
localhost was coming as it, I've change the modifyUserWSDLPortAddress
property back to true.


why don't you change the soap:address in wsdl file to the correct one?

Amila. 

 

Thanks in Advance.

Raghu

 




-- 
Amila Suriarachchi,
WSO2 Inc. 


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


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


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



RE: [Axis2] Problem with C# client accessing a Web Service

2007-10-26 Thread Raghu Upadhyayula
Hi Sudhir,

 

I figured out the problem but don't really know how to solve
it.



Looks like the wsdl.exe tool I'm using has a bug.  It
creates a two-dimensional string array if the wsdl has nested elements
that contains maxOccurs=unbounded.



In my WSDL I have the elements defined as follows.



complexType name=RecordData

sequence

element maxOccurs=unbounded name=fieldNames
nillable=true type=xsd:string/

element maxOccurs=unbounded name=records
nillable=true type=tns:Record/

/sequence

/complexType



complexType name=Record

sequence

element maxOccurs=unbounded name=fieldValues
nillable=true type=xsd:string/

/sequence

/complexType



In the service class, this structure is generated as
follows., observe that the records field is created as a string[][]
instead or Record[]



/// remarks/

[System.CodeDom.Compiler.GeneratedCodeAttribute(wsdl,
2.0.50727.42)]

[System.SerializableAttribute()]

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute(code)]

 
[System.Xml.Serialization.XmlTypeAttribute(Namespace=urn:ws.rsys.com)]

public partial class RecordData {



private string[] fieldNamesField;



private string[][] recordsField;



/// remarks/

[System.Xml.Serialization.XmlElementAttribute(fieldNames,
IsNullable=true)]

public string[] fieldNames {

get {

return this.fieldNamesField;

}

set {

this.fieldNamesField = value;

}

}



/// remarks/

[System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]

[System.Xml.Serialization.XmlArrayItemAttribute(fieldValues,
typeof(string))]

public string[][] records {

get {

return this.recordsField;

}

set {

this.recordsField = value;

}

}

}

 

Thanks

Raghu

 



From: Sudhir Sharma [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 25, 2007 10:06 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Problem with C# client accessing a Web Service

 

Hi Raghu,

 

Can u put your code (java and C#) here so that we can check and compare
them to find out the loop holes. 

 

Thanks  Best Regards,

Sudhir Sharma



From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 4:09 AM
To: axis-user@ws.apache.org
Subject: [Axis2] Problem with C# client accessing a Web Service

 

Hi,

 

I have a webservice developed using Axis2 1.3.  I wrote a
Java client to access this webservice and everything is working fine.



Today I started writing a C# client to access the same
webservice.



I've used the wsdl.exe tool that comes with Microsoft Visual
Studio to generate the client code and wrote my own class to access
methods in the web service.



Now when I try to run the C# client, I'm getting the below
exception.

 

   at System.Xml.Serialization.Compiler.Compile(Assembly parent, String
ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)

   at
System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable
assemblies)

   at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, String location,
Evidence evidence)

   at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
mappings, Type type)

   at System.Web.Services.Protocols.SoapClientType..ctor(Type type)

   at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()

   at WSCSharpClient.ResponsysWSService..ctor()

   at WSCSharpClient.TestResponsysWS.login()

   at WSCSharpClient.TestResponsysWS.run()

Unable to generate a temporary class (result=1).

error CS0030: Cannot convert type 'string[]' to 'string'

error CS0029: Cannot implicitly convert type 'string' to 'string[]'

 

Does anyone have an idea what the problem is or am I missing
anything else?

 

Thanks in Advance.

Raghu



RE: Axis stub response to JSP.

2007-10-25 Thread Raghu Upadhyayula
I guess, you can directly invoke your webservice from JSP using the stub
(I haven't tried it though).

 

For Ex:

 

%

String endPointURL =
http://localhost/webservices/services/MyService;

MyServiceStub stub = new MyServiceStub(endPointURL);



Employee[] employees = stub.getEmployees();  // getEmployees
is a method in your service



// Use this employees array to display the data in the jsp.

%

 



From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 26, 2000 1:33 PM
To: axis-user@ws.apache.org
Subject: Re: Axis stub response to JSP.

 

JSP - Servlet(packages WSDLToJava StubClient) including encoding SOAP
Request into XML- AxisServlet

AxisServlet- XML response back to Servlet - Servlet parses the XML
/populates beans/sends textResponse back 
-JSP (AJAX Div Tag or create ResultsJsp)


Im sure there is a simpler solution..Anyone else?

M--

- Original Message - 

From: Ajay Joshi mailto:[EMAIL PROTECTED]  

To: axis-user@ws.apache.org 

Sent: Thursday, October 25, 2007 3:32 PM

Subject: Axis stub response to JSP. 

 

Hi, 

 

How Axis stub (generated thru WSDL2Java) can return response to
JSP?

 

I can see response in XML format..  response can be print to
browser using servlet in text/html format.

.

But I am not sure how to convert response to Java object than be
displayed to JSP.

Regards

Ajay

 

 



RE: [Axis2] Problem with soap:address location in the WSDL (IP Address is not a public IP that is accessible from Internet).

2007-10-24 Thread Raghu Upadhyayula
Any solutions for the below problem.  I'm kind of stuck with this.

 

Thanks

Raghu

 



From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 23, 2007 3:14 PM
To: axis-user@ws.apache.org
Subject: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).

 

Hi,

 

I have a problem with the soap:address location generated
when I browse the WSDL in the browser.



I'm using Axis2 1.3.



I'm looking at the WSDL in the browser using
http://ws.qa.company.com/webservices/services/MyWSService?wsdl



I get the WSDL and the soap:address location in the WSDL
looks like  soap:address
location=http://10.5.2.182:80/webservices/services/MyWSService
http://10.5.2.182/webservices/services/MyWSService  /



But then problem is with the IP Address coming in the
soap:address location 10.5.2.182 is not a public IP that is accessible
from Internet.



What changes should I do to change the soap:address location
to look like

soap:address
location=http://ws.qa.company.com/webservices/services/MyWSService
http://ws.qa.company.com/webservices/MyWSService  /



Another thing, I found is that this is working fine if I use
?wsdl2 in the URL above.

 

Note:

In my services.xml I have useOriginalWSDL property set to
true and modifyUserWSDLPortAddress was also set to true.



I've tried changing modifyUserWSDLPortAddress to false, but
what happened in that case was the soap:address location was not
modified at all.



The soap:address location case as
http://localhost:80/webservices/services/MyWSService
http://localhost/webservices/services/MyWSService  because the
original WSDL had this address in the soap:address location, since the
localhost was coming as it, I've change the modifyUserWSDLPortAddress
property back to true.

 

Thanks in Advance.

Raghu

 



RE: [Axis2] Problem with soap:address location in the WSDL (IP Address is not a public IP that is accessible from Internet).

2007-10-24 Thread Raghu Upadhyayula
Any solutions for the below problem OR is this a bug in Axis2 1.3?.  I'm
kind of stuck with this.

 

Thanks

Raghu

 



From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 23, 2007 3:14 PM
To: axis-user@ws.apache.org
Subject: [Axis2] Problem with soap:address location in the WSDL (IP
Address is not a public IP that is accessible from Internet).

 

Hi,

 

I have a problem with the soap:address location generated
when I browse the WSDL in the browser.



I'm using Axis2 1.3.



I'm looking at the WSDL in the browser using
http://ws.qa.company.com/webservices/services/MyWSService?wsdl



I get the WSDL and the soap:address location in the WSDL
looks like  soap:address
location=http://10.5.2.182:80/webservices/services/MyWSService
http://10.5.2.182/webservices/services/MyWSService  /



But then problem is with the IP Address coming in the
soap:address location 10.5.2.182 is not a public IP that is accessible
from Internet.



What changes should I do to change the soap:address location
to look like

soap:address
location=http://ws.qa.company.com/webservices/services/MyWSService
http://ws.qa.company.com/webservices/MyWSService  /



Another thing, I found is that this is working fine if I use
?wsdl2 in the URL above.

 

Note:

In my services.xml I have useOriginalWSDL property set to
true and modifyUserWSDLPortAddress was also set to true.



I've tried changing modifyUserWSDLPortAddress to false, but
what happened in that case was the soap:address location was not
modified at all.



The soap:address location case as
http://localhost:80/webservices/services/MyWSService
http://localhost/webservices/services/MyWSService  because the
original WSDL had this address in the soap:address location, since the
localhost was coming as it, I've change the modifyUserWSDLPortAddress
property back to true.

 

Thanks in Advance.

Raghu

 



RE: [Axis2] XmlSchema choice element not supported, other problems

2007-10-24 Thread Raghu Upadhyayula
Hi Vish,

 

Both the links shown below are referring to different
versions of Axis2



http://ws.apache.org/axis2/0_93/adb/adb-howto.html says not
supported - From the URL it looks like this link is for version 0.93 of
Axis2

http://wso2.org/library/2670 says supported - In the
article, it says that it is for version 1.3 of Axis2



So I guess that depends on what version you are using.

 

Thanks

Raghu



From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 24, 2007 5:22 PM
To: axis-user@ws.apache.org
Subject: [Axis2] XmlSchema choice element not supported, other problems

 

I have found the cause of my wsdl2java problems when I use the default
ADB binding with the options -o -ss -sd -ssi -f -uw -uri -ns2p - one
of the complex types defined in my wsdl has an xmlschema choice element.
That with the -uw option gives
org.apache.axis2.wsdl.codegen.CodeGenerationException: Unsupported
Schema format for unwrapping! found unknown type but expected Element at
org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.process
XMLSchemaSequence(SchemaUnwrapperExtension.java:370)

 

When I tried to find if choice is supported I got conflicting results:

http://ws.apache.org/axis2/0_93/adb/adb-howto.html says not supported

http://wso2.org/library/2670 says supported

 

So is xmlschema choice tag supported?

 

 

- Vish.



RE: AXIS Fault Required Attribute localType is null

2007-10-23 Thread Raghu Upadhyayula
Hi Saket,

 

Can you also post your Common.xsd file which has the
definition of all the Types.

 

Thanks

Raghu

 



From: Saket Raizada [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 23, 2007 6:38 AM
To: axis-user@ws.apache.org
Subject: RE: AXIS Fault Required Attribute localType is null 

 

Raghu,

I do not see the type variable in the WSDL. 

I have attached the WSDL file.

 

Thanks for the help !

regards 
-Saket Raizada 
309-763-5492 
Automation (Maintenance) 

 

 



From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 22, 2007 7:16 PM
To: axis-user@ws.apache.org
Subject: RE: AXIS Fault Required Attribute localType is null 

Hi Saket,

 

Can you post your WSDL?  From the Axis Fault it looks like
you have a variable named type in the Incident object which is defined
as not nullable in WSDL and you are not setting that in your request.

 

Thanks

Raghu

 



From: Saket Raizada [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 22, 2007 3:48 PM
To: axis-user@ws.apache.org
Subject: AXIS Fault Required Attribute localType is null 

 

 

Hi Folks, 
I am using AXIS 2, 1.3 and created a client for an existing WebService 
I am trying to use the WebService to create an incident using the
example code below 
StringType contact = new StringType(); 
contact.setString(user1); 
incident.setContact(contact); 
stub.createIncident(incident) 
I get an AXIS Fault Required Attribute localType is null , there is no
SOAP body message generated..., however if i comment out the line

//incident.setContact(contact) , the incident gets generated and i can
see the SOAP messages etc. 
I am using ADB binding and am out of ideas what localType is (it's not
part of incident or web service that i am trying to access) also no SOAP
BODY XML is generated.

Any pointers will be very helpful 
-machoq 



[Axis2] Problem with soap:address location in the WSDL (IP Address is not a public IP that is accessible from Internet).

2007-10-23 Thread Raghu Upadhyayula
Hi,

 

I have a problem with the soap:address location generated
when I browse the WSDL in the browser.



I'm using Axis2 1.3.



I'm looking at the WSDL in the browser using
http://ws.qa.company.com/webservices/services/MyWSService?wsdl



I get the WSDL and the soap:address location in the WSDL
looks like  soap:address
location=http://10.5.2.182:80/webservices/services/MyWSService
http://10.5.2.182/webservices/services/MyWSService  /



But then problem is with the IP Address coming in the
soap:address location 10.5.2.182 is not a public IP that is accessible
from Internet.



What changes should I do to change the soap:address location
to look like

soap:address
location=http://ws.qa.company.com/webservices/MyWSService /



Another thing, I found is that this is working fine if I use
?wsdl2 in the URL above.

 

Note:

In my services.xml I have useOriginalWSDL property set to
true and modifyUserWSDLPortAddress was also set to true.



I've tried changing modifyUserWSDLPortAddress to false, but
what happened in that case was the soap:address location was not
modified at all.



The soap:address location case as
http://localhost:80/webservices/services/MyWSService
http://localhost/webservices/services/MyWSService  because the
original WSDL had this address in the soap:address location, since the
localhost was coming as it it, I've change the modifyUserWSDLPortAddress
property back to true.

 

Thanks in Advance.

Raghu



[Axis2] Problem with soap:address location in the WSDL (IP Address is not a public IP that is accessible from Internet).

2007-10-23 Thread Raghu Upadhyayula
Hi,

 

I have a problem with the soap:address location generated
when I browse the WSDL in the browser.



I'm using Axis2 1.3.



I'm looking at the WSDL in the browser using
http://ws.qa.company.com/webservices/services/MyWSService?wsdl



I get the WSDL and the soap:address location in the WSDL
looks like  soap:address
location=http://10.5.2.182:80/webservices/services/MyWSService
http://10.5.2.182/webservices/services/MyWSService  /



But then problem is with the IP Address coming in the
soap:address location 10.5.2.182 is not a public IP that is accessible
from Internet.



What changes should I do to change the soap:address location
to look like

soap:address
location=http://ws.qa.company.com/webservices/services/MyWSService
http://ws.qa.company.com/webservices/MyWSService  /



Another thing, I found is that this is working fine if I use
?wsdl2 in the URL above.

 

Note:

In my services.xml I have useOriginalWSDL property set to
true and modifyUserWSDLPortAddress was also set to true.



I've tried changing modifyUserWSDLPortAddress to false, but
what happened in that case was the soap:address location was not
modified at all.



The soap:address location case as
http://localhost:80/webservices/services/MyWSService
http://localhost/webservices/services/MyWSService  because the
original WSDL had this address in the soap:address location, since the
localhost was coming as it, I've change the modifyUserWSDLPortAddress
property back to true.

 

Thanks in Advance.

Raghu

 



RE: AXIS Fault Required Attribute localType is null

2007-10-22 Thread Raghu Upadhyayula
Hi Saket,

 

Can you post your WSDL?  From the Axis Fault it looks like
you have a variable named type in the Incident object which is defined
as not nullable in WSDL and you are not setting that in your request.

 

Thanks

Raghu

 



From: Saket Raizada [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 22, 2007 3:48 PM
To: axis-user@ws.apache.org
Subject: AXIS Fault Required Attribute localType is null 

 

 

Hi Folks, 
I am using AXIS 2, 1.3 and created a client for an existing WebService 
I am trying to use the WebService to create an incident using the
example code below 
StringType contact = new StringType(); 
contact.setString(user1); 
incident.setContact(contact); 
stub.createIncident(incident) 
I get an AXIS Fault Required Attribute localType is null , there is no
SOAP body message generated..., however if i comment out the line

//incident.setContact(contact) , the incident gets generated and i can
see the SOAP messages etc. 
I am using ADB binding and am out of ideas what localType is (it's not
part of incident or web service that i am trying to access) also no SOAP
BODY XML is generated.

Any pointers will be very helpful 
-machoq 



How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Raghu Upadhyayula
Hi,

 

I want to change my webservice URL from

 

http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName (Remove /services from the
URL)

 

I've changed the following 2 parameters in axis2.xml

 

parameter name=contextRoot/webservices/parameter

parameter name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using the URL
http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing (soap:address location in the
WSDL) to http://localhost/webservices/myServiceName/myServiceName
(Observe that myServiceName is repeated twice).

 

Now when I try to access the webservice from the client for End Point
http://localhost/webservice/myServiceName I'm getting an exception
saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 



From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot  servicePath in axis2.xml.
After changing that, I'm able to see the WSDL correctly in the browser
(http://localhost/webservices/myService?wsdl ), but when I try to access
the service from the client it is not working.

  

  When I observed the SOAP Address in the WSDL it is showing the
address as http://localhost/webservices/myService/myService (service
name is repeated twice) because of which when I give the end point as
http://localhost/webservices/myService i'm getting a EPR not found
exception.

 

Thanks

Raghu

 

-Original Message-
From: zhongliang zhang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:05 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Simple (?) config question

 

Maybe you can do that by adding following two parameters into axis2.xml

 

 parameter name=contextRoot//parameter

 parameter name=servicePathaxis2/parameter

I did not try it myself,maybe you can have a try.

 

On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

 Hi Deepal,

 

According to what you said I've changed the contextRoot 

 servicePath in axis2.xml.

 

I've changed it like this.

 

 parameter name=contextRoot/webservices/parameter

 parameter name=servicePathmyService/parameter

 

 And when I go to http://localhost/webservices/myService?wsdl I'm able
to

 see the WSDL.

 

 But in the WSDL the end point address is shown as

 

 soap:address

 location=http://10.5.1.241:80/webservices/myService/myService; /

 

 Because of this when I'm trying to run the client and access my

 webservice, I'm getting an exception

 

 The service cannot be found for the endpoint reference (EPR)

 http://localhost/webservices/myService

 

 

 Thanks

 Raghu

 -Original Message-

 From: Deepal jayasinghe [mailto:[EMAIL PROTECTED]

 Sent: Monday, October 08, 2007 8:27 AM

 To: axis-user@ws.apache.org

 Subject: Re: [AXIS2] Simple (?) config question

 

 Lorenzo wrote:

  Hi all,

 

  i need to change axis2 services path from

 

  http://localhost:8080/axis2/services/myService

 

  to

 

  http://localhost:8080/axis2/myService

 

  (possibly without move .aar archives) but i didn't find where to do

 it..

 

 You can do that by adding following two parameters into axis2.xml

 

  parameter name=contextRoot/axis2/parameter

parameter name=servicePathmyService/parameter

 

 Thanks

 Deepal

 

 

 

 -

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

 -

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Raghu Upadhyayula
Hi Jeff,

 

I did change my web.xml servlet mapping to look for URL
pattern /* instead of /services/*



But the soap end point is pointing to
http://localhost/webservices/myServiceName/myServiceName (myServiceName
repeated twice).

 

Thanks

Raghu

 



From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services from
the URL)

 

Edit your web.xml file to change the servlet mapping.

Seach for url-pattern then edit the services/service_name and
replace it with just a /service_name. It's very easy to screw this
sort of thing up and take hours to get back to where you were. If you
can live with the services/, I would leave it alone.

-jeff

 





From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36 PM
To: axis-user@ws.apache.org
Subject: How to change the webservices URL (remove /services
from the URL)

Hi,

 

I want to change my webservice URL from

 

http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName (Remove /services
from the URL)

 

I've changed the following 2 parameters in axis2.xml

 

parameter name=contextRoot/webservices/parameter

parameter name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using the URL
http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing (soap:address location in
the WSDL) to http://localhost/webservices/myServiceName/myServiceName
(Observe that myServiceName is repeated twice).

 

Now when I try to access the webservice from the client for End
Point http://localhost/webservice/myServiceName I'm getting an exception
saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 





From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot  servicePath in
axis2.xml.  After changing that, I'm able to see the WSDL correctly in
the browser (http://localhost/webservices/myService?wsdl ), but when I
try to access the service from the client it is not working.

  

  When I observed the SOAP Address in the WSDL it is showing
the address as http://localhost/webservices/myService/myService (service
name is repeated twice) because of which when I give the end point as
http://localhost/webservices/myService i'm getting a EPR not found
exception.

 

Thanks

Raghu

 

-Original Message-
From: zhongliang zhang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:05 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Simple (?) config question

 

Maybe you can do that by adding following two parameters into
axis2.xml

 

 parameter name=contextRoot//parameter

 parameter name=servicePathaxis2/parameter

I did not try it myself,maybe you can have a try.

 

On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED]
wrote:

 Hi Deepal,

 

According to what you said I've changed the contextRoot


 servicePath in axis2.xml.

 

I've changed it like this.

 

 parameter name=contextRoot/webservices/parameter

 parameter name=servicePathmyService/parameter

 

 And when I go to http://localhost/webservices/myService?wsdl
I'm able to

 see the WSDL.

 

 But in the WSDL the end point address is shown as

 

 soap:address


location=http://10.5.1.241:80/webservices/myService/myService; /

 

 Because of this when I'm trying to run the client and access
my

 webservice, I'm getting an exception

 

 The service cannot be found for the endpoint reference (EPR)

 http://localhost/webservices/myService

 

 

 Thanks

 Raghu

 -Original Message-

 From: Deepal jayasinghe [mailto:[EMAIL PROTECTED]

 Sent: Monday, October 08, 2007 8:27 AM

 To: axis-user@ws.apache.org

 Subject: Re: [AXIS2] Simple (?) config question

 

 Lorenzo wrote:

  Hi all

RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Raghu Upadhyayula
portType name=ResponsysWS

service name=ResponsysWSService

soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW
SService /

 

Thanks

Raghu



From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 12:19 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services from
the URL)

 

Also,

what is the name of your service, and what is the name of your portType?

I suspect they are both the same name.

-jeff

 





From: Walker, Jeff 
Sent: Wednesday, October 17, 2007 3:16 PM
To: 'axis-user@ws.apache.org'
Subject: RE: How to change the webservices URL (remove /services
from the URL)

What's in your wsdl?
ie. what is soap:address location=?/ equal to?

-jeff

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 3:04 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove
/services from the URL)

Hi Jeff,

 

I did change my web.xml servlet mapping to
look for URL pattern /* instead of /services/*



But the soap end point is pointing to
http://localhost/webservices/myServiceName/myServiceName (myServiceName
repeated twice).

 

Thanks

Raghu

 





From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove
/services from the URL)

 

Edit your web.xml file to change the servlet mapping.

Seach for url-pattern then edit the
services/service_name and replace it with just a /service_name.
It's very easy to screw this sort of thing up and take hours to get back
to where you were. If you can live with the services/, I would leave it
alone.

-jeff

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36 PM
To: axis-user@ws.apache.org
Subject: How to change the webservices URL
(remove /services from the URL)

Hi,

 

I want to change my webservice URL from

 


http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName
(Remove /services from the URL)

 

I've changed the following 2 parameters in
axis2.xml

 

parameter
name=contextRoot/webservices/parameter

parameter
name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using
the URL http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing
(soap:address location in the WSDL) to
http://localhost/webservices/myServiceName/myServiceName (Observe that
myServiceName is repeated twice).

 

Now when I try to access the webservice from the
client for End Point http://localhost/webservice/myServiceName I'm
getting an exception saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot 
servicePath in axis2.xml.  After changing that, I'm able to see the WSDL
correctly in the browser (http://localhost/webservices/myService?wsdl ),
but when I try to access the service from the client it is not working

RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Raghu Upadhyayula
The soap:address I've shown you below is from the generated WSDL from
the ?wsdl.  I can't change that.

 

Thanks

Raghu

 



From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 1:32 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services from
the URL)

 

I'm confused at to what is working now, and what you're looking for.

But try:

soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService /

 





From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 4:05 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services
from the URL)

portType name=ResponsysWS

service name=ResponsysWSService

soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW
SService /

 

Thanks

Raghu





From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 12:19 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services
from the URL)

 

Also,

what is the name of your service, and what is the name of your
portType?

I suspect they are both the same name.

-jeff

 





From: Walker, Jeff 
Sent: Wednesday, October 17, 2007 3:16 PM
To: 'axis-user@ws.apache.org'
Subject: RE: How to change the webservices URL (remove
/services from the URL)

What's in your wsdl?
ie. what is soap:address location=?/ equal to?

-jeff

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 3:04 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL
(remove /services from the URL)

Hi Jeff,

 

I did change my web.xml servlet
mapping to look for URL pattern /* instead of /services/*



But the soap end point is pointing
to http://localhost/webservices/myServiceName/myServiceName
(myServiceName repeated twice).

 

Thanks

Raghu

 





From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL
(remove /services from the URL)

 

Edit your web.xml file to change the servlet
mapping.

Seach for url-pattern then edit the
services/service_name and replace it with just a /service_name.
It's very easy to screw this sort of thing up and take hours to get back
to where you were. If you can live with the services/, I would leave it
alone.

-jeff

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36
PM
To: axis-user@ws.apache.org
Subject: How to change the webservices
URL (remove /services from the URL)

Hi,

 

I want to change my webservice URL from

 


http://localhost/webservices/services/myServiceName 

 

To

 


http://localhost/webservices/myServiceName (Remove /services from the
URL)

 

I've changed the following 2 parameters
in axis2.xml

 

parameter
name=contextRoot/webservices/parameter

parameter
name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL
using the URL http://localhost/webservices/myServiceName?wsdl
successfully

RE: [AXIS2] Simple (?) config question

2007-10-11 Thread Raghu Upadhyayula
Hi Zhang,

 

  I've tried changing the contextRoot  servicePath in axis2.xml.
After changing that, I'm able to see the WSDL correctly in the browser
(http://localhost/webservices/myService?wsdl ), but when I try to access
the service from the client it is not working.

  

  When I observed the SOAP Address in the WSDL it is showing the
address as http://localhost/webservices/myService/myService (service
name is repeated twice) because of which when I give the end point as
http://localhost/webservices/myService i'm getting a EPR not found
exception.

 

Thanks

Raghu

 

-Original Message-
From: zhongliang zhang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:05 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Simple (?) config question

 

Maybe you can do that by adding following two parameters into axis2.xml

 

 parameter name=contextRoot//parameter

 parameter name=servicePathaxis2/parameter

I did not try it myself,maybe you can have a try.

 

On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

 Hi Deepal,

 

According to what you said I've changed the contextRoot 

 servicePath in axis2.xml.

 

I've changed it like this.

 

 parameter name=contextRoot/webservices/parameter

 parameter name=servicePathmyService/parameter

 

 And when I go to http://localhost/webservices/myService?wsdl I'm able
to

 see the WSDL.

 

 But in the WSDL the end point address is shown as

 

 soap:address

 location=http://10.5.1.241:80/webservices/myService/myService; /

 

 Because of this when I'm trying to run the client and access my

 webservice, I'm getting an exception

 

 The service cannot be found for the endpoint reference (EPR)

 http://localhost/webservices/myService

 

 

 Thanks

 Raghu

 -Original Message-

 From: Deepal jayasinghe [mailto:[EMAIL PROTECTED]

 Sent: Monday, October 08, 2007 8:27 AM

 To: axis-user@ws.apache.org

 Subject: Re: [AXIS2] Simple (?) config question

 

 Lorenzo wrote:

  Hi all,

 

  i need to change axis2 services path from

 

  http://localhost:8080/axis2/services/myService

 

  to

 

  http://localhost:8080/axis2/myService

 

  (possibly without move .aar archives) but i didn't find where to do

 it..

 

 You can do that by adding following two parameters into axis2.xml

 

  parameter name=contextRoot/axis2/parameter

parameter name=servicePathmyService/parameter

 

 Thanks

 Deepal

 

 

 

 -

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

 -

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



RE: [AXIS2] Simple (?) config question

2007-10-10 Thread Raghu Upadhyayula
Hi Deepal,

According to what you said I've changed the contextRoot 
servicePath in axis2.xml.

I've changed it like this.

parameter name=contextRoot/webservices/parameter
parameter name=servicePathmyService/parameter

And when I go to http://localhost/webservices/myService?wsdl I'm able to
see the WSDL.

But in the WSDL the end point address is shown as 

soap:address
location=http://10.5.1.241:80/webservices/myService/myService; /

Because of this when I'm trying to run the client and access my
webservice, I'm getting an exception 

The service cannot be found for the endpoint reference (EPR)
http://localhost/webservices/myService


Thanks
Raghu
-Original Message-
From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 08, 2007 8:27 AM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Simple (?) config question

Lorenzo wrote:
 Hi all,

 i need to change axis2 services path from 

 http://localhost:8080/axis2/services/myService

 to

 http://localhost:8080/axis2/myService

 (possibly without move .aar archives) but i didn't find where to do
it..
   
You can do that by adding following two parameters into axis2.xml

 parameter name=contextRoot/axis2/parameter
parameter name=servicePathmyService/parameter

Thanks
Deepal



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


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



[Axis2] How to remove namespaces from SOAP response in Axis2

2007-10-09 Thread Raghu Upadhyayula
Hi,

 

Does anyone know how to remove namespaces from SOAP response in Axis2?

 

Here is an example of what I wanted.

 

Original SOAP Envelope

 

soapenv:Envelope

xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

   soapenv:Body

  ns1:loginResponse xmlns:ns1=urn:ws.rsys.com

 ns1:loginReturn-31853ad2:1157fefd8cf:5b3c/ns1:loginReturn

  /ns1:loginResponse

   /soapenv:Body

/soapenv:Envelope

 

SOAP Envelope After removing namespaces

 

soapenv:Envelope

xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

xmlns=urn:ws.rsys.com

   soapenv:Body

  loginResponse

 loginReturn-31853ad2:1157fefd8cf:5b3c/loginReturn

  /loginResponse

   /soapenv:Body

/soapenv:Envelope

 

Thanks in advance

Raghu



RE: [Axis2] How to remove namespaces from SOAP response in Axis2

2007-10-09 Thread Raghu Upadhyayula
Thanks Alick.  I haven't tried this option.  I'll try and see.

 

Thanks

Raghu

 



From: Alick Buckley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 09, 2007 5:03 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] How to remove namespaces from SOAP response in
Axis2

 

Did you try the suppress-prefixes option in WSDL2Java?

http://svn.apache.org/viewvc?view=revrevision=480336
http://svn.apache.org/viewvc?view=revrevision=480336 

Fix for AXIS2-1784 - [ADB] Suppress prefixes in the soap
request/response for performance

https://issues.apache.org/jira/browse/AXIS2-1784
https://issues.apache.org/jira/browse/AXIS2-1784 

added an option -sp to suppress namespace prefixes in
WSDL2Java/SchemaCompiler.


===

-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 October 2007 9:54 AM
To: axis-user@ws.apache.org
Subject: [Axis2] How to remove namespaces from SOAP response in Axis2

Hi,

 

Does anyone know how to remove namespaces from SOAP response in
Axis2?

 

Here is an example of what I wanted.

 

Original SOAP Envelope

 

soapenv:Envelope

xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

   soapenv:Body

  ns1:loginResponse xmlns:ns1=urn:ws.rsys.com


ns1:loginReturn-31853ad2:1157fefd8cf:5b3c/ns1:loginReturn

  /ns1:loginResponse

   /soapenv:Body

/soapenv:Envelope

 

SOAP Envelope After removing namespaces

 

soapenv:Envelope

xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

xmlns=urn:ws.rsys.com

   soapenv:Body

  loginResponse

 loginReturn-31853ad2:1157fefd8cf:5b3c/loginReturn

  /loginResponse

   /soapenv:Body

/soapenv:Envelope

 

Thanks in advance

Raghu



RE: Rampart-1.1.mar

2007-09-21 Thread Raghu Upadhyayula
Rajesh,

 

You can find the distribution for all Rampart 1.3 at
http://www.apache.org/dyn/mirrors/mirrors.cgi/ws/rampart/1_3/rampart-1.3
.zip

 

Thanks

Raghu

 



From: Rajesh, Peter (CLAIMS, WIP) [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 21, 2007 10:43 AM
To: [EMAIL PROTECTED]
Cc: axis-user@ws.apache.org
Subject: Rampart-1.1.mar

 

After adding the rampart-1.1.mar in the Web-Inf/modules folder and
adding the same in modules.list file and restart the Weblogic, below
error is thrown.

I tried to get the rampart jar file, but I couldn't find it in the
Apache website. Please let me know how to resolve this error.

 

Caused by: java.lang.ClassNotFoundException: org.apache.rampart.Rampart 
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa
der.java:199) 
at
weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAware
ClassLoader.java:6 
at java.lang.ClassLoader.loadClass(ClassLoader.java:289) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:235) 
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
der.java:224) 
at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAware
ClassLoader.java:4 
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

at java.lang.Class.forName0(Native Method) 
at java.lang.Class.forName(Class.java:141) 
at org.apache.axis2.util.Loader.loadClass(Loader.java:261) 
at org.apache.axis2.util.Loader.loadClass(Loader.java:229) 
at
org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.
java:66) 

Thanks  Regards, 

Peter Rajesh | 860-547-3881 




*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution
is
strictly prohibited. If you are not the intended recipient, please
notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.

*



RE: ERP and .aar

2007-09-21 Thread Raghu Upadhyayula
Hi Nasreen,

 

You can check the Axis2 Quickstart guide at
http://ws.apache.org/axis2/1_3/quickstartguide.html  In this under Axis2
Services, it'll show the structure of an axis2 war file  also the
structure of an aar file.



For detailed explanation, you can check the Axis2 user guide
at http://ws.apache.org/axis2/1_3/userguide.html

 

Thanks

Raghu

 



From: Nasreen Laghari [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 21, 2007 1:56 PM
To: [EMAIL PROTECTED]; axis-user@ws.apache.org
Subject: ERP and .aar

 

Hi All, 
 
I have find out why i'm having exception on EndpointReference when I try
to access my webservice and why is working fine with version service
(Axis2 defaullt service, HappyAxis.jsp)
 
Version service is in .aar extesion that means this object accept .aar
servie.
 
Could Any1 please help me how to make .aar service and/or how can I
access my service without converting it to .aar
 
 
   EndpointReference targetEPR = new EndpointReference(IP +
configctx.getServicePath() + /Random);
 
Exception:
 
The endpoint reference (EPR) for the Operation not found is
http://localhost:8080/axis2/services/Random and the WSA Action =
urn:anonOutInOp 
 
 
 
Thank you So much
 
Nasreen
 
 



More photos; more messages; more whatever - Get MORE with Windows
Live(tm) Hotmail(r). NOW with 5GB storage. Get more!
http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_mig
ration_HM_mini_5G_0907 



RE: What new in Axis2?

2007-09-05 Thread Raghu Upadhyayula
Ashish,

 

Check this http://ws.apache.org/axis2/

 

Thanks

Raghu

 



From: Ashish Jain [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 6:23 AM
To: [EMAIL PROTECTED]; axis-user@ws.apache.org
Subject: What new in Axis2?

 

Hi All!

I am new to apache Axis. Can someone tell me what is new in AXIS2 as
compared to the previous version?


Thanks in advance

regards
Ashish



RE: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3 Vs Axis 2 code generation

2007-08-27 Thread Raghu Upadhyayula
Hi Amila,

 

I tried this with the nightly build jars from axis2-1.3-SNAPSHOT-bin.zip
(adb.jar  adb-codegen.jar) of Aug. 27 2007 09:33 and in this
xsd:anyType is converted into OMElement, not java.lang.Object, but it
worked with the nightly build jars from axis2-SNAPSHOT-bin.zip (adb.jar
 adb-codegen.jar) of Aug. 27 2007 07:44

 

Which version of the jars should I use?

 

Thanks

Raghu

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 21, 2007 10:54 PM
To: axis-user@ws.apache.org
Subject: Re: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3
Vs Axis 2 code generation

 


basically you are asking when is the Axis2 1.4.
we have just release Axis2 1.3 so it would be from another 3 or 4 months
time.

Amila.



On 8/22/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

Hi Amila,

 

It worked with the nightly build jars (adb.jar  adb-codegen.jar).  When
will this change be moved to the main release (I mean which Axis2
version)?

 

Thanks

Raghu

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 20, 2007 9:36 PM


To: axis-user@ws.apache.org
Subject: Re: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3
Vs Axis 2 code generation

 

 

On 8/17/07, Raghu Upadhyayula  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi Amila,

 

I'm currently using Axis2 1.3 version, is this bug fixed in that or do I
need to get nightly build for the fix.


it is only available in trunk. you can try this, get a nighly build and
replace  adb-codgen.jar and adb.jar with the nightly build jars. Then it
should work. 

 

And what is the fix?  If I define a parameter type as
xsd:anyType in my WSDL, does WSDL2Java convert it as java.lang.Object in
the generated sources 


yes, if you use nighly build jars.

 

or does it convert to org.apache.axiom.om.OMElement?

 

Thanks

Raghu

 





From: Amila Suriarachchi [mailto: [EMAIL PROTECTED] 
Sent: Thursday, August 16, 2007 9:36 PM
To: axis-user@ws.apache.org
Subject: Re: OMElement Vs java.lang.Object for (xsd:anyType) -
Axis 1.3 Vs Axis 2 code generation

 

this is a bug in Axis2. It has fixed in the trunk. please have a
look at with a nightly build.

On 8/11/07, Raghu Upadhyayula  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi,

In my webservices, I have a method which has a parameter defined
as type=xsd:anyType in the WSDL.

 

In Axis 1.3, when I did WSDL2Java for my WSDL that parameter got
converted to java.lang.Object.

 

But in Axis2 1.2, when I did WSDL2Java for the same WSDL, that
parameter got converted to org.apache.axiom.om.OMElement.

 

My question is, if I need to pass a Java Object to my webservice
method, how do I convert it to OMElement and pass it to the method from
the client code  how do I convert OMElement back to java.lang.Object in
my server code?

 

 

Thanks

Raghu




-- 
Amila Suriarachchi,
WSO2 Inc. 




-- 
Amila Suriarachchi,
WSO2 Inc. 




-- 
Amila Suriarachchi,
WSO2 Inc. 



RE: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3 Vs Axis 2 code generation

2007-08-21 Thread Raghu Upadhyayula
Hi Amila,

 

It worked with the nightly build jars (adb.jar  adb-codegen.jar).  When
will this change be moved to the main release (I mean which Axis2
version)?

 

Thanks

Raghu

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 20, 2007 9:36 PM
To: axis-user@ws.apache.org
Subject: Re: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3
Vs Axis 2 code generation

 

 

On 8/17/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

Hi Amila,

 

I'm currently using Axis2 1.3 version, is this bug fixed in that or do I
need to get nightly build for the fix.


it is only available in trunk. you can try this, get a nighly build and
replace  adb-codgen.jar and adb.jar with the nightly build jars. Then it
should work. 

 

And what is the fix?  If I define a parameter type as
xsd:anyType in my WSDL, does WSDL2Java convert it as java.lang.Object in
the generated sources 


yes, if you use nighly build jars.

 

or does it convert to org.apache.axiom.om.OMElement?

 

Thanks

Raghu

 





From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 16, 2007 9:36 PM
To: axis-user@ws.apache.org
Subject: Re: OMElement Vs java.lang.Object for (xsd:anyType) -
Axis 1.3 Vs Axis 2 code generation

 

this is a bug in Axis2. It has fixed in the trunk. please have a
look at with a nightly build.

On 8/11/07, Raghu Upadhyayula  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi,

In my webservices, I have a method which has a parameter defined
as type=xsd:anyType in the WSDL.

 

In Axis 1.3, when I did WSDL2Java for my WSDL that parameter got
converted to java.lang.Object.

 

But in Axis2 1.2, when I did WSDL2Java for the same WSDL, that
parameter got converted to org.apache.axiom.om.OMElement.

 

My question is, if I need to pass a Java Object to my webservice
method, how do I convert it to OMElement and pass it to the method from
the client code  how do I convert OMElement back to java.lang.Object in
my server code?

 

 

Thanks

Raghu




-- 
Amila Suriarachchi,
WSO2 Inc. 




-- 
Amila Suriarachchi,
WSO2 Inc. 



RE: [axis2].1.3 ADB exception

2007-08-20 Thread Raghu Upadhyayula
Hi Ajay,

 

axis2-adb-1.3.jar contains the org.apache.axis2.databinding.ADBException
class.  Please verify your classpath in eclipse and check whether this
jar is available or not.

 

Thanks

Raghu

 



From: Ajay Joshi [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 20, 2007 8:50 AM
To: axis-user@ws.apache.org
Subject: [axis2].1.3 ADB exception

 

I am getting Missing class: org.apache.axis2.databinding.ADBException
whiling using axis2 from Eclipse and OC4J environment.

 

I have included all .jars from C:\axis2-1.3\lib in my classpath but
still I could not find any org.apache.axis2.databinding.ADBException
from Eclipse search window.

 

do I need to setup ADB separately? 

 

I was able to test C:\axis2-1.3\samples\databinding locally.

 

Earlier I generated web-service client using C:\axis2-1.3\binwsdl2java
-t -uri my.wsdl successfully using my XSD(s).

 

Please let me know how to get and use axis2 databinding package.

 

Regards,

Ajay

 



RE: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3 Vs Axis 2 code generation

2007-08-17 Thread Raghu Upadhyayula
Hi Amila,

 

I'm currently using Axis2 1.3 version, is this bug fixed in that or do I
need to get nightly build for the fix.

 

And what is the fix?  If I define a parameter type as xsd:anyType in my
WSDL, does WSDL2Java convert it as java.lang.Object in the generated
sources or does it convert to org.apache.axiom.om.OMElement?

 

Thanks

Raghu

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 16, 2007 9:36 PM
To: axis-user@ws.apache.org
Subject: Re: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3
Vs Axis 2 code generation

 

this is a bug in Axis2. It has fixed in the trunk. please have a look at
with a nightly build.

On 8/11/07, Raghu Upadhyayula  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi,

In my webservices, I have a method which has a parameter defined as
type=xsd:anyType in the WSDL.

 

In Axis 1.3, when I did WSDL2Java for my WSDL that parameter got
converted to java.lang.Object.

 

But in Axis2 1.2, when I did WSDL2Java for the same WSDL, that parameter
got converted to org.apache.axiom.om.OMElement.

 

My question is, if I need to pass a Java Object to my webservice method,
how do I convert it to OMElement and pass it to the method from the
client code  how do I convert OMElement back to java.lang.Object in my
server code?

 

 

Thanks

Raghu




-- 
Amila Suriarachchi,
WSO2 Inc. 



RE: WSDL2Java is not creating the classes!

2007-08-17 Thread Raghu Upadhyayula
Hi Krithika,

 

Your email is confusing to me.

 

In your email subject you said that WSDL2Java is not creating the
classes and below in your email body, you are also saying that Though
the java source files are created inside the samples/stock/client
directory. Am I missing anything?

 

The java files are getting created right? So what is the issue here?
Can you explain it in detail.

 

Thanks

Raghu

 

-Original Message-
From: Krithika [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 17, 2007 8:19 AM
To: axis-user@ws.apache.org
Subject: WSDL2Java is not creating the classes!

 

 

Hi,

 

  I'm following the documentation in
http://ws.apache.org/wss4j/axis.html .

And I'm successful in setting up Axis 1.2/. I have installed WSS4J and
have

created and deployed the service (stock-wss-01).

 

In the step which talks about Creating the Client the doc says :

 

Use WSDL2Java to generate the client service bindings:

java org.apache.axis.wsdl.WSDL2Java -o .

-Nhttp://fox:8080/axis/services/stock-wss-01 samples.stock.client

http://fox:8080/axis/services/stock-wss-01?wsdl

  A bunch of java classes will be created under samples/stock/client,

including the StockQuoteServiceServiceLocator.

 

I guess the url should have localhost (instead of fox). When I execute
this

command, the class are not  getting created. Though the java source
files

are created inside the samples/stock/client directory. Am I missing

anything?

 

My class path is this :

 

CLASSPATH=.;C:\MyServlets;C:\Program Files\Apache Software
Foundation\Tomcat

5.5

\common\lib\servlet-api.jar;C:\Program Files\Apache Software

Foundation\Tomcat 5

.5\common\lib\jsp- api.jar;C:\Program

Files\Java\jdk1.5.0_12\lib\tools.jar;C:\Pro

gram

Files\Java\jre1.5.0_12\lib\ext\QTJava.zip;C:\axis\lib\axis.jar;C:\axis\l
ib\

commons-discovery-0.2.jar;C:\axis\lib\commons-logging-1.0.4.jar;C:\axis\
lib\jaxr

pc.jar;C:\axis\lib\saaj.jar;C:\axis\lib\log4j-1.2.8.jar;C:\axis\lib\xml-
apis.jar

;C:\axis\lib\xerces.jar;C:\axis\lib\activation.jar;C:\axis\lib\wsdl4j-1.
5.1.jar;

C:\axis;C:\axis\lib\log4j.properties;

 

Any pointers on this would be highly appreciated. 

-- 

View this message in context:
http://www.nabble.com/WSDL2Java-is-not-creating-the-classes%21-tf4286366
.html#a12201527

Sent from the Axis - User mailing list archive at Nabble.com.

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



RE: access to ServletConfig from service class

2007-08-14 Thread Raghu Upadhyayula
Hi Feh,

You can get the ServletContext as follows (In Axis 1.3).  Which
Axis version are you using?
For Axis 1.3
  MessageContext context = MessageContext.getCurrentContext(); 
  HttpServlet servlet =
(HttpServlet)context.getProperty(HTTPConstants.MC_HTTP_SERVLET);
  ServletContext servletContext = servlet.getServletContext();

For Axis2 1.2
  MessageContext context =
MessageContext.getCurrentMessageContext(); 
  HttpServlet servlet =
(HttpServlet)context.getProperty(HTTPConstants.MC_HTTP_SERVLET);
  ServletContext servletContext = servlet.getServletContext();

Thanks
Raghu

-Original Message-
From: feh [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 14, 2007 2:04 PM
To: axis-user@ws.apache.org
Subject: access to ServletConfig from service class


I've embedded Axis2 in an existing application running under Tomcat,
such
that the AxisServlet is specified in web.xml, and all requests for
/app/services/* are routed to Axis.

Axis then takes care of calling my service methods for a given request. 

Does anybody know how I can get a reference to the ServletContext or
ServletConfig from within a service method?

Thanks!
-- 
View this message in context:
http://www.nabble.com/access-to-ServletConfig-from-service-class-tf42697
06.html#a12152200
Sent from the Axis - User mailing list archive at Nabble.com.


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


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



RE: [Axis2][VOTE]Axis2 1.3 release artifacts (#take3)

2007-08-13 Thread Raghu Upadhyayula
+1

Thanks
Raghu

-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 12, 2007 6:51 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: Re: [Axis2][VOTE]Axis2 1.3 release artifacts (#take3)

+1

Thanks,
Ruchith

On 8/10/07, Deepal jayasinghe [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi all,

 I have uploaded Axis2 1.3 (take3) into my Apache home location [1]
 again . As a result of we found a few issues in 1.3 take2 I had to
 upload the artifacts again and call for a new vote. I will keep open
 the vote for 72 hrs from now and will do the Axis2 1.3 release on
 Monday 13th Aug 2007.

 You can find both IntelliJ idea and Eclipse plugin artifacts in the
 tools folder [2]

 Please try to cover the following areas when testing.
 - - Code generation
 - - Sessions
 - - Web application
 - - In different application servers
 - - Both JDK 1.5 and JDK 1.4
 - - Java2WSDL
 - - POJOs
 - - And whatever the JIRA we have marked as fixed.

 You can find maven2 repository under my home directory as well [3]. I
 have host the web site for 1.3 in [4] please have a look at that as
well

 I will do the final release on Friday (10th Aug 2007), here is my +1
 for the release date as well as for release artifacts.


 [1] : http://people.apache.org/~deepal/axis2/1.3-take3/
 [2] : http://www-lk.wso2.com/~deepal/1.3-tools/
 [3] : http://people.apache.org/~deepal/axis2/1.3-take3/m2-repo/
 [4] : http://www-lk.wso2.com/~deepal/axis2/


 P.S : Please note that I need to have two more PMC vote to go ahead
 with the release, so please give us the support by voting for the
release.


 Thanks
 Deepal
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.2 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGvFhvjOGcXNDx0CARAh+4AJ49M1d86/v39C6Z0WnMcxsK5RgF3QCdGD8d
 43gXJ+tvuyHhc/nI1t1u1fw=
 =sqos
 -END PGP SIGNATURE-


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




-- 
www.ruchith.org
www.wso2.org

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


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



RE: returning complex object with Axis2

2007-08-10 Thread Raghu Upadhyayula
Hi Feh,

 

 Here is how you return complex object with Axis2 (I'm showing this
in WSDL 1.1 version).

  

  For Example:

  Say you have the following method.

  

  public Employee findEmployee (long empId);

  

  This method is returning an Employee object which is a complex
object.

  

  The Employee object looks like this.

  

  Employee

  String empName;

  String empDesignation;

  intempAge

  String empDepartmentName

  

  In your WSDL you represent this as follows (I'm showing the WSDL
in document/literal style and I'm showing only the schema definition
part, not the message, portType, binding  service parts, I hope you can
handle those).

  

definitions targetNamespace=urn:ws.rsys.com 

 xmlns=http://schemas.xmlsoap.org/wsdl/; 

 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; 

 xmlns:xsd=http://www.w3.org/2001/XMLSchema;

 xmlns:tns=your namespace

  types

  schema elementFormDefault=qualified

  xmlns=http://www.w3.org/2001/XMLSchema; 

  targetNamespace=your namespace

 

  element name=findEmployee

  complexType

  sequence

  element name=empId type=xsd:long/

  /sequence

  /complexType

  /element

  

  complexType name=Employee

  sequence

  elemenet name=name type=xsd:string/

  elemenet name=designation type=xsd:string/

  elemenet name=age type=xsd:int/

  elemenet name=departmentName
type=xsd:string/

  /sequence

  /complexType

  

  element name=findEmployeeResponse

  complexType

  sequence

  element name=findEmployeeReturn
type=tns:Employee/

  /sequence

  /complexType

  /element

  /schema

  /types

  ... message ...

  ... portType ...  

  ... binding ...

  ... service ...

/definitions

  

Thanks

Raghu

-Original Message-
From: feh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 09, 2007 1:58 PM
To: axis-user@ws.apache.org
Subject: returning complex object with Axis2

 

 

Please bear with me...it's been a few months since I've worked with Axis
2,

so my description of the situation may not be very clear...

 

I've learned just enough about Axis 2 to write a soap service. It is a

little bit unusual, in that the soap service was added to an existing
web

application, running under Tomcat. From what I remember, Axis 2 was
designed

to be its own container, so I had to find instructions somewhere on the
net

(where, I don't remember), which outlined how to incorporate Axis2 into
an

existing web app. Needless to say, this is probably not a standard

installation.

 

Anyway, all my services currently return primitive values (String, int,

int[], etc). I'm wondering how to return complex objects, if it's
possible. 

 

Is there documentation or a howto that covers this situation? In all the

examples I've looked at so far, the service methods all return
primitives.

 

Thanks.

-- 

View this message in context:
http://www.nabble.com/returning-complex-object-with-Axis2-tf4245196.html
#a12080657

Sent from the Axis - User mailing list archive at Nabble.com.

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



RE: [Axis2] Zero Blockers for 1.3

2007-08-08 Thread Raghu Upadhyayula
Hi Dims,

 This is regarding JIRA AXIS2-2352.
 
Even though the NPE in AxisServlet.java is fixed in AXIS2 1.3 SNAPSHOT, 
I'm still getting NPE in my ResponsysWSServiceMessageReceiverInOut.java.  I've 
updated the JIRA with the details.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 06, 2007 6:07 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: [Axis2] Zero Blockers for 1.3

Try removing the jalopy jar. I think it is generating a huge file
which jalopy has trouble reformatting.

thanks,
dims

On 8/6/07, Jorge Fernandez [EMAIL PROTECTED] wrote:
 Hi Dims

 Axis2 3076 created. Today I tried it again and it works different. It
 doesn'f finish when generating the client if I do it without -u option.
 Yesterday it didn't work when generating both client and server at a time. I
 have all my schemas defined in the wsdl.

 I noticed one change: In version 1.2, exceptions names were built from their
 message name, adding Exception and now they are only formed with message
 name. Is this right??

 Now it generates Stub only for SOAP 1.2, doesn't it?

 Also, it is still generating
 faultExceptionNameMap.put()
 faultExceptionClassNameMap.put()
 faultMessageMap.put()
 for each operation that throws the exception, instead of generating one for
 each exception, in the client populateFaults() method. There is a JIRA
 already opened for that:Axis2 2326.

 Thanks,

 Jorge Fernández

 Davanum Srinivas [EMAIL PROTECTED] escribió:
  oops! hit send too fast...recrusion problem with wsdl imports or
 schema includes.

 -- dims

 On 8/5/07, Davanum Srinivas wrote:
  Please log a bug in JIRA with your stripped down test. could be a
  recursion problem.
 
  thanks,
  dims
 
  On 8/5/07, Jorge Fernandez wrote:
   Hi Dims,
  
   I'm getting one problem with RC3. I'm trying to generate my code for
 doing
   my testing but, wsdl2java doesn't return control back and it uses a big
   amount of resources. It seems that is generating the code or some of
 them
   but it never finishes.
  
   Regards,
  
   Jorge Fernández
  
  
   Davanum Srinivas escribió:
   Folks,
  
   At this moment there are zero blockers in JIRA for 1.3. Please try RC3
   released friday
   (http://people.apache.org/~deepal/axis2/1.3-RC3/) or
   1.3 branch's nightly build from here -
   http://people.apache.org/dist/axis2/nightly/
  
   *Please* make sure you try it out as this is the last chance before we
   cut 1.3 Final early next week.
  
   thanks,
   dims
  
   --
   Davanum Srinivas :: http://davanum.wordpress.com
  
  
 -
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   
  
   Sé un Mejor Amante del Cine
   ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .
  
  
  
 
 
  --
  Davanum Srinivas :: http://davanum.wordpress.com
 


 --
 Davanum Srinivas :: http://davanum.wordpress.com

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




  

 Sé un Mejor Amante del Cine
 ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .





-- 
Davanum Srinivas :: http://davanum.wordpress.com

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


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



RE: [Axis2] Speak Now or Forever Hold Your Peace!

2007-07-26 Thread Raghu Upadhyayula
Hi Dims,

I have a JIRA logged in long back Axis2-2352, the status shows
as resolved, though it is not yet resolved.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 26, 2007 6:00 AM
To: [EMAIL PROTECTED]; axis-user@ws.apache.org
Subject: [Axis2] Speak Now or Forever Hold Your Peace!

Folks,

We've cut 2 RC's for 1.3 release and nightlies are up and running for
the 1.3 branch as well

*PLEASE* test your scenarios with the latest RC and/or nightly and log
a JIRA bug with all details needed to recreate your problem if you see
something wrong.

1.3 RC2 - http://people.apache.org/~deepal/axis2/1.3-RC2/
1.3 Branch  Trunk Nightly -
http://people.apache.org/dist/axis2/nightly/
JIRA - https://issues.apache.org/jira/browse/AXIS2

If 1.3 Final does not work for you when we cut it, it's your own fault
:) If you have a JIRA that has not gotten the attention it deserves,
please speak up and let us know.

thanks,
dims

-- 
Davanum Srinivas :: http://davanum.wordpress.com

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


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



RE: NullPointerException when accessing a service that works in another container

2007-07-12 Thread Raghu Upadhyayula
Hi Everyone,

 

  I have the same problem.  My webservices are working fine in dev
environment(Windows), and when I deploy the webservices to a test
environment (Linux), I'm getting the same exception in the SOAP
response.  Any help is appreciated, I'm stuck with this issue for a
while.

 

java.lang.NullPointerException

 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

 

 

Thanks

Raghu

 

-Original Message-
From: Delimon, Alan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 11, 2007 1:56 PM
To: axis-user@ws.apache.org
Subject: NullPointerException when accessing a service that works in
another container

 

I recently moved my Axis service from my dev environment to a test
environment.  Both environments are Axis2 version 1.0 running in a
Tomcat 5 container under JDK 1.4.

 

In the dev environment it works fine, but in the test environment I get
this error (in the localhost log) when trying to access it with a
client:

2007-07-11 16:43:34 StandardWrapperValve[AxisServlet]: Servlet.service()
for servlet AxisServlet threw exception

java.lang.NullPointerException

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 

Any idea why that would be?  The particular line of code it complains
about looks to be referencing the request object.

 

 

Alan Delimon

Senior Software Engineer

Software Integration Group

PAETEC 

[EMAIL PROTECTED]

585-413-2127

 

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



RE: NullPointerException when accessing a service that works in another container

2007-07-12 Thread Raghu Upadhyayula
I forgot to mention the axis version I'm using.  I'm using Axis2 1.2
version.

 

Thanks

Raghu

 



From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 12, 2007 11:01 AM
To: axis-user@ws.apache.org
Subject: RE: NullPointerException when accessing a service that works in
another container

 

Hi Everyone,

 

  I have the same problem.  My webservices are working fine in dev
environment(Windows), and when I deploy the webservices to a test
environment (Linux), I'm getting the same exception in the SOAP
response.  Any help is appreciated, I'm stuck with this issue for a
while.

 

java.lang.NullPointerException

 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

 

 

Thanks

Raghu

 

-Original Message-
From: Delimon, Alan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 11, 2007 1:56 PM
To: axis-user@ws.apache.org
Subject: NullPointerException when accessing a service that works in
another container

 

I recently moved my Axis service from my dev environment to a test
environment.  Both environments are Axis2 version 1.0 running in a
Tomcat 5 container under JDK 1.4.

 

In the dev environment it works fine, but in the test environment I get
this error (in the localhost log) when trying to access it with a
client:

2007-07-11 16:43:34 StandardWrapperValve[AxisServlet]: Servlet.service()
for servlet AxisServlet threw exception

java.lang.NullPointerException

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 

Any idea why that would be?  The particular line of code it complains
about looks to be referencing the request object.

 

 

Alan Delimon

Senior Software Engineer

Software Integration Group

PAETEC 

[EMAIL PROTECTED]

585-413-2127

 

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



RE: call Axis2 Ws taking multiple parameters

2007-07-10 Thread Raghu Upadhyayula
Hi Zakaria,
 
  To pass multiple parameters to your method using the 'invoke' method 
you do it like this.
 
  this.result = (String) call.invoke(new Object[] { msg, msg1, msg2 } );
  
  In this way, you can pass as many parameters you want based on how 
many parameters your webservice accepts.
 
Thanks
Raghu



From: zakaria ghandour [mailto:[EMAIL PROTECTED]
Sent: Tue 7/10/2007 6:33 AM
To: axis-user@ws.apache.org
Subject: call Axis2 Ws taking multiple parameters




Hi,

i use 'invoke' method to call WS(1 parameter input) created in axis2.
this.result = (String)call.invoke( new Object[] { msg } );

how to call WS taking 2 parameters using the same method,

thanks



code client
---
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(uri) );
call.addParameter(new QName(http://www.intalio.com/;, start), new
QName(http://www.w3.org/2001/XMLSchema;, string), String.class,
ParameterMode.IN);
call.setOperationName(method);
call.setOperationStyle(org.apache.axis.constants.Style.DOCUMENT);
call.setOperationUse(org.apache.axis.constants.Use.LITERAL);
call.setReturnType(org.apache.axis.Constants.XSD_STRING);
this.result = (String)call.invoke( new Object[] { msg } );

--
View this message in context: 
http://www.nabble.com/call-Axis2--Ws-taking-multiple-parameters-tf4055873.html#a11520978
Sent from the Axis - User mailing list archive at Nabble.com.


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



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

[Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-07-09 Thread Raghu Upadhyayula
Hi,

 

I'm using Axis2 1.2 version.  My webservices are working
fine on my desktop, but when I deploy it into our development server
(which is a Linux machine  App. Server is JBoss), the application was
deployed correctly, but when I try to access those webservices from my
desktop I'm getting the following error.

 

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

First Element must contain the local name, Envelope

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
must contain the local name, Envelope

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

... 6 more



I've tried to get the SOAP Request  Responses and here are
those (I'm getting a NullPointerException in AxisServlet.java).

 

Login SOAP Request

 

POST /webservices/services/ResponsysWSService HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: 

User-Agent: Axis2

Host: dev-orion.corp.responsys.com:1234

Transfer-Encoding: chunked

 

119

?xml version='1.0' encoding='UTF-8'?

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

soapenv:Body

ns1:login xmlns:ns1=urn:ws.rsys.com

ns1:usernameraghu/ns1:username

ns1:passwordraghu/ns1:password

/ns1:login

/soapenv:Body

/soapenv:Envelope

0

 

Login SOAP Response

 

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=utf-8

Content-Length: 1453

Date: Mon, 25 Jun 2007 18:06:51 GMT

Connection: close

 

html

head

titleJBossWeb/2.0.0.GA - Error report/title

style

!--

H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} 

H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} 

H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} 

BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
} 

B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;} 

P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}

A {color : black;}A.name {color : black;}HR {color :
#525D76;}

--

/style

/head

body

h1HTTP Status 500 - /h1

HR size=1 noshade=noshade

pbtype/b Exception report/p

pbmessage/b u/u/p

p

bdescription/b 

uThe server encountered an internal error () that
prevented it from fulfilling this request./u

/p

p

bexception/b

pre

java.lang.NullPointerException

 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

/pre

/p

p

bnote/b 

uThe full stack trace of the root cause is available in the
JBossWeb/2.0.0.GA logs./u

/p

HR size=1 noshade=noshade

h3JBossWeb/2.0.0.GA/h3

/body

/html

 

Could anyone let me know how I can debug this issue?

 

Thanks

Raghu



RE: How to accession HttpSession inside Axis Webservice

2007-07-09 Thread Raghu Upadhyayula
Hi Ashish,

 

Here is how you access HttpSession inside Axis webservice.

 

  MessageContext context =
MessageContext.getCurrentMessageContext();

  HttpServletRequest req = (HttpServletRequest)
context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);

  HttpSession session = req.getSession(true);

 

Thanks

Raghu

 



From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 09, 2007 4:01 PM
To: axis-user@ws.apache.org
Subject: How to accession HttpSession inside Axis Webservice

 

Hi
Is it possible to access HttpSession inside SOAP webserice
i am using 
MessageContext msgContext = MessageContext.getCurrentContext();
ServletContext oCtx =
((HttpServlet)msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLET
)).getServletContext();

to access servlet context, but is it possible to access HttpSession

When i deploy a web service, does it have a HttpSession to start with?

Ashish




RE: Axis2 rest

2007-07-04 Thread Raghu Upadhyayula
Hi Anne,
 
I'm not using REST for my web services, I just gave the login sample as 
an example for zakaria's email about passing parameters to in a REST way.
 
Thanks
Raghu



From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Wed 7/4/2007 3:23 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2  rest



You should use GET only if your intention is to get a representation
of a resource -- i.e., a safe operation that does not effect any
change of state to the server.

If your intention is to make some type of change to the resource, you
should use one of the following non-safe methods: POST, PUT, or
DELETE.

As Vibhor says, if you want to follow REST constraints, then you
should design your resources in such a way that every *thing* that you
might want to get from the service has a unique URI. You should
never need to pass a complex type as input to identify the thing you
are trying to get.

Your login request is not a safe method. In a RESTful system, it
would create a resource that represents your session. Therefore you
should use POST rather than GET. But why are you doing a login in the
application payload? You should use the infrastructure for
authentication -- HTTP authentication, SSL authentication, or
WS-Security authentication.

Anne

On 7/4/07, Vibhor_Sharma [EMAIL PROTECTED] wrote:



 If you want to use POX(plain old xml) over HTTP using the POST mechanism
 then you could dispatch the complex data types. But that is not the pure
 form of REST.
 try to design your schema in such a way that you can invoke the requests
 using simple GET mechanism.

  
  From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
 Sent: Tue 7/3/2007 6:03 PM

 To: axis-user@ws.apache.org
 Subject: Re: Axis2  rest


 Perhaps one of the developers can answer this?
 I'd be more inclined to use straight HTTP than Axis2, though.

 Anne


 On 7/3/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:
 
 
 
 
  Thanks Anne.
 
 
 
  How do you submit a request having complex types with a POST?  Can you
 show me for the login method sample with User object containing username 
 password?
 
 
 
  Thanks
 
  Raghu
 
 
 
  

 
  From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, July 03, 2007 2:41 PM
  To: axis-user@ws.apache.org
  Subject: Re: Axis2  rest
 
 
 
 
  You can submit a resource representation (containing complex types) using
 PUT or POST.
  But Jeff is correct that you cannot submit a complex query parameter via
 URL encoding.
 
  Also note that encoding a password as a query parameter in a URL (per
 Raghu's example) violates just about every security best practice
 imaginable.
 
  And this time I'll bite my tongue and not rant about the inappropriateness
 of turning a method into a resource.
 
  Anne
 
 
  On 7/3/07, Walker, Jeff  [EMAIL PROTECTED] wrote:
 
  You don't pass complex types in REST web services. Period.
  It's all about those Query parameters, the name-value pairs following
  the '?' and separated by the ''.
  REST services is all about manipulating resources, not passing complex
  types.
  If you want to send complex types, then you need the so-called 'big' web
  services technologies like SOAP/WSDL.
  -jeff
 
 
  -Original Message-
  From: Raghu Upadhyayula [mailto: [EMAIL PROTECTED]
  Sent: Tuesday, July 03, 2007 3:45 PM
  To: axis-user@ws.apache.org
  Subject: RE: Axis2  rest
 
  Hi Zakaria,
 
  For the methods with simple parameters you use it like this
 
  Say I have a webservice MyService with login method and username
   password parameters, then the rest URL will look like this.
 
 
 http://localhost/axis2/services/MyService/login?username=raghupassword=
  xxx
 
  But I'm not sure how to call it if the parameter is a complex
  type, like if my login method takes in a User object which has username
   password as members of the User object, then I'm not sure how to call
  that.
 
 
  Thanks
  Raghu
 
  -Original Message-
  From: zakaria ghandour [mailto: [EMAIL PROTECTED]
  Sent: Tuesday, July 03, 2007 9:10 AM
  To: axis-user@ws.apache.org
  Subject: Re: Axis2  rest
 
 
  Hi,
 
  axis2/services/{service name}/{Operation name}
 
  can you tel me how to call ws as rest if there is parameters ??
 
  thanks
  --
  View this message in context:
 
 http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED

RE: Axis2 rest

2007-07-03 Thread Raghu Upadhyayula
Hi Zakaria,

For the methods with simple parameters you use it like this

Say I have a webservice MyService with login method and username
 password parameters, then the rest URL will look like this.
 
http://localhost/axis2/services/MyService/login?username=raghupassword=
xxx 

But I'm not sure how to call it if the parameter is a complex
type, like if my login method takes in a User object which has username
 password as members of the User object, then I'm not sure how to call
that.


Thanks
Raghu

-Original Message-
From: zakaria ghandour [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 9:10 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2  rest


Hi,

axis2/services/{service name}/{Operation name}

can you tel me how to call ws as rest if there is parameters ??

thanks
-- 
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842
Sent from the Axis - User mailing list archive at Nabble.com.


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


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



RE: Axis2 rest

2007-07-03 Thread Raghu Upadhyayula
Thanks Anne.

 

How do you submit a request having complex types with a POST?  Can you
show me for the login method sample with User object containing username
 password?

 

Thanks

Raghu

 



From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 2:41 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2  rest

 

You can submit a resource representation (containing complex types)
using PUT or POST. 
But Jeff is correct that you cannot submit a complex query parameter via
URL encoding.

Also note that encoding a password as a query parameter in a URL (per
Raghu's example) violates just about every security best practice
imaginable. 

And this time I'll bite my tongue and not rant about the
inappropriateness of turning a method into a resource.

Anne

On 7/3/07, Walker, Jeff [EMAIL PROTECTED] wrote:

You don't pass complex types in REST web services. Period. 
It's all about those Query parameters, the name-value pairs following
the '?' and separated by the ''.
REST services is all about manipulating resources, not passing complex
types.
If you want to send complex types, then you need the so-called 'big' web
services technologies like SOAP/WSDL.
-jeff


-Original Message-
From: Raghu Upadhyayula [mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ]
Sent: Tuesday, July 03, 2007 3:45 PM
To: axis-user@ws.apache.org
Subject: RE: Axis2  rest

Hi Zakaria,

For the methods with simple parameters you use it like this 

Say I have a webservice MyService with login method and username
 password parameters, then the rest URL will look like this.

http://localhost/axis2/services/MyService/login?username=raghupassword=
xxx

But I'm not sure how to call it if the parameter is a complex
type, like if my login method takes in a User object which has username 
 password as members of the User object, then I'm not sure how to call
that.


Thanks
Raghu

-Original Message-
From: zakaria ghandour [mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ]
Sent: Tuesday, July 03, 2007 9:10 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2  rest


Hi,

axis2/services/{service name}/{Operation name} 

can you tel me how to call ws as rest if there is parameters ??

thanks
--
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842 
Sent from the Axis - User mailing list archive at Nabble.com.


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


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




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

 



RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-07-02 Thread Raghu Upadhyayula
Hi Dims,

Have you got a change to take a look at this issue, I've
attached the log file to the JIRA.  I'm kind of stuck and not able to
proceed further without resolving this issue.

Thanks
Raghu

-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 29, 2007 2:52 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Hi Dims,

I've attached the log file to the JIRA (AXIS2-2352), Can you
please take a look at it and see if you can find anything related to
this issue or if you need more info from me.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 11:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Raghu,

I've reviewed the code in question..need more info. Can you switch on
log4j based logging and upload the log in a JIRA? You have to edit
commons-logging.properties and log4j.properties and put them in
WEB-INF/classes and then hit the server with your client again.

thanks,
dims

On 6/27/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:




 Hi,



 Has anyone got this issue?  I need a resolution as our
 development is not working because of this AxisFault.



 Just to recap the issue



 When I deploy my webservices on my localhost (desktop) and
test
 it using a java client, it is working fine.



 But when the same webservices project is built  deployed
on our
 development server and tested using java client, I'm getting the below
 exception.



 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 First Element must contain the local name, Envelope

 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

 at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

 at

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 at

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

 Caused by: org.apache.axiom.soap.SOAPProcessingException:
 First Element must contain the local name, Envelope

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

 at

org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

 at

org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

 ... 6 more



 I've also specified the SOAP Request  Response to  from
this
 server in the below email for reference.



 PS: I'm using Axis2 1.2, deploying the application in
JBoss on a
 Linux machine.



 Thanks

 Raghu

  


 From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 25, 2007 11:29 AM

  To: axis-user@ws.apache.org; [EMAIL PROTECTED]
  Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain
 the local name, Envelope




 Hi Dims,



   I've tried to get the request  response SOAP messages for this
 request.  Here is the request  response for this.



   Any idea why I'm getting a NPE in AxisServlet.





 Dev-Orion Login SOAP Request

 POST /webservices/services/ResponsysWSService HTTP/1.1

 Content-Type: text/xml; charset=UTF-8

 SOAPAction: 

 User-Agent: Axis2

 Host: dev-orion.corp.responsys.com:1234

 Transfer-Encoding: chunked



 119

 ?xml version='1.0' encoding='UTF-8'?

 soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

 soapenv:Body

 ns1:login xmlns:ns1=urn:ws.rsys.com

 ns1:usernameraghu/ns1:username

 ns1:passwordraghu/ns1:password

 /ns1:login

 /soapenv:Body

 /soapenv:Envelope

 0



 Dev-Orion Login SOAP Response

 HTTP/1.1 500 Internal Server Error

 Server: Apache-Coyote/1.1

 Content-Type: text

RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-29 Thread Raghu Upadhyayula
Hi Dims,

I've attached the log file to the JIRA (AXIS2-2352), Can you
please take a look at it and see if you can find anything related to
this issue or if you need more info from me.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 11:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Raghu,

I've reviewed the code in question..need more info. Can you switch on
log4j based logging and upload the log in a JIRA? You have to edit
commons-logging.properties and log4j.properties and put them in
WEB-INF/classes and then hit the server with your client again.

thanks,
dims

On 6/27/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:




 Hi,



 Has anyone got this issue?  I need a resolution as our
 development is not working because of this AxisFault.



 Just to recap the issue



 When I deploy my webservices on my localhost (desktop) and
test
 it using a java client, it is working fine.



 But when the same webservices project is built  deployed
on our
 development server and tested using java client, I'm getting the below
 exception.



 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 First Element must contain the local name, Envelope

 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

 at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

 at

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 at

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

 Caused by: org.apache.axiom.soap.SOAPProcessingException:
 First Element must contain the local name, Envelope

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

 at

org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

 at

org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

 ... 6 more



 I've also specified the SOAP Request  Response to  from
this
 server in the below email for reference.



 PS: I'm using Axis2 1.2, deploying the application in
JBoss on a
 Linux machine.



 Thanks

 Raghu

  


 From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 25, 2007 11:29 AM

  To: axis-user@ws.apache.org; [EMAIL PROTECTED]
  Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain
 the local name, Envelope




 Hi Dims,



   I've tried to get the request  response SOAP messages for this
 request.  Here is the request  response for this.



   Any idea why I'm getting a NPE in AxisServlet.





 Dev-Orion Login SOAP Request

 POST /webservices/services/ResponsysWSService HTTP/1.1

 Content-Type: text/xml; charset=UTF-8

 SOAPAction: 

 User-Agent: Axis2

 Host: dev-orion.corp.responsys.com:1234

 Transfer-Encoding: chunked



 119

 ?xml version='1.0' encoding='UTF-8'?

 soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

 soapenv:Body

 ns1:login xmlns:ns1=urn:ws.rsys.com

 ns1:usernameraghu/ns1:username

 ns1:passwordraghu/ns1:password

 /ns1:login

 /soapenv:Body

 /soapenv:Envelope

 0



 Dev-Orion Login SOAP Response

 HTTP/1.1 500 Internal Server Error

 Server: Apache-Coyote/1.1

 Content-Type: text/html;charset=utf-8

 Content-Length: 1453

 Date: Mon, 25 Jun 2007 18:06:51 GMT

 Connection: close



 html

 head

 titleJBossWeb/2.0.0.GA - Error report/title

 style

 !--

 H1

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;}

 H2

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;}

 H3

{font-family:Tahoma

RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-25 Thread Raghu Upadhyayula
Hi Dims,

I've attached a zip file to the JIRA (AXIS2-2352) which has my
client code  the wsdl file.  Please let me know if I should upload
anything else.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 6:51 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Looks similar to this one -
http://issues.apache.org/jira/browse/AXIS2-2352

Can you please zip up your sample and upload it too?

thanks,
dims

On 6/22/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:




 Hi,



 When I deploy my webservices on my localhost (desktop) and
test
 it using a java client, it is working fine.



 But when the same webservices project is built  deployed
on our
 development server and tested using java client, I'm getting the below
 exception.



 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 First Element must contain the local name, Envelope

 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

 at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

 at

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 at

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

 Caused by: org.apache.axiom.soap.SOAPProcessingException:
 First Element must contain the local name, Envelope

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

 at

org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

 at

org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

 ... 6 more



 Does anyone tell me why this is happening?



 I'm using Axis2 deployed in Jboss.



 Thanks

 Raghu




-- 
Davanum Srinivas :: http://davanum.wordpress.com

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


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



RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-25 Thread Raghu Upadhyayula
Hi Dims,

 

  I've tried to get the request  response SOAP messages for this
request.  Here is the request  response for this.

  

  Any idea why I'm getting a NPE in AxisServlet.

 

 

Dev-Orion Login SOAP Request

POST /webservices/services/ResponsysWSService HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: 

User-Agent: Axis2

Host: dev-orion.corp.responsys.com:1234

Transfer-Encoding: chunked

 

119

?xml version='1.0' encoding='UTF-8'?

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

soapenv:Body

ns1:login xmlns:ns1=urn:ws.rsys.com

ns1:usernameraghu/ns1:username

ns1:passwordraghu/ns1:password

/ns1:login

/soapenv:Body

/soapenv:Envelope

0

 

Dev-Orion Login SOAP Response

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=utf-8

Content-Length: 1453

Date: Mon, 25 Jun 2007 18:06:51 GMT

Connection: close

 

html

head

titleJBossWeb/2.0.0.GA - Error report/title

style

!--

H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} 

H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} 

H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} 

BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
} 

B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;} 

P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}

A {color : black;}A.name {color : black;}HR {color :
#525D76;}

--

/style

/head

body

h1HTTP Status 500 - /h1

HR size=1 noshade=noshade

pbtype/b Exception report/p

pbmessage/b u/u/p

p

bdescription/b 

uThe server encountered an internal error () that
prevented it from fulfilling this request./u

/p

p

bexception/b

pre

java.lang.NullPointerException

 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

/pre

/p

p

bnote/b 

uThe full stack trace of the root cause is available in the
JBossWeb/2.0.0.GA logs./u

/p

HR size=1 noshade=noshade

h3JBossWeb/2.0.0.GA/h3

/body

/html

 

Thanks

Raghu

 

-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 25, 2007 10:26 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

 

Hi Dims,

 

  I've attached a zip file to the JIRA (AXIS2-2352) which has my

client code  the wsdl file.  Please let me know if I should upload

anything else.

 

Thanks

Raghu

 

-Original Message-

From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 

Sent: Friday, June 22, 2007 6:51 PM

To: axis-user@ws.apache.org

Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must

contain the local name, Envelope

 

Looks similar to this one -

http://issues.apache.org/jira/browse/AXIS2-2352

 

Can you please zip up your sample and upload it too?

 

thanks,

dims

 

On 6/22/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

 

 

 

 

 Hi,

 

 

 

 When I deploy my webservices on my localhost (desktop) and

test

 it using a java client, it is working fine.

 

 

 

 But when the same webservices project is built  deployed

on our

 development server and tested using java client, I'm getting the below

 exception.

 

 

 

 org.apache.axis2.AxisFault: First Element must contain the local name,

 Envelope

 

 First Element must contain the local name, Envelope

 

 org.apache.axis2.AxisFault: First Element must contain the local name,

 Envelope

 

 at

 

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti

ls.java:81)

 

 at

 

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper

ation.java:356)

 

 at

 

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO

peration.java:294)

 

 at

 

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j

ava:276)

 

 at

 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 

 at

 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 

 at

 

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav

a:40)

 

 Caused

[Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-22 Thread Raghu Upadhyayula
Hi,

 

When I deploy my webservices on my localhost (desktop) and
test it using a java client, it is working fine.



But when the same webservices project is built  deployed on
our development server and tested using java client, I'm getting the
below exception.

 

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

First Element must contain the local name, Envelope

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
must contain the local name, Envelope

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

... 6 more



Does anyone tell me why this is happening?



I'm using Axis2 deployed in Jboss.

 

Thanks

Raghu

 



RE: Array in axis 2

2007-06-21 Thread Raghu Upadhyayula
Hi Chris,

 

Try changing your wsdl as shown below in blue

 

Thanks

Raghu

 



From: Chris Shah [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 20, 2007 7:33 PM
To: axis-user@ws.apache.org
Subject: Array in axis 2

 

I am writing a doc literal wsdl. I have an issue with creating an array
of objects. I have an element 'a' and another element 'b' which is an
array of objects 'a'. WSDL2JAVA gives me 

 

WARNING: Type {http://sample.com/}a missing!

 

Here are the wsdl snippets:

 

xsd:element name=a
xsd:complexType name=a
xsd:sequence
xsd:element minOccurs=0 name=str
type=xsd:string /
xsd:element minOccurs=0 name=num
type=xsd:int /
/xsd:sequence
/xsd:complexType
/xsd:element

 

   xsd:element name=b
   xsd:complexType
   xsd:sequence
 xsd:element minOccurs=0 maxOccurs=unbounded name=p
type=ns1:a/
  /xsd:sequence
   /xsd:complexType
   /xsd:element

 

ns1 is defined in the definitions as xmlns:ns1=http://mysample.com/;

 

If I specify type=a, that doesn't work either and I get the same
warning. 

 

ANy help will be appreciated.

 

TIA

Cris 

 

 

 

  



Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user
panel
http://us.rd.yahoo.com/evt=48516/*http:/surveylink.yahoo.com/gmrs/yahoo
_panel_invite.asp?a=7%20  and lay it on us. 



  1   2   >