Re: Location to call getCurrentMessageContext

2010-02-10 Thread Deepal Jayasinghe
gt; Met vriendelijke groet, > > Christian C. Schouten > > > -Original Message- > From: Deepal jayasinghe [mailto:deep...@gmail.com] > Sent: woensdag 10 februari 2010 0:16 > To: axis-user@ws.apache.org > Subject: Re: Location to call getCurrentMessageContext > >

Re: Location to call getCurrentMessageContext

2010-02-09 Thread Deepal jayasinghe
First get the service client instance, and then call the following method to get the OperationContext, once you have operation context you have access to both in and out messages contexts. getLastOperationContext Thanks, Deepal > > Dear all, > > > > From within a webservice that runs on Axis2,

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

2010-02-09 Thread Deepal Jayasinghe
Deploy there service in Application scope. Thanks, Deepal > > Hi all, > > > > I am deploying an AXIS2 web service (server side). > > > > My problem: The skeleton class (the one that performs all the business > logic) is read for the first time only when the first request is > received by the s

Re: AXIS2-2883

2010-01-28 Thread Deepal Jayasinghe
3cf794cee42816844aa0ffafacc80f229127e5941...@rrc-dte-exmb2.dte.telcordia.com%3e > > > > > *http://osdir.com/ml/axis-user-ws.apache.org/2009-11/msg00230.html* > > > > > > Are you aware of these issue? > > > > > > Regards, > >

Re: AXIS2-2883

2010-01-27 Thread Deepal Jayasinghe
> > Are you aware of these issue? > > > Regards, > Nirav > > > > > On Tue, Jan 26, 2010 at 7:58 AM, Deepal jayasinghe > mailto:deep...@gmail.com>> wrote: > > Nirav, > Yes, try to call clean up after each request call. >

Re: AXIS2-2883

2010-01-26 Thread Deepal jayasinghe
Nirav, Yes, try to call clean up after each request call. Thanks, Deepal > Hi Thilina/Glen, > Can you advice?? > > I am using Axis 2.1.5.1... I do a > soapBinding._getServiceClient().getOptions().setTimeOutinMillis() for > every call made to another webservice. Do i need to cleanup transport > af

Re: Hot Update doen't fire ServiceLifeCycle.shutDown()

2010-01-20 Thread Deepal jayasinghe
It is a bug, and should be a simple fix. Could you please create a JIRA: Thanks, Deepal > I've implemented the ServiceLifeCycle interface to create and close > connections in the startUp and shutDown methods. shutDown is fired when > Tomcat is shutdown, however it isn't fired when I perform a ho

Re: [Axis2] Invoking Interdependent Web Services in a distributed system.

2010-01-13 Thread Deepal jayasinghe
There should be some issues with your service (or the server). Are you invoking in-out operation or in-only operation ?. Because read time out indicates client can connect to the server but server does not reply, probably your service. Thanks, Deepal > Hi , > > Sorry for the late reply. > > As I s

Re: Axis2: Deploying a service to a Tomcat server

2010-01-10 Thread Deepal Jayasinghe
Oded Onn wrote: > > Hi there, > > > > I am quite new to the world of WS and Axis 2 and am sorry if my > questions seems a bit silly. However, I looked for answers in your > forums and documentation and didn’t find them. > > > > I wrote my first WS using Axis2. Started from a WSDL file and > g

Re: [Axis2] Invoking Interdependent Web Services in a distributed system.

2010-01-07 Thread Deepal Jayasinghe
> Hi All, > > I have deployed two Axis 2 web services in two different machines in > two different application servers.Service 1 should be served the > Service 2 in the other machine. > How do I resolve the service group issue here and invoke WS2 after > WS2 the other to get the final result? I a

Re: Upgrade axis2 from 1.4.1 to 1.5.1

2010-01-07 Thread Deepal jayasinghe
; except one using excludeOperations in services.xml to keep it simple. If you > try to load it using SOAPUI you will get the error. wsdl2java also gives > error. > > Thanks, > > Sanjay > > > > -Original Message- > From: Deepal Jayasinghe [mailto:dee..

Re: Upgrade axis2 from 1.4.1 to 1.5.1

2010-01-05 Thread Deepal Jayasinghe
This is a big issues, I think someone has broken Axis2 wsdl generation. Could you send us the wsdl I would like to have a look. In addition I would like to see which POJO approach you use, if you can try to give me a sample service to regenerate the issue. Thanks, Deepal Sanjay Gupta wrote: > H

Re: Third web service invoctaion always throws Timeout Exception

2010-01-05 Thread Deepal jayasinghe
Try putting this after the method call, client.cleanup(); client.cleanupTransport(); > Hello! > > I have a sample axis2 client where everything i do is invoking a web > service, the problem is that the third time i invoke such webservice > it always throws a timeout exception. I guess this has to

Re: Have Questions on POJO

2009-12-21 Thread Deepal Jayasinghe
unless you have set the session in the server side and client side. By default Axis2 service are stateless. So your set method make no senses unless you use session aware services. Thanks, Deepal > Weather result = (Weather) response[0]; > if (result == null) { >System.out.println("

Re: Have Questions on POJO

2009-12-20 Thread Deepal Jayasinghe
What is the error did you get ? Thanks, Deepal Karthik Nanjangude wrote: > Hi > > >>> Weather didn't initialize! >>> > > > I now get this error when I run the POJO client ( although the WSDL is > running properly available on the browser ) > > > Any ideas plz > > > With regards > Ka

Re: Services.xml

2009-12-17 Thread Deepal jayasinghe
ce. > myServiceInOutMessageReceiver"> > Action > > > > * > * > *Can you please guide me as to how I can change the above to suit the > requirement..If am "Action" from the endpoint and include somewhere in > the codes,it

Re: Services.xml

2009-12-17 Thread Deepal Jayasinghe
For that you need to create a dispatcher (a handler). If you are familiar with Axis2 code base you can look at some of the default dispatchers and modify that to suite for your requirement. In fact we have dispatcher called SOAPActionBased dispatcher, that would be the ideal one. Thanks., Deepal

Re: Does Axis2 support PUT method for RESTful webservices?

2009-12-16 Thread Deepal jayasinghe
Yes I am 100% sure about GET and POST. According to my understanding it also support both PUT and DELETE too . Thanks, Deepal > Hi All, > > Does Axis2 1.5.1 support GET, POST and PUT all three methods for > RESTful webservices? > > > Chinmoy -- Thank you! http://blogs.deepal.org http://deepa

Re: How to run .exe file located inside .aar

2009-11-26 Thread Deepal jayasinghe
One way to do this is you can put the exe file somewhere else and you can define the location from a parameter (in services.xml) and then use the value of the parameter to load the exe file. One other way is you can get the URI of the exe file from axisservice, and you may try to execute it from th

Re: Nightly Build

2009-11-10 Thread Deepal Jayasinghe
Try this one. http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/ Thanks, Deepal > I follow the link: http://people.apache.org/dist/axis2/nightly/ and the only > folder available is the "c" folder. So where is the nightly build of the > axis2 java? > -- Thank you! http:

Re: [Axis2] Reg. parsing of MULTIREF and including MULTIREF in server responses

2009-11-08 Thread Deepal jayasinghe
service.It would be great if you can share the examples(below) for > starters like us to explore more.. > > 1. Extract Multiref values in server from incoming requests > 2. Create Multiref values from server as response. > > > Thanks, > Raghav. > > > > >

Re: [Axis2] Reg. parsing of MULTIREF and including MULTIREF in server responses

2009-11-08 Thread Deepal Jayasinghe
It is yes and no answer. In the server side when we use RPCMessageReceiver, it supports multiref. But in the client side I am not sure whether we handle it correctly, if you can try with RPCServiceClient and see whether it works. (I guess it might work, it uses the same code as the RPCMR) Thanks,

Re: Please help on calling Axis2 Pojo Service. I really appreciate any help!!

2009-11-07 Thread Deepal jayasinghe
Can you see the service WSDL? try invoke like below and see what happen http://localhost:8080/axis2/services/YourServiceName/addNum?i=10&j=12 Thanks, Deepal > Dear all, > > I am sorry for the previous email that I sent accidentally before > finishing my email... > > I am trying to implement a si

Re: tracking down reason for AxisFault fromIllegalArgumentException

2009-10-30 Thread Deepal jayasinghe
hi Charles, I remember I fixed this issue sometimes ago, but now it has appear again in 1.5 and 1.5.1 release. If you can please create a JIRA issues (or else I can create one). It is hard for me to give the exact answer without looking at your service, if there is any possibility of creating a j

Re: Dynamic innovation of WS client-JAVA

2009-10-27 Thread Deepal Jayasinghe
> I have a WS service which is not a Axis WS based service but it's > some java based service exposed which has it's own soap compiler.This > smiler service have deployed and run in multiple machines.I should > write a common client to invoke the service in a vendor independent > way.My Questi

Re: Axis2 Problem

2009-10-23 Thread Deepal jayasinghe
How about MyItem as I can see it is a not a Java bean. To be a valid Java bean you need to have following stuff in your class; - default constructor - getter and setter for each filed you want to expose Thanks, Deepal > Hello all, > > I am having a problem with Axis2. I have done some tests and

Re: Implementing Axis2 Configuration

2009-10-14 Thread Deepal Jayasinghe
Florin, In Axis2 there is something called ServiceLifeCycle class, what thats mean is that class initializes only onces. So you can use the class to do your works. And you can specify the root directory either in axis2.xml or services.xml file. Thanks, Deepal > I am implementing a web service that

Re: Individual classloaders for each Web service

2009-10-11 Thread Deepal jayasinghe
With Axis2 you can do that. > Hi! > > Is there a way to make Axis use individual classloaders for each Web > service class to ease putting each into a Java sandbox? > > Thanks! > -- Thank you! http://blogs.deepal.org http://deepal.org

Re: SOAP Message handler

2009-09-22 Thread Deepal Jayasinghe
You need to write a module with two handlers [1], and then just engage the module to the service client. [1] : http://blogs.deepal.org/2009/02/writing-axis2-module.html Thanks, Deepal Dominik Świątek wrote: > I have generated WebService client using wsdl2java (axis2-1.5). Client > is working fin

Re: Axis2 Remote Repository Import Schema

2009-09-15 Thread Deepal Jayasinghe
Our remote repository (load from URL), does not fully support all the features we have with local repository. I think this is one of that, better thing is to create a JIRA so that someone will fix it when he gets a time (if I get a time I will fix it). Thanks, Deepal > Does anyone have any input o

Re: Help! Error when testing Axis2 client

2009-09-10 Thread Deepal Jayasinghe
As I can see this is due to some version mis-match, so could you please check whether you are using right version of Axis2 and addressing module. Thanks, Deepal Clara wrote: > Hi , > It's been a while since I posted this error. anybody can help me please? > > thanks. > > --- On *Mon, 8/24/09, Cla

Re: Sharing data between web services

2009-09-06 Thread Deepal Jayasinghe
it? > > Thanks, > wsNewbie > > On Sun, Sep 6, 2009 at 9:39 AM, Deepal Jayasinghe wrote: > >> If it is run time data I would suggest to store in ConfigurationContext >> (if there are not belong to the same servie group), if they belong to >> the same service group then y

Re: Sharing data between web services

2009-09-06 Thread Deepal Jayasinghe
If it is run time data I would suggest to store in ConfigurationContext (if there are not belong to the same servie group), if they belong to the same service group then you can store in the service group context. If you deploy the service in transport session you will get access to the HTTP sessi

Re: Axis2 deploymne without Web Admin

2009-09-03 Thread Deepal Jayasinghe
-- axis2-web delete axis2-web > -- META-INF > -- WEB-INF edit the web.xml here > - docs > - examples > -- > -- > - ROOT > > Which one do i delete? and what change do i make in web.xml > > On Thu, Sep 3, 2009 at 4

Re: Axis2 deploymne without Web Admin

2009-09-03 Thread Deepal jayasinghe
There is no configuration change, just delete the web-app and edit the web.xml to remove the admin servlet. Thanks, Deepal > Hi, > > Does anyone know how i can deploy the axis2.war onto tomcat without > the web admin pages? I dont want it be accessible via the browser at > all. is this just a conf

Re: [Axis2] Including/referencing external libraries

2009-09-02 Thread Deepal jayasinghe
Amila Suriarachchi wrote: > > > On Wed, Sep 2, 2009 at 1:51 AM, Matthias Korn > wrote: > > Hi, > > my axis2.war 1.4.1 in a Tomcat is running multiple web services > who are > all accessing the same database and other common stuff. Thus I created >

Re: Axis2 Specification

2009-08-30 Thread Deepal jayasinghe
Rahmat Bagas Santoso wrote: > Hi, > > Thank you for your reply ... my bad I am sorry ... let me paraphrase > my question. > > I am currently working with JAX-WS and in JAX-WS they also implement > SOAP 1.1 SOAP 1.2, WSDL 1.1 and etc but all of them are wrapped in a > specification (JAX-WS 2.0 spec)

Re: Axis2 Specification

2009-08-30 Thread Deepal Jayasinghe
I do not think I understand you correctly, anyway let me answer the way I understand, Axis2 implements few Web Service standards, Like SOAP 1.1 SOAP 1.2, WSDL 1.1 , WSDL 2.0, WS-Addressing. Thanks, Deepal > Dear All, > > I have been searching for Axis2 Specification that underlies the > implemen

Re: unsubscribe

2009-08-28 Thread Deepal jayasinghe
Bhanu B wrote: > Please send an email to axis-dev-unsubscr...@ws.apache.org axis-user-unsubscr...@ws.apache.org Thank, Deepal -- Thank you! http://blogs.deepal.org http://deepal.org

Re: how to skip a Phase?

2009-08-25 Thread Deepal jayasinghe
It is not an easy thing to do, unless you write a handler to edit the message context and remove that phase for the particular invocation you want. (This is doable, but Axis2 does not support this by default) Deepal > Hey there, > > I'm trying to dynamically skip a phase. Let me explain. > Let's s

[Axis2] happy birthday !!!

2009-08-20 Thread Deepal jayasinghe
It is the fifth birthday of the project.. -- Deepal -- Some history of the project... http://blogs.deepal.org/2009/08/happy-birthday-axis2.html -- Thank you! http://blogs.deepal.org http://deepal.org

Re: How to Access MessageContext from generated ServiceSkeleton

2009-08-19 Thread Deepal jayasinghe
MessageContext.getCurrentContext(); Will give you the current message context. Deepal > Hi, > > It looks like from generated ServiceSkeleton, we can only access message > body wrapped in an ADBBean. What if I want to access information in > message header (for instance, through message context)?

Re: Sandesha2 and WS-RM questions

2009-08-18 Thread Deepal Jayasinghe
Please ignore, replying to wrong thread. Thanks, Deepal > I have class on Tuesday and Thursday after 1.30 till 6. > > Thanks, > Deepal > >> Hi Alexandros, >> >> Sandesha is still being maintained. The Sandesha developer mailing >> list is a lot quieter than the axis2 mailing lists so you'd pr

Re: Sandesha2 and WS-RM questions

2009-08-18 Thread Deepal jayasinghe
I have class on Tuesday and Thursday after 1.30 till 6. Thanks, Deepal > > Hi Alexandros, > > Sandesha is still being maintained. The Sandesha developer mailing > list is a lot quieter than the axis2 mailing lists so you'd probably > get a better response to your question there. > > Thanks, > Ka

Re: Does Axis 2.0 support WSDL 2.0?

2009-08-13 Thread Deepal Jayasinghe
axis2.wsdl2code.syncMode}Sync mode, for which sources are being > generated; either of "sync", "async", or "both" (default).both > unpackClasses${axis2.wsdl2code.unpackClasses}Whether to unpack classes. > wsdlFile${axis2.wsdl2code.wsdl}Location of the WSDL file

Re: Does Axis 2.0 support WSDL 2.0?

2009-08-13 Thread Deepal Jayasinghe
As I remember correct option is w2, but I need to double check. Now I do not have access to code, once I do I will send the exact parameter. On Thu, Aug 13, 2009 at 2:08 PM, Meredith Gregory wrote: > Andreas, > > Thanks for your response. i did check the documentation. The description of > the wsd

Re: [Axis2] Architecture Question (Concurrency)

2009-08-11 Thread Deepal jayasinghe
Marc Lefebvre wrote: > I am deploying a POJO webservice using Axis2 and Java2Wsdl, etc... > Its all working nicely, but in developing the java code of my > webservice I had some questions about HOW internally Axis works so > that I can be sure of some possible issues that may arise. > > Does Ax

Re: axis2 1.0 ( war package ) .. problem with application handler

2009-08-11 Thread Deepal Jayasinghe
Sagara, nope that did not help.. Niraj: When you try to create a client inside the application server like tomcat, what happen is, it tries to create the service client with the server's configuration context. If you do not know about the configuration context, that is the run time of Axis2, which

Fwd: Sign up for ApacheCon US by 14 August and save up to $500!

2009-08-08 Thread Deepal Jayasinghe
-- Forwarded message -- From: Sally Khudairi Date: Fri, Aug 7, 2009 at 9:55 PM Subject: Sign up for ApacheCon US by 14 August and save up to $500! To: annou...@apache.org, annou...@apachecon.com Sign up for ApacheCon US by 14 August and save up to $500! This year's ApacheCon US

Re: Apache CFX

2009-08-05 Thread Deepal jayasinghe
Please check with CFX mailing list. > Hi all, > > does anyone know where I can download the tools that Apache CFX > provides? In particular > I am interested in using the WSDL2JS (Javascript) tool or any other > tool that generates scripts > instread of Java code. > > Thanks and regards > Demetris

Re: MessageContext is null, is something wrong? Still not working!

2009-08-04 Thread Deepal Jayasinghe
I am not sure why that does not work for you, if you can send me your service. I will give it a try. Thanks, Deepal Cyril Furtado wrote: > > Thank you Deepal > > I changed my implementation class as given from the below articles > > & now my class looks like > > public classMy service implements

Re: MessageContext is null, is something wrong?

2009-08-04 Thread Deepal Jayasinghe
I am sorry, those methods does not work anymore. Please refer to the following article. https://wso2.org/library/articles/axis2-session-management http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html Thanks, Deepal On Tue, Aug 4, 2009 at 4:49 PM, Cyril Furtado wrote: > I have in my

Re: About org.apache.axis2.deployment.ServiceDeployer#deploy()

2009-07-27 Thread Deepal jayasinghe
Yes, only if you have turn on the hot-updates. Thanks, Deepal > Hi, > > *Does org.apache.axis2.deployment.ServiceDeployer#deploy() first > undeploy service (if exists) and deploys the new one?* > ** > *Is it throw exception if the service exists when it tries to deploy a > service with same nam

Re: AXIS2 excludeOperations and static WSDL

2009-07-22 Thread Deepal Jayasinghe
Please create a JIRA. I will check it as soon as I get time. On Wed, Jul 22, 2009 at 12:56 PM, Nadir Amra wrote: > Apparently excludeOperations  in services.xml file does not work.  Is this > a known problem or do I need to open a JIRA?  I have tried 1.5 and 1.4. > > Nadir Amra > > -- http://b

Re: [Axis2] What are the possible elements on services.xml ? We can use them to adjust Axis2's behaviors

2009-07-21 Thread Deepal Jayasinghe
You can find all you need from here. http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html Thanks, Deepal 2009/7/21 浮生半世情 : > Dears >There are three files named axis2.xml, services.xml and module.xml > on Axis2 package. Then, we can use them to adjust Axis2's behaviors. But,

Re: The ServiceClass object does not implement the required method inthe following form: OMElement login(OMElement e)

2009-07-14 Thread Deepal Jayasinghe
Yes, you are using the wrong message receiver. Use RPCMessageReceiver. Thanks, Deepal On Tue, Jul 14, 2009 at 9:44 AM, Nora Serinek wrote: > Hi, > >   We'd like to provide several web services with a number of methods. When > calling one of the web service methods with a test client we always get

Re: UnsupportedOperationException - changing non void method to void

2009-07-13 Thread Deepal Jayasinghe
I fixed this issue recently, if you can please check with Axis2 trunk. I have even added a test case too. Thank you! Deepal On Mon, Jul 13, 2009 at 6:00 PM, William Shatner wrote: > Hi all... > > I've returned to this project and I still have the same issue. If my web > service exposes a public m

Re: Modifing genereted Client stub class

2009-06-29 Thread Deepal Jayasinghe
Usually we do not modify the stub, but if you want you can do that. Thanks, Deepal On Mon, Jun 29, 2009 at 4:00 AM, asma maalej wrote: > Hello > > i have already wrote this custom Axis2 Module, and it work fine in the > server side and the client one. > But my problem is, when i wrote an other cu

Re: how to open a JIRA issue for Axis 2 Version 1.5

2009-06-23 Thread Deepal jayasinghe
Go to https://issues.apache.org/jira/browse/AXIS2 And then create a new issues, Thanks, Deepal > Hello Axis Users, > I think I have found a bug in Axis2 Version 1.5 in > regard to Restful Services. I would like to open a bug for the same. > Could you please provide information on

Re: Session Managment using .net client..

2009-06-22 Thread Deepal Jayasinghe
The only way you can get session working with .Net is using transport session, that is by using cookies.In addition to that .Net does not send the cookies as JSESSION_ID you need to do a an additional step in the service client. Try setting following property and see; http://wso2.org/library/3464

Re: axis2 vs axis

2009-06-22 Thread Deepal Jayasinghe
ut the WSDL file which got generated > using Axis2 contains Axis2 schemas, will Axis still generates java files? > PS: Please note, i am talking about two different  versions of Axis(Axis and > Axis2) > > > > Deepal Jayasinghe-2 wrote: >> >> Yes you can. Use WSDL2Java

Re: axis2-1.4.1 client side handlers

2009-06-22 Thread Deepal Jayasinghe
o if you could help me to do that, i will be so gratefull > > Deepal Jayasinghe a écrit : >> >> If you know how to write a handler, then there is no difference b/w >> client side and server side handlers. >> What you just need is to write a handler and then create

Re: axis2 vs axis

2009-06-22 Thread Deepal Jayasinghe
Yes you can. Use WSDL2Java tool On Mon, Jun 22, 2009 at 9:42 AM, rkrgarlapati wrote: > > anyone came across this ? :rules: > > > > > > rkrgarlapati wrote: >> >> Hi there! >> >> I have created WSDL using axis2(java2wsdl), can i use this WSDL to >> generate client files with axis. >> >> Regards, >>

Re: axis2-1.4.1 client side handlers

2009-06-22 Thread Deepal Jayasinghe
If you know how to write a handler, then there is no difference b/w client side and server side handlers. What you just need is to write a handler and then create a module and engage that to the client. For more information about writing a module please refer to http://blogs.deepal.org/2009/02/wri

Re: can I package handlers in the .aar archive instead of a separate module?

2009-06-19 Thread Deepal jayasinghe
ined archive. > > > Deepal Jayasinghe-2 wrote: > >> olegf wrote: >> >>> I would like to define custom user handlers and invoke them per >>> operation. Is >>> there way to define them in services.xml and package them in the same >>> .aar >

Re: can I package handlers in the .aar archive instead of a separate module?

2009-06-18 Thread Deepal jayasinghe
olegf wrote: > I would like to define custom user handlers and invoke them per operation. Is > there way to define them in services.xml and package them in the same .aar > file as the services? I don't want to package them in a separate module > archive or include them in the system class path, as

Re: Problem with Runtime.getRuntime() exec

2009-06-17 Thread Deepal Jayasinghe
Hmm, I am not so sure that has something to do with the class loader, if that is the case then problem might be due to each service has its own class loader and it is different from context class loader. Anyway as I remember correct no one asked this kind of question before, so if you find that ans

Re: Axis2: map generic method to multiple operations in service.xml

2009-06-17 Thread Deepal Jayasinghe
You could do something like below, where you can add a number of action mapping for the operation and client can send the different action based on the call. And then at the service you can get the action that client sends (from the msgctx), and then I hope you can do the rest based on the action.

Re: The input stream for an incoming message is null

2009-06-17 Thread Deepal Jayasinghe
Are you tying to invoke one-way operation ? if so you need to use sendRobst or fireAndForget methods in the servcieclient. First check whether the service has a return value, you may check that using WSDL or by looking at the class. Thanks, Deepal On Wed, Jun 17, 2009 at 9:52 AM, NathanDM wrote:

Re: [axis2:IP Address]

2009-06-17 Thread Deepal Jayasinghe
Try this, http://wso2.org/library/480 On Wed, Jun 17, 2009 at 5:14 AM, Vaibhav Arya wrote: > Hi all, > > > > Is it possible to get IP address through message Context of the client > making request to axis2 web service. > > > > Thanks in advance. > > > > Regards, > > > > Vaibhav Kumar Arya > > > >

Re: Get parameter value from services.xml

2009-06-15 Thread Deepal jayasinghe
You can get that from the MessgeContext, and you can get the messagecontext from almost any place, once you have that you can read the parameter as; msgctx.getParameter("name"); Thanks, Deepal > Is there a way to get the value of a parameter set in the services.xml > file from within the class han

Re: Problem upgrading from 1.4 to 1.5

2009-06-12 Thread Deepal Jayasinghe
Yes, you need to download the transports jars and drop that into lib, anyway I think we have to do a 1.5.1 release. So we will make sure that it is there in the release. Thanks, Deepal Bhat, Suma wrote: > > Hi, > > > > I am seeing the following exception on tomcat startup. > > > > Jun 12, 200

Re: Need Info on Axis2 & SOAP/JMS support

2009-05-18 Thread Deepal jayasinghe
Hope someone can give you a better answer. - Deepal > Deepal, > > I understand you had done quite a lot of development and research on AXIS2. I > had been searching for implementation of SOAP/JMS for Axis without luck. So I > thought of posting question to you with respect to your experience wi

Re: [ConfigurationContext:existing source]

2009-05-14 Thread Deepal jayasinghe
Have a look at following link http://wso2.org/library/106 Once you have the messagecontext, you can access the configurationcontext Deepal > > Hi All, > > > > *I need to access ConfigurationContext object in my java class of > existing source. Because I have set some data in that.* > > > > *I

Re: Please help, pojo "global variable"

2009-05-13 Thread Deepal Jayasinghe
nstead of ConfigurationContext params ;) > (not advisable?) > > Please reply if you think i'm reasoning incorrectly, more code will > rely on this solution. > > Greetings, Joek > > > Deepal jayasinghe schreef: >> Nope, that is not going to work. The reason is M

Re: [axis2:session]

2009-05-13 Thread Deepal Jayasinghe
Axis2 has 4 different types of sessions. As I can see in your case you need to use transport session. Deepal > > Hi All, > > When I use following code to see the session id, it always returns new > session id. > > * HttpServletResponse response = (HttpServletResponse) > messageContext.getProperty

Re: Please help, pojo "global variable"

2009-05-13 Thread Deepal jayasinghe
Nope, that is not going to work. The reason is MessageContext has very limited lifetime, and that is only for single execution. So if you want to share something in one invocation then messageContext is fine, but if you want to have the "static nature" then you need to store the value in the Config

Re: Please help, pojo "global variable"

2009-05-13 Thread Deepal jayasinghe
You can store the value in ConfigurationContext. Deepal > Hi, > > Please help. > I have a need for a variable that is globally accessible from my > service implementation. > The normal way to do this in java is using statics AFAIK. > > I am however painfully aware that i cannot use static variable

Re: Web Service Calling Another Web Service

2009-05-12 Thread Deepal jayasinghe
b service) to call > the third-party web service. Any ideas? > try setting correct service url upto the operation, for example http://host.com/axis2/services/myservice/myop Deepal > Mark Darnell > BIT Systems, Inc. > (703) 742-7660 x110 > -Original Message- > From: Deep

Re: Web Service Calling Another Web Service

2009-05-11 Thread Deepal Jayasinghe
As I can understand it should be due to the incorrect soap action, please check the WSDL of the third party service and set the correct SOAP action. Deepal Mark Darnell wrote: > > We have a web service that needs to call another web service written > by a third-party. For testing purposes we have

Re: [embeding axis2 web service]

2009-05-11 Thread Deepal jayasinghe
http://www.developer.com/open/article.php/3777111 > > Hi All, > > > > I have successfully created a web service and tested that it is > successfully deployed. > > > > Now, how to embed this web service in my existing project (made in > JSP, Servlets) so that I could call some existing project’s

Re: Getting the corect endpoints in WSDL for POJOs behind a proxy

2009-05-11 Thread Deepal jayasinghe
Hi, In axis2.xml there is a parameter called "hostname", change that to be the url of Apache, that will solve your problem. Deepal > > I have an application implemented as a POJO and exposed as a web > service using axis2, behind an Apache proxy. > > The problem with this configuration is that the

Re: Queries regarding session managment in axsi2

2009-05-07 Thread Deepal Jayasinghe
> Hi All, > > I am facing some problem in implementing session management while > using axis2. It will be great if anyone can help me out with few queries. > > My Scenario: The scenario which I am trying to implement is very > simple one. Basically I have a service implementation class which has

Re: [Session Id:axis2]

2009-05-04 Thread Deepal jayasinghe
Hi, You can access the session id at the server side using following method (method is there in the message context) getServiceGroupContextId And for the client side you can not set the session id, what you can do is when you do the first call you can set the "manage session", or call setManageSes

Re: Best way to add a function to an existing Axis 2 service

2009-05-01 Thread Deepal jayasinghe
I do not understand what do you mean by you first create the service and then generate the WSDL and from that you generate the service skeleton. If you already have the service why do you want to generate the skeleton ?, which is not need. If you have created the service from WSDL2Java then the be

Re: Configuration Question about Changing PORT 6060

2009-04-14 Thread Deepal Jayasinghe
You can do that by editing axis2.xml, however as I can see you have this problem in client side. you might have to create your client with custom axis2.xml. http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html > Hi, > > I use apache Axis2 on an laptop very

Re: Web service without a Web Container (Tomcat)

2009-04-10 Thread Deepal jayasinghe
You can use SimpleHttp Server, if you look at Axis2 bin distribution you can find all the required scripts and documentation to do that. Thank you! Deepal > Is possible make (and execute) a web service using Axis2 without > a web container (as Tomcat)? If yes, how can I do that? > > Thanks in adva

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

2009-03-09 Thread Deepal jayasinghe
You can do that, only thing you need to do is change the parameter in axisconfiguration at the runtime. Which you can do in many ways, - Do it at module init - You can do that using a service etc. Thank you! Deepal > > Hi, > > I’m using Axis2 1.4 version. > > In axis2.xml there is a parameter name

Re: axis2 | wsa issue

2009-03-09 Thread Deepal jayasinghe
Nothing to worry this is WS-Addressing headers. So when you engage addressing it adds that header. However I did not understand what do you mean by "request SOAP xml". Thank you! Deepal > Hi, > > In some of my axis2 request I am getting the following > elements appended in SOAP head

Re: AXIS2 - property file locations when creating aar file

2009-02-23 Thread Deepal jayasinghe
have a look at http://www.developer.com/open/article.php/10930_3557741_2 You just need to add your property file into your aar file, and you can access them as you access from a jar file. Thank you! Deepal > When I build an aar file and I need to deploy files that support the > web services. For

ApacheCon Europe 2009: Early Bird Deadline Extended , until 13th of February

2009-02-09 Thread Deepal jayasinghe
Here's some great news for everyone who's thinking of traveling to Amsterdam for this year's ApacheCon Europe. The Early Bird deadline has been extended to Friday, February 13th - and remember, there is a discount of 150 Euro on registration for anyone staying at the Mövenpick Hotel. Register at ht

Re: ServiceClient and memory leaks

2009-02-09 Thread Deepal Jayasinghe
gt; } > _logger.info("-- "+response.getFirstElement().getText()); > return response.getFirstElement().getText(); > > } catch (Exception ex) { > System.out.println("Unknown exception :::" + ex.toString()); > throw ex; &

Re: ServiceClient and memory leaks

2009-02-09 Thread Deepal Jayasinghe
How do you invoke the service, do you create service client for each call or you just create one service client and use that for all the invocations. Deepal Attharkar, Asmita wrote: > > We are calling a web service client in the web service and see that > there are huge memory leaks - finally res

Re: Axis2 Build Error

2009-02-09 Thread Deepal Jayasinghe
Well this is not Axis2 problem, as I can see this is due to a corrupted jar file or something. try to run mvn clean install -u Deepal > Any ideas how to work around this? > > > > I'm getting a consistent error trying to build Axis2. The build seems > to be having a problem with a particular cl

Re: Is It Just Me?

2009-02-08 Thread Deepal Jayasinghe
Hi Michael I would suggest you to read following articles, then you can get better idea about Axis2 service and how to invoke them. to understand POJO in axis2 :- http://wso2.org/library/2893 To understand Axis2 client side :- http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-usi

Re: Rules in Axis2 service

2009-01-30 Thread Deepal Jayasinghe
Well, in fact I did a similar implementation few months back [1] and I think WSO2 is stilling continue working on that. Anyway in you case you can put all your resources in side your service aar file. If you are going to use your libraries across multiple services then I would suggest you to put th

Re: Accesing MessageContext from the Implementation Class

2009-01-20 Thread Deepal Jayasinghe
Well you do not need to do anything in the axis2.xml to access the MessageContext. Have a look at http://wso2.org/library/480 http://wso2.org/library/articles/axis2-session-management Thank you! Deepal Edgardo Ibañez O. wrote: > Hi all, this is my first post at this mailing list, my problem is >

Re: Instantiate ServiceClass on start up

2009-01-18 Thread Deepal jayasinghe
> We are evaluating if we should use axis2 for one of our projects at > our company, and this is a must-have requirement. > > Cheers > rouble > > On Sun, Jan 18, 2009 at 11:58 AM, Deepal Jayasinghe > mailto:dee...@opensource.lk>> wrote: > > Well ServiceLif

Re: Instantiate ServiceClass on start up

2009-01-18 Thread Deepal Jayasinghe
Well ServiceLifeCycle class is different thing, anyway you may use that to do the initialization logic. As I remember correct when you deploy a service in application scope it should initialize the class system startup time, if that does not work then it is a bug. Deepal rouble wrote: > Hi All,

Re: axis2 inheritance doesn't work?

2009-01-16 Thread Deepal Jayasinghe
MEP attribute, but it doesn't >> work. >> With the JAW-WS client i don't see the parent operation. >> >> I need to add something else in the configuration file? >> >> On Fri, Jan 16, 2009 at 3:46 PM, Deepal Jayasinghe >> wrote: >>> >&

  1   2   3   4   5   6   7   8   9   10   >