Re: WSDL 2.0

2010-02-22 Thread Deepal Jayasinghe
Axis does not support WSDL 2.0, however Axis2 support WSDL 2.0 Deepal > > Hi all, > >Axis started supporting WSDL 2.0 with Axis2 correct? > > Thanks > -- Thank you! http://blogs.deepal.org http://deepal.org

Re: WSDL 2.0

2010-02-22 Thread Deepal Jayasinghe
Yes. Axis2 very good support for rest. I should mentioned that Axis2 has REST bindings for both WSDL 1.0 and 2.0 Demetris wrote: > > And thus the support of REST in Axis 2 ... Great - thanks Deepal. > > Deepal Jayasinghe wrote: >> Axis does not support WSDL 2.0, however Axis

Re: problem with module

2010-02-28 Thread Deepal jayasinghe
When you go the administrative console can you see the module? I mean go to localhost:8080/axis2 and then go to administrator page there you can see available modules, then see whether you can see logging module. Thanks, Deepal > I am trying to deploy the logging modules that came with the bundle

Re: A small doubt about ContextConfiguration

2010-03-22 Thread Deepal jayasinghe
When you create an instance of Stub you can either pass your configuration context, if not stub creates a default configuration context using values in the class path and use that as the configuration context. -Deepal > If I create a ServiceClient using a stub generated from WSDL, like > >

Re: A small doubt about ContextConfiguration

2010-03-22 Thread Deepal Jayasinghe
//xyz.com/axis2/axis2.xml"; , "http://xyz.com/axis2repo";) > Or is there any other way ? > > > > > > On 22 March 2010 10:30, Deepal jayasinghe <mailto:deep...@gmail.com>> wrote: > > When you create an instance of Stub you can either pass your

Re: InOnly client code?

2010-06-03 Thread Deepal jayasinghe
Hi William, When you invoke the service using fireAndForget you need to put put a sleep statement after invocation, if you do not do that the main thread terminate before sending the message. > Has anyone had success writing an In-Only client that they'd be willing to > share? I've deployed a s

Re: InOnly client code?

2010-06-04 Thread Deepal jayasinghe
ed it in Eclipse too. Have also tried sendRobust(). > Any other ideas? > > William > > > -Original Message- > From: Deepal jayasinghe [mailto:deep...@gmail.com] > Sent: Thursday, June 03, 2010 6:43 PM > To: java-user@axis.apache.org > Subject: Re: InOnly client cod

Re: Loading a Custom Deployer

2010-06-06 Thread Deepal Jayasinghe
Hi Jan, If you have put the jar or class files in the classpath, then Axis2 should pick your class. If you have created a jar file for your deployer please double check it. Deepal On Sun, Jun 6, 2010 at 2:39 PM, Jan Sinschek wrote: > Hello, > > I am trying to use a custom deployer (which for th

Re: Does Axis2 support 2d array?

2010-06-07 Thread Deepal Jayasinghe
Axis2 does not support 2D arrays for POJOs, but I am not sure about the code generation. On Mon, Jun 7, 2010 at 4:32 AM, Chinmoy Chakraborty wrote: > Hello, > In the following link, I noticed that Axis2 does not support 2D array. Does > it support in latest released code? > http://software.itags.

Re: Loading a Custom Deployer

2010-06-07 Thread Deepal Jayasinghe
ourse shouldn't be- but when loading it explicitly > (rgistering it under a faux extension ahead of my own deployer), nothing > changes. I'll later try and find out where the class loader is actually > searching if I can find and build the module containing the loader. > > &g

Re: REST and Content Type

2010-06-08 Thread Deepal Jayasinghe
Axis2 support JSON. Deepal On Tue, Jun 8, 2010 at 7:45 AM, nch wrote: > Hi, there. > I'd like to know whether Axis2 REST web services support content types other > than XML (JSON, plain text, ...). > > Kind regards. > > > > > -

Re: Loading a Custom Deployer

2010-06-08 Thread Deepal Jayasinghe
AM, Jan Sinschek wrote: > hi, thanks for not losing interest. > > On 6/7/2010 2:31 PM, Deepal Jayasinghe wrote: >> >> What is "C:\Users\CSinschek" ? >> > > that is just the directory the shell comes up with, and it doesn't matter > the classp

Re: Axis2 ConnectionTimeout Problem

2010-06-23 Thread Deepal Jayasinghe
Did you try to set the connection timeout value, try that one too. Deepal On Tue, Jun 22, 2010 at 11:52 PM, naren wrote: > Hi, > I am using Axis2 1.5.1 for creating a webservice client. > I am getting a ConnectionPoolTimeoutException with concurrent threads. > > So far I have tried the below

Re: Startup script for Axis2

2010-06-30 Thread Deepal Jayasinghe
I think $AXIS2_HOME/bin/axis2server.sh would do your job, try it and let's know. Deepal On Tue, Jun 29, 2010 at 8:55 AM, dcausevic wrote: > > I am running Ubuntu 9.04 (Jaunty Jackalope) in text mode and I wanted to > add > Axis2 to my services that run on the system startup. Does anybody have a

Re: [Axis2] Error Loading Message Receiver - Please help

2010-07-21 Thread Deepal Jayasinghe
Hi Dan, When you generate the code it generates services.xml file and it has entry for one or more Message receivers, check whether you have all of them in the compiled class before you create the aar, if you have all the classes then we can go to next step to solve the problem. Deepal On Wed, J

Re: Disable namespace for POJO based service?

2010-07-22 Thread Deepal Jayasinghe
With the setting you mentioned Axis2 still generates namespaces in WSDL but at the run time it just ignores the name spaces in the message. Deepal On Thu, Jul 22, 2010 at 1:58 PM, Moritz Mädler wrote: > I think if you just add > >         > > to the service.xml it will work. > > > > > Am 22.07.2

Re: Disable namespace for POJO based service?

2010-07-23 Thread Deepal Jayasinghe
les > On Jul 22, 2010, at 2:41 PM, Deepal Jayasinghe wrote: > > With the setting you mentioned Axis2 still generates namespaces in > WSDL but at the run time it just ignores the name spaces in the > message. > > Deepal > > On Thu, Jul 22, 2010 at 1:58 PM, Moritz Mädler

Re: Expose CSV File Uploader in AXIS2 ...:(

2010-07-24 Thread Deepal Jayasinghe
I believe you need to write a service which take either data handler or byte array. You can use the following as a reference. http://wso2.org/library/3860 On Sat, Jul 24, 2010 at 2:33 AM, Karthik Nanjangude < karthik.nanjang...@xius-bcgi.com> wrote: > Hi > > > > Need to Expose a File upload ja

Apache Retreat in Hursley, UK - 17-19th September

2010-08-05 Thread Deepal Jayasinghe
Hi All Just a reminder that our next Apache Retreat will be in Hursley in the UK, from the 17th - 19th September. That's a little over a month away now! If you're an Apache Committer, we'd like to invite you to come for the whole weekend. We've booked Tipis to stay in(!), catering on-site, we've

Re: Invocation between 2 Axis2 services

2010-08-22 Thread Deepal Jayasinghe
service to service communication can be easily mapped to client to service communication. Meaning, inside your service have an Axis2 client can invoke the other service. Deepal On 8/22/2010 6:58 AM, satheesh wrote: hi, I would be thank full if anyone give hint on the followings, There are

Re: Modify Web Service Call

2010-09-07 Thread Deepal jayasinghe
Dear List, I'm on a project that needs to change a web service call based on the header of a SOAP message. The goal is to implement a switch in axis, that enables an additional "-javaagent" call if a special header is set. I thought about using the module architecture if possible. I need to un

Re: Modify Web Service Call

2010-09-07 Thread Deepal Jayasinghe
ss all the properties using MessageContext) Deepal Additionally I wonder if I just can use the module (.mar) created to pass-through the client command. Cheers, Benedikt On 07.09.2010 15:13, wrote Deepal jayasinghe: Dear List, I'm on a project that needs to change a web service ca

Re: Modify Web Service Call

2010-09-07 Thread Deepal Jayasinghe
be glad if you have an useful idea. Thanks, Benedikt On 07.09.2010 15:59, wrote Deepal Jayasinghe: On 9/7/2010 9:32 AM, Benedikt Heintel wrote: Thanks Deepal for the information provided. Adding a handler works, I can access the data and work on it. Great. I meant Axis2 modules, right. However,

Re: If Tomcat is configured to accept both HTTP and HTTPS, how to know in axis2 if the request came over HTTPS?

2010-09-07 Thread Deepal jayasinghe
You can do that by looking at the request URL which you can access using MessageContext. Deepal Folks In my server code, I need to know if the call received came through over HTTP or HTTPS. I would like to process the request a bit differently if the request came through HTTPS. How can I

Re: Modify Web Service Call

2010-09-08 Thread Deepal Jayasinghe
should call the same service with "java -javaagent:agent.jar=200 -cp de.tud.informatik.seceng.calc.Calculator.class add 40 10". The only modification in the call I need to do is to set the -javaagent option and add the ID given in the header. I hope I gave a insight into the idea tha

Re: Axis2 developer/user mailing list subscribing issue

2010-09-25 Thread Deepal jayasinghe
> Hi All, > > Not sure this is the right place to send this. All the attempts to subscribe > to > both user/developer list were in vain with the mails returned with > undeliverable > error (attached). > > I would like to contribute to the project. Please let me know for any further > details re

Re: axis and CXF

2010-09-28 Thread Deepal Jayasinghe
I would recommend you to use Axis2, Axis2 is more stable and support number of required specifications. In addition it interoperable with most of the open source and commercial Web service frameworks. You can also have a look at http://wiki.apache.org/ws/StackComparison You can try both and pick

Re: axis and CXF

2010-09-28 Thread Deepal jayasinghe
> On Tuesday 28 September 2010 3:38:36 pm haipeng du wrote: >> Which one I should use? They are both from Apache. What is big difference? >> Thank. > Funny this wasn't asked on the CXF lists as well... :-) > > See: > http://stackoverflow.com/questions/1243247/difference-between-apache-cxf-and-ax

Re: class cast exception when creating ServiceClient

2010-10-04 Thread Deepal jayasinghe
That is correct, we have done a lot of code re-factoring after 1.3 release. So I suggest you to upgrade to new version. Deepal > > Hi all, > > > > I had this code working with Axis2 1.3.x but recently I moved to 1.5.1 > and I get an error. The line is: > > > > ServiceClient Client = new Servi

Re: Problem in Object transfer back to Client

2010-10-08 Thread Deepal Jayasinghe
The reason is you store the value as a class variable. When you do so (and if you have deploy it on the request scope), every time you invoke the service it creates a new instances, thus it returns null. To solve the problem, you need to deploy the service in a higher level session scope (e.g., so

Re: Custom handler for header with mustUnderstand=true

2010-10-15 Thread Deepal Jayasinghe
On 10/15/2010 9:50 AM, Stephanos Piperoglou wrote: > > Hi everyone, > > I'm trying to use Axis2 to build a client that communicates with a > third-party web service that uses a proprietary authentication > mechanism involving a SOAP header. It works like this: > > 1. You call a login() method in

Re: Custom handler for header with mustUnderstand=true

2010-10-18 Thread Deepal Jayasinghe
Piperoglou > Price Control > GTO - BAC IT > +44 20 754 59007 > > This mail is transmitted to you on behalf of the Great East London > Software Company > Diese Post wird Ihnen im Namen der Great East London Software Company > übermittelt > > > > *Deepal Jayasingh

Re: question on consuming service with lopsided security

2010-11-05 Thread Deepal jayasinghe
> Wow .. so you published an article on developerWorks saying Axis2 > can't do it and it turns out its an error on your part. So funny :) > Trust me, there are :). But none of us are taking the time to write > them up and publish .. IMO that's ok; in the end its user choice. It is not because we

Re: question on consuming service with lopsided security

2010-11-08 Thread Deepal Jayasinghe
On Tue, Nov 2, 2010 at 11:13 PM, Dennis Sosnoski wrote: > If the consensus of the Axis2 developers is to avoid any discussion of other > alternatives on these lists I'll certainly respect that. But unless there is > a policy to that effect I'll continue to mention other open source > alternatives

Re: question on consuming service with lopsided security

2010-11-08 Thread Deepal Jayasinghe
> > No, dude, *you're* the one who appears to be claiming that there are > many scenarios where Axis2 is "hugely better than CXF". I don't know > what these scenarios are, and when I've asked for any kind of specifics > you've said you're not going to waste your time helping me figure those > out.

Re: Response Message Context

2010-11-08 Thread Deepal Jayasinghe
>From the ServiceClient you can get the response message context. serviceclient.getLastOperationContext().getMessageContext("In"); Deepal On 11/8/2010 12:17 PM, Christopher Johnson wrote: > All - > > I have a WS that responds with message using SOAP with attachments. > In Axis1 you would get th

Re: [Axis2]How to create a mar file out of classes in AXIS 2

2011-01-20 Thread Deepal Jayasinghe
> hi Folks > > I'm creating a Axis java 2 handler .I want to know how to generate the > mar file. I have module.xml written ,src, edited axis2.xml to include > the module name. Please refer to the documentation, and also there are a number of articles explaining the process. > > Also i want to

Re: axis2 session scopes

2011-01-23 Thread Deepal Jayasinghe
On 1/23/2011 7:11 AM, am am wrote: > I am starting on axis2 (1.5.4). > I am looking into the various session scopes for web services > (request, soapsession etc). > By experimenting, I notice that in all scopes except the application > scope, there is a new instance of my web service being create

Re: axis2 session scopes

2011-01-23 Thread Deepal jayasinghe
n't it > expensive for enterprise level web services? > If I am confused on this, please help me out understand what am I > doing wrong here. > > Thank you > > > *From:* Deepal Jayasinghe > *To:* java-user@axis.apache.org > *Sent:*

Re: axis2 session scopes

2011-01-23 Thread Deepal jayasinghe
for this? I think > that for enterprise level application this is too costly. > Is some sample code needed for this? > > Thank you > > > > > -------- > *From:* Deepal jayasinghe > *To:* java-user@axi

Re: Deploying Axis2 on IBM p720

2011-01-24 Thread Deepal Jayasinghe
Do you have correct addressing module in modules directory? Deepal On 1/24/2011 10:22 AM, April Easton wrote: > Below is the full stack trace: > > Localhost log file for Jan 11, 2011. > Jan 11, 2011 10:56:27 AM org.apache.catalina.core.StandardContext > loadOnStartup > SEVERE: Servlet /axis2 thr

Re: wsdl2java tool fails when the wsdl path contain spaces

2011-01-26 Thread Deepal Jayasinghe
Sumedha has given you the correct solution. Deepal On 1/26/2011 11:46 PM, Sewwandi wrote: > is there a JIRA issue reported for this? I searched mail archives and > JIRA but couldn't find one. > > On Thu, Jan 27, 2011 at 10:07 AM, sumedha rubasinghe > mailto:sumedh...@gmail.com>> wrote: > > Re

Re: Two Services Same Name Allowed?

2011-02-01 Thread Deepal jayasinghe
> I thought that axis2 didn't allow multiple services to have the same > name, even if their service classes are from different packages; is > this correct? For example if I have two services > Yes, Axis2 does not allow that. Service name has to be unique. > > > > > > locked=/"false"/>pkg

Re: [AXIS2] Redirecting a response from axis2 handler to client

2011-02-04 Thread Deepal Jayasinghe
You can simply throw an exception inside your handler, or you can return Invocation.ABORT as the return value Deepal > Hi, > > I have a custom module deployed on *axis2* server side. While the > client request goes to that *handler* in an inflow, i want it should > create one error response in t

Re: [AXIS2] Redirecting a response from axis2 handler to client

2011-02-05 Thread Deepal jayasinghe
nvelop()); > > opClient.addMessageContext(outMsgCtx); > > //pass message label as method argument > MessageContext inMsgtCtx = opClient.getMessageContext("In"); > SOAPEnvelope response = inMsgtCtx.getEnvelope(); > > Regards

Re: Exceptions in Inflow handlers

2011-02-09 Thread Deepal jayasinghe
Well when there is an exception in inflow handler it goes through the outFault flow handler. One way to deal with this problem is to have your handler in outFaultFlow and do your task. Deepal > > I have 2 inflow handlers, and 2 outflow handlers something like below: > > > > Inflow1 --> inflow2 -

Re: Contract-first withou =?ISO-8859-1?Q?t service element??=

2011-02-21 Thread Deepal Jayasinghe
yes, you do not need to have a service to generate code, you only need a WSDL file. However, you cannot invoke the service until you run the service. Deepal On 2/21/2011 5:54 AM, m...@srsi.de wrote: > Is it possible to generate java code from a wsdl file which doesn't own > a service > element? >

Re: Session management in AXIS2 - questions

2011-03-04 Thread Deepal jayasinghe
You can use soap session or transport session. You cannot use application scope, because for application session you only have one instance of service implementation class and service context. But for other two, for each new session it creates a service impl class and service context. Deepal > Hi

Re: [Axis2]

2011-03-04 Thread Deepal Jayasinghe
Could you please elaborate more on this issue. If this is regrading POJO with RPC message receiver, then IIRC it was a limitation. But you can overcome this issue by creating a WSDL and generating skeleton. Deepal On 3/4/2011 12:27 AM, prem_innoviti wrote: > Hi, > > I am using axis2 as webservi

Re: Any Limits on Invocation Frequency?

2011-03-15 Thread Deepal Jayasinghe
Hi, Axis2 does not have any such limitation, if you are using same service client for all the invocation then after each invocation try to call servciceClient.cleanupTransport method. Or if possible share your client code with us. Deepal On 3/15/2011 11:17 AM, Bing Li wrote: > Dear all, > > Anyo

Re: Any Limits on Invocation Frequency?

2011-03-15 Thread Deepal Jayasinghe
return "How do you do?"; > } > > Moreover, I noticed that when the return value of the server side is > changed to void, no timeout exceptions were raised. It is weird! > > Thanks again! > LB > > > On Tue, Mar 15, 2011 at 11:21 PM, Deepal Jayasinghe &g

Re: Exclude operations programmatically

2011-03-29 Thread Deepal jayasinghe
have a look the following article http://wso2.org/library/2060 Deepal > Hi All, > > Is there a way in axis2 to programmatically exclude some operations of > a service? > In my project I am creating my services programmatically and I want to > exclude some of the operations. > > Regards, > Adit

Re: server class

2011-04-05 Thread Deepal Jayasinghe
Yes, probably it is hard to serialize ResultSet. You need to use something like data services for this. Deepal > Hello, > > Can I not return Resultset as a return type from my Java class(Server.) > > > > I am getting error with following response. > > > > > > *-* >

Re: Axis2 Custom Deployers

2011-05-02 Thread Deepal Jayasinghe
Did you add the deployer classes to classpath or if you are using Tomcat cat put it to WEB-INF/classes deepal On 5/2/2011 2:23 AM, aditya chitre wrote: > Hi, > > I have custom deployers in my project and I have added the appropriate > tags in axis2.xml for stating the extension, directory and cl

Re: [axis]problem in deploying web service

2011-05-11 Thread Deepal Jayasinghe
As the exception suggested you need to have "VoltageValueService.class" under service.aar META-INF services.xml com serial code VoltageValueService.class Deepal On Wed, May 11, 2011 at 10:14 AM, Chaitanya Kulkarni wrote: > Hi, > > I am trying to deploy a

Re: Stub generated using Axis2 is unable to Maintain session between RESTful service and Client

2011-05-18 Thread Deepal jayasinghe
Hi, What type of session you are using ? are you using SOAPSession? If you are using SOAPSession, then it does not work with REST. In the case of REST it does not send any addressing headers, so SOAPSession does not work. However, if you use transport session this should work. Deepal > Hi, > > I

Re: [Axis2] Axis2 1.1 and JDK 1.6

2011-05-18 Thread Deepal Jayasinghe
Please create a JIRA and if possible attach your axis2.xml as well. On Wed, May 18, 2011 at 1:06 PM, Anjali Hattarki wrote: > We have client proxy code that we generated using axis2 v1.1. This code > works fine with jdk 1.5, however we have a need to upgrade to JDK 1.6. > During this process, we

Re: [Axis2] - Migrating axis to axis2 and lost servletContext

2011-06-07 Thread Deepal Jayasinghe
In Axis2 it has four different type of sessions and transport session is one of them. So, you have access to the serveltContext only if you use the transport session. You can deploy the service in any scope and create the threads inside the init method and write the code to stop them inside the de

Re: Axis2 soapsession Example

2011-06-13 Thread Deepal Jayasinghe
Hi Mahesh, SOAPSession only works withing Axis2 (not even with Axis1), so you will have hard time trying to get that working with .Net. You probably need to write custom code to handle required SOAP header. However, transport session should work, b'coz in Axis2 transport session works using cookie

Re: [Axis2] Disabling Fault Output

2011-06-21 Thread Deepal jayasinghe
There are some other ways to do this, but one easy way is to write your own handler (add to the fault flow) and just drop the out going messages if the error code is 500. Thanks, Deepal > Hello, > > I would like to disable all messages returned by 500 errors. I understand > that these are used fo

Re: Regarding Method Overloading

2011-06-23 Thread Deepal Jayasinghe
Hi Arpit, As you have observed Axis2 does not support method overloading (by default). Of course you can get it working by writing your own message receiver. This problem arises when default message receiver tries to load the method using reflection, it does not take number of paramters when it doe

Re: destroy(ServiceContext context) never call

2011-06-24 Thread Deepal jayasinghe
You were absolutely right, there was some missing code for calling destroy method for service deployed in request scope. I have fixed it in the trunk, you will get the fix in nightly builds. Deepal > Hi, > > I am running a simple WebService with Axis 1.5.4, who send a String msg. > > My Axis2.xml

Re: Identify IP address of the source request

2011-06-30 Thread Deepal Jayasinghe
You can get the remote IP address of the client corresponding to the current message as follows; String remoteAddress = String)msgCtx.getProperty("REMOTE_ADDR"): Deepal On Thu, Jun 30, 2011 at 3:34 PM, Matta, Geethamadhurima wrote: > Hi, > > I am using Axis2 1.5.1. > > We need to authenticate if

Re: Identify IP address of the source request

2011-07-01 Thread Deepal jayasinghe
ty("REMOTE_ADDR"); >>> System.out.println("remoteAddress - " + remoteAddress); >>> } >>> } >>> --- >>> >>> msgCtx is coming as null. >>> >>> >>> >>> Regards, >>

Re: ServiceClient behind an Axis Service

2011-07-10 Thread Deepal jayasinghe
I have used this feature few years back, but after that I never tried. If the same thing work for the client side (stand alone application) I do not see a reason why that does not work at the server side. Because, we use the same code at both sides. If this does not work, then it should be a bug

Re: wow, Axis2 seems a bit disgustig

2011-07-17 Thread Deepal jayasinghe
Hi smith, Could you please tell us what exactly you were trying to do, so that we can guide you to the right direction. If you tried to expose something as a Web service and if you found it is hard to do it with Axis2, we will help you on that. And if you think Axis2 is disgusting, you are perfe

Re: Enabling addressing

2011-08-02 Thread Deepal Jayasinghe
Hi There, When you call Service client it creates Axis2 runtime as a result it loads all the modules. That is why you see the module deploy log message. But if you use the same service client to invoke the service multiple times then you will not see that message. Were you able to invoke your POJ

Re: How to read file from META-INF

2011-08-02 Thread Deepal Jayasinghe
You can get the class loader and read the file using getResource as stream. Once you ask for the class loader it will give you the class loader that Axis2 has used to load the your service class. Thanks. Deepal On Tue, Aug 2, 2011 at 10:33 AM, Denise Wu wrote: > Hi, > > I have a "mySchema.xsd"

Re: Async axis client call timing out

2011-08-02 Thread Deepal jayasinghe
Hi Todd, Did you engage the addressing module in the server side ?. if not please engage it and see the results. if you have engaged addressing module and you still see the issue then it is definitely an Axis2 bug. Someone should have broken something, so please create a JIRA, (need to fix this A

Re: Enabling addressing

2011-08-02 Thread Deepal jayasinghe
off addessing on the > client then the service > responds correct. > Thanks. > Barry > > On 8/2/2011 11:57 AM, Deepal Jayasinghe wrote: >> By default any given service is deployed in request scope, so you need >> to modify services.xml to have the session scope attrib

Re: Enabling addressing

2011-08-03 Thread Deepal Jayasinghe
Operation name and soap action can be different, so that is why you need to set the correct SOAP action (according to the WSDL). Or else you need to give the full EPR /services/MyService/myOperation. Thanks, Deepal On Wed, Aug 3, 2011 at 3:53 PM, Barry Hathaway wrote: > Sagara, > > Thanks.  Sett

Re: POJO return types

2011-08-03 Thread Deepal Jayasinghe
Have a look at the following article, it might throw some lights: http://wso2.org/library/articles/working-rpcserviceclient Deepal On Wed, Aug 3, 2011 at 5:00 PM, Barry Hathaway wrote: > Since I really didn't have any luck returning Lists or arrays, I decided to > return > a simple POJO class i

Re: Async axis client call timing out

2011-08-03 Thread Deepal jayasinghe
> Hi Josef, > > Good question. I have this in my client: > > sender = new ServiceClient(); > sender.engageModule(Constants.MODULE_ADDRESSING); > sender.setOptions(options); > sender.sendReceiveNonBlocking(payload, callback); > > Is the second line

Re: AW: Enabling addressing

2011-08-03 Thread Deepal jayasinghe
e ConfigurationContext with custom axis2.xml. > And scope="soapsession" needs to go to the service.xml! Yes. > And do not forget to adjust the timeout in axis2.xml !!! > Josef > > -Ursprüngliche Nachricht- > Von: Deepal jayasinghe [mailto:deep...@gmail.com] > Ge

Re: POJO return types

2011-08-03 Thread Deepal Jayasinghe
properly prior to calling the setters. > Thanks. > > Barry > > On 8/3/2011 5:09 PM, Deepal Jayasinghe wrote: >> Have a look at the following article, it might throw some lights: >> >> http://wso2.org/library/articles/working-rpcserviceclient >> >> Deepal &

Non blocking with two channel is broken

2011-08-03 Thread Deepal jayasinghe
Guys, A user called "Todd" recently observed [1] that we have issues with non-blocking invocation with two channels. I went and tested it and I was able to re-create the issue. While debugging the code I realized that something has gone wrong. IIRC for the server side we had a check for replyTo hea

Re: Non blocking with two channel is broken

2011-08-04 Thread Deepal Jayasinghe
ou need to use the public static final String DO_ASYNC = > "messageReceiver.invokeOnSeparateThread"; at the server side. > > thanks, > Amila. > > On Thu, Aug 4, 2011 at 6:13 AM, Deepal jayasinghe <mailto:deep...@gmail.com>> wrote: > > Guys, >

Re: Non blocking with two channel is broken

2011-08-04 Thread Deepal Jayasinghe
issue in the 1.5 branch? > > > On Thu, Aug 4, 2011 at 6:13 AM, Deepal jayasinghe <mailto:deep...@gmail.com>> wrote: > > Guys, > A user called "Todd" recently observed [1] that we have issues > with non-blocking invocation with two channels. I wen

Re: Non blocking with two channel is broken

2011-08-04 Thread Deepal Jayasinghe
On Thu, Aug 4, 2011 at 9:36 AM, Sagara Gunathunga wrote: > On Thu, Aug 4, 2011 at 5:12 PM, Deepal Jayasinghe > wrote: >> Amila, >> >> I looked and the code segment you mentioned, but that is to process long >> running services. We had somewhat similar code

Re: Non blocking with two channel is broken

2011-08-04 Thread Deepal Jayasinghe
new >> AsyncMessageReceiverWorker( >>                         messageCtx); >>                 messageCtx.getEnvelope().build(); >> >> messageCtx.getConfigurationContext().getThreadPool().execute( >>                         worker); >>                 return; >>             } >>

Re: How to read file from META-INF

2011-08-04 Thread Deepal Jayasinghe
Have a look at the following: http://wso2.org/library/259 Thanks, Deepal > Hi, > > I tries all combinations using the getResource in calssloader but it's > not working. > Can you point to a sample code example please? > > Many thanks > > > > On Tue, Aug

Re: Non blocking with two channel is broken

2011-08-05 Thread Deepal jayasinghe
> > > On Thu, Aug 4, 2011 at 7:32 PM, Deepal Jayasinghe <mailto:deep...@gmail.com>> wrote: > > >> > >> I looked and the code segment you mentioned, but that is to > process long > >> running services. We had somewh

Re: [Axis2] How to debug NPE

2011-09-12 Thread Deepal jayasinghe
You need to do the remote debugging, or else you can setup the server code in your IDE and start a simple HTTP server and test your code. Look at "Listing 2. Deploying a POJO in Axis2" here - http://www.ibm.com/developerworks/library/ws-axis2soap/index.html Deepal > I've got a new Axis2 1.5.2 web

Re: [Axis2] How to debug NPE

2011-09-12 Thread Deepal Jayasinghe
ervice? How can I tell where the NPE is occurring? > > Thanks. > > -------- > *From:* Deepal jayasinghe > *To:* java-user@axis.apache.org > *Sent:* Monday, September 12, 2011 4:46 PM > *Subject:* Re: [Axis2] How

Re: Latest axis distribution on OAS (using jdk 1.4)

2011-10-16 Thread Deepal Jayasinghe
Hi there, If you are referring to Axis2, then that does not work on JDK 1.4, you need to use JDK 1.5 or above, Deepal On 10/16/2011 11:13 PM, Abhijeet C Kale wrote: > Hi, > > I was wondering if anyone has tried using the latest axis binary > distribution and deployed it on a OAS (oracle applicatio

Re: Returning response to client from handler

2011-10-17 Thread Deepal Jayasinghe
You probably need to do what the Message Receiver does, create a response message and send it. Deepal > Hi, > I am developing a web service using Axis2 and have a question about > handlers and message flow. > I implemented a handler, and in some cases I would like to give > response to client wit

Re: Latest axis distribution on OAS (using jdk 1.4)

2011-10-17 Thread Deepal Jayasinghe
wrote: > Thank you for the quick response Deepal. > Do you know which version of axis is supported on jdk 1.4? > your help appreciated. > > Regards, > Abhijeet C Kale > > Website : *http://www.etouch.net* | Twitter: > *http://twitter.com/samepagewiki* > > On 10/1

Re: error handling - please help

2011-10-20 Thread Deepal Jayasinghe
Use TCP monitor [1] and log the outgoing and incoming message. [1]: http://ws.apache.org/commons/tcpmon/download.cgi Deepal > Hi > > I am writing a java/axis2 program to access a remote service written in .Net. > > The problem I am having is that when the remote service does not like our > requ

Re: error handling - please help

2011-10-20 Thread Deepal Jayasinghe
start. I have to be able to = > work out what went wrong (in the program) and getting the original = > incoming message is probably the only way to do that. > > regards > Grant > > On 20/10/2011, at 11:49 PM, Deepal Jayasinghe wrote: > >> Use TCP monitor [1]

Axis2 tutorial at ApacheCon US 2011, Vancouver, BC

2011-10-24 Thread Deepal jayasinghe
Guys, I will be doing an Axis2 tutorial at ApacheCon US 2011 [1], if you have not register this is the time to register [2]. This tutorial gives a good introduction to most commonly used Axis2 features alone with code samples. [1]: http://na11.apachecon.com/talks/18384 [2]: http://na11.apachec

Re: Axis2: How can I put/use .aar file in Tomcat?

2011-11-07 Thread Deepal Jayasinghe
first you need to deploy axis2.war file into tomcat/webapps then start tomcat and copy the aar file into tomcat/webapps/axis2/WEB-INF/services Deepal > Hello, > > I could not see it in > http://localhost:8080/axis2/services/listServices > > More information about my Tomcat and webapps directory

Re: Web Service Development using XML Schema

2011-11-13 Thread Deepal Jayasinghe
I am not 100% sure whether our code generator can generate code from XML schema since it does not have the binding. Because, having a schema simply means a collection of data types. Thus, there should be a way to associate them (such as WSDL binding). Best approach would be to create a WSDL and ge

Re: [Axis 2]: Person Information Collection - Web Service

2011-11-21 Thread Deepal jayasinghe
On 11/21/2011 3:03 PM, S P wrote: > Hi, > > I want to have a web service so that each person can put his/her > surname, firstName, and dateOfBirth > and this information will be extended as a XML file (Person.xml) on > our server. Are you talking about XML based database ? Any particular reason to

Re: Axis2 - Can a handler forward to a remote service.

2011-11-30 Thread Deepal jayasinghe
Apache Synapse does something similar to what you described, you can either try it or you can implement in your own way. You can invoke a remote service either inside a handler or in the message receiver. An easiest way to do is to create service client inside the handler (or Message Receiver) and

Re: Axis2 - Can a handler forward to a remote service.

2011-12-02 Thread Deepal jayasinghe
; service. Now when I get the remote call back I want to bypass the Axis2 > attempt to call the local service, that does not exist, and get the remote > call into the outflow handlers is that possible? > > Thanks, > Donald Kintzing > > > On Nov 30, 2011, at 10:31 AM, Dee

Re: Axis2 Skeleton not found?

2011-12-20 Thread Deepal Jayasinghe
Can you check whether the correct message receiver is listed on your services.xml ? Deepal On 12/20/2011 9:28 AM, athom wrote: > > I created a service for axis2 and implemented a service skeleton and a > MessageReceiver for that service. > > When i now want to call that service from a client, the

Re: what is Axis2 equivalent of Axis1's stub._setProperty("javax.xml.rpc.service.endpoint.address", "http://new.endpoint.here")?

2011-12-30 Thread Deepal jayasinghe
On 12/30/2011 3:51 AM, a...@itisdesign.com wrote: > Hi all, > > New here. Could anyone please let me know the Axis2 equivalent of > Axis1's stub._setProperty("javax.xml.rpc.service.endpoint.address", > "http://new.endpoint.here ")? > > I'm referring to these documents: >

Re: Database connection pooling

2011-12-30 Thread Deepal Jayasinghe
the article "Exposing a Database as a Web Service" by Deepal > Jayasinghe. Thanks to Deepal otherwise I don't know where to start. > Then I used the sample code there and modified for my use. > Everything works well except the database connection timeout. > > Most articles

Re: Problems parsing XML

2012-01-30 Thread Deepal Jayasinghe
How did you generate the code ? did you use the ?wsdl and generate the stubs or did you do something else. Deepal > I'm still trying to build an axis2 client, but I'm not skilled enough to find > the problem here, so I ask for your advice. This is a long post, sorry. > > When I run the ADB clien

Re: Adding SOAPHeader From Service To Client. [Axis2]

2012-03-26 Thread Deepal Jayasinghe
Hi there, Add a soap header can be easily done by adding a handler in the outgoing message flow. You can access the soap headers at the client side by following the instructions given here: http://wso2.org/library/3156 On 3/26/2012 10:12 AM, alessio.lunarde...@iit.cnr.it wrote: > Hi all, > i nee

  1   2   >