RE: axis2 - creating a customer exception

2008-12-12 Thread Pär Malmqvist
I have reported a similar issue a year ago. https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Is anyone trying to solve the JIRA? Is it a tough one to fix or just lack of time and other priorities? Regards Pär Malmqvist To:

Re: axis2 - creating a customer exception

2008-12-12 Thread Andrea Spinelli
spar...@scottsdaleins.com ha scritto: I have created a custom exception and it is being throw by the web service. The exception has two fields and getter and setter methods for those fields. Those fields are being set by the service before it throws the customer exception. On the client

How to Use JSON Objects in a Web Service

2008-12-12 Thread Jan Freitag
Hi, I'm trying to implement a Web Service that gets as Request JSON Objects ( I try to write my own Location Proivder Service for the Google Gears Geolocation API). I want to write these JSOn Objects on a HTML page to display them and I want to create a response to the JSOn Request that is also

Re: How to Use JSON Objects in a Web Service

2008-12-12 Thread keith chapman
These links might help you. [1] and [2]. Thanks, Keith. [1] http://www.keith-chapman.org/2008/09/enabling-json-in-apache-axis2.html [2] http://www.keith-chapman.org/2008/09/invoking-mashups-using-json.html On Fri, Dec 12, 2008 at 5:27 PM, Jan Freitag jan_frei...@gmx.de wrote: Hi, I'm trying

override wsdl

2008-12-12 Thread Rodrigo Asensio
Is there any way to override the wsdl generation ?? or should I do it manually ? thanks Rodrigo Asensio rasen...@gmail.com http://www.rodrigoasensio.com To err is human, but to really screw up requires the root password.

Re: Axis2 client - counting bytes sent and received

2008-12-12 Thread Michele Mazzucco
What about using a custom handler with a null output stream? Michele On 11 Dec 2008, at 23:42, Dave Meibusch wrote: Hi, I'm attempting to log statistics for my system, including the bytes sent/received for the components using Axis2 client code. Digging through the source of HttpClient,

Re: Can Axis 1.4 and Axis 2 1.2 co-exist on a single java application

2008-12-12 Thread keith chapman
Well you might wanna have a look at the WSO2 Web Services Application Server (WSO2 WSAS) [1]. It is built on top of Axis2 and a key feature of it is that you could deploy axis (Axis1) services on it. In there Axis2 is the primary engine and it creates a proxy services for Axis1 services. Thanks,

Re: axis2 - creating a customer exception

2008-12-12 Thread Deepal Jayasinghe
Andrea Spinelli wrote: spar...@scottsdaleins.com ha scritto: I have created a custom exception and it is being throw by the web service. The exception has two fields and getter and setter methods for those fields. Those fields are being set by the service before it throws the customer

Re: Axis 1 in semi-RESTful way

2008-12-12 Thread keith chapman
AFAIK Axis1 does not have support for REST, but Axis2 has rich support for REST. Therefore the following might be a good option for you. The WSO2 Web Services Application Server (WSO2 WSAS) [1] which is a complete runtime for web services built on top of Axis2 has a key feature that lets you

Re: override wsdl

2008-12-12 Thread keith chapman
Depends on your requirement. What sort of things do you wanna override? Thanks, Keith. On Fri, Dec 12, 2008 at 6:19 PM, Rodrigo Asensio rasen...@gmail.com wrote: Is there any way to override the wsdl generation ?? or should I do it manually ? thanks Rodrigo Asensio rasen...@gmail.com

Re: Axis2 client - counting bytes sent and received

2008-12-12 Thread keith chapman
You should be able to do this easily by using a module. We do this to show statistics in the WSO2 Web Services Application Server (WSO2 WSAS) [1] which is built on top of Axis2. We have done this by using a module. Thanks, Keith. [1] http://wso2.org/projects/wsas On Fri, Dec 12, 2008 at 4:04

Re: [Axis2] Custom Soap Header

2008-12-12 Thread keith chapman
This blog post [1] shows how you could add a SOAP header to the response manually. Thanks, Keith. [1] http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html On Wed, Dec 10, 2008 at 3:36 AM, Prasuna Lanka prasuna.la...@gmail.comwrote: Hello, Using Axis2-1.3. , I

Re: [Axis2] excludeOperations in services.xml problem

2008-12-12 Thread keith chapman
On Fri, Dec 12, 2008 at 5:40 AM, Deepal jayasinghe deep...@gmail.comwrote: hmmm, an excluded operation cannot be invoked, as far as I know from Axis 1.3. I will verify. Nope exclude operations will only exclude from WSDL, if that is not the case then something has broken. I dont think

Re: [Axis2] excludeOperations in services.xml problem

2008-12-12 Thread Deepal jayasinghe
On Fri, Dec 12, 2008 at 5:40 AM, Deepal jayasinghe deep...@gmail.com mailto:deep...@gmail.com wrote: hmmm, an excluded operation cannot be invoked, as far as I know from Axis 1.3. I will verify. Nope exclude operations will only exclude from WSDL, if that is

Re: override wsdl

2008-12-12 Thread Rodrigo Asensio
wanna override the default nillable and maxOccurrences attrib at types Rodrigo Asensio rasen...@gmail.com http://www.rodrigoasensio.com To err is human, but to really screw up requires the root password. On Fri, Dec 12, 2008 at 1:06 PM, keith chapman keithgchap...@gmail.com wrote: Depends on

Re: [Axis2] excludeOperations in services.xml problem

2008-12-12 Thread SPARAGA
have you looked into using annotation? specifically the tag @WebMethod(exclude=true) Deepal jayasinghe deep...@gmail.com 12/11/2008 05:10 PM Please respond to axis-user@ws.apache.org From Deepal jayasinghe deep...@gmail.com To axis-user@ws.apache.org cc Subject Re: [Axis2]

Re: [Axis2] excludeOperations in services.xml problem

2008-12-12 Thread Deepal jayasinghe
have you looked into using annotation? specifically the tag @WebMethod(exclude=true) Unfortunately no, but that is something we can easily fix. So let's create a JIRA :) Deepal *Deepal jayasinghe deep...@gmail.com* *12/11/2008 05:10 PM* Please respond to axis-user@ws.apache.org

Re: override wsdl

2008-12-12 Thread Deepal Jayasinghe
For that case, you have to put your wsdl into the service aar file. Then it will display yours rather than generating new one. Deepal wanna override the default nillable and maxOccurrences attrib at types Rodrigo Asensio rasen...@gmail.com http://www.rodrigoasensio.com To err is human, but

Re: access files inside AAR - File Path! not Resource / URL

2008-12-12 Thread Seem
I still have problems to access my resources. Is it necessary to add the additional folders inside my .aar explicitely to the classpath? Seem wrote: Just to clarify, I have a similar problem like this: http://www.nabble.com/Accessing-a-file-in-AAR-to16787898.html#a16898376 but I do not

Re: override wsdl

2008-12-12 Thread Rodrigo Asensio
all right, thanks for the tip Rodrigo Asensio rasen...@gmail.com http://www.rodrigoasensio.com To err is human, but to really screw up requires the root password. On Fri, Dec 12, 2008 at 2:26 PM, Deepal Jayasinghe dee...@opensource.lk wrote: For that case, you have to put your wsdl into the

Re: override wsdl

2008-12-12 Thread keith chapman
You might not be able to use the default RPCMessageReceivers with a custom WSDL though. You might need to do some tinkering to the WSDL to get it to work. Thanks, Keith. On Fri, Dec 12, 2008 at 10:00 PM, Rodrigo Asensio rasen...@gmail.comwrote: all right, thanks for the tip Rodrigo Asensio

Re: How to Use JSON Objects in a Web Service

2008-12-12 Thread Jan Freitag
Hi, thank you for the answer. I've seen your blog before, but I don't know how to start. Should I start to implement my web service (with java) or should i write the wsdl file? I don't know where i can configure the rquest format for the JSOn object. The Geolocation Api tells me how the

Re: How to Use JSON Objects in a Web Service

2008-12-12 Thread keith chapman
I'm not familiar with the Geolocation API. Could you post a sample request and response message (or JSON objects) for this scenario. No you do not need to start from WSDL. you could use Java code if you wanna use plain Axis2 or you could alternatively use the WSO2 Mashup Server [1] and write your

Re: How to Use JSON Objects in a Web Service

2008-12-12 Thread Jan Freitag
Hi, I want to write the web service with plain Axis2, but I'm open for other solutions. Here is an example request and response from the geolocation api: Gears Request { version: 1.1.0, host: maps.google.com, access_token: 2:k7j3G6LaL6u_lafw:4iXOeOpTh1glSXe,

Re: override wsdl

2008-12-12 Thread Deepal Jayasinghe
Well, if it is just changing the those attributes, I think he can still use the RPC MR. Deepal You might not be able to use the default RPCMessageReceivers with a custom WSDL though. You might need to do some tinkering to the WSDL to get it to work. Thanks, Keith. On Fri, Dec 12, 2008 at

Re: override wsdl

2008-12-12 Thread keith chapman
Not if you have used transfer objects. If you want to use transfer objects with RPCMessageReceivers you will have to tinker your WSDL. This article [1] has some tips that could help with this regard. Thanks, Keith. [1] http://wso2.org/library/3726 On Fri, Dec 12, 2008 at 10:36 PM, Deepal

Verisign CA - which product for X509V3 certs?

2008-12-12 Thread Hassel, Maik
This may be a little off-topic, but maybe someone went through this process before and can help me out? I am trying to secure an axis WS using encrypted and signed message bodies based on X509 version 3 certificates. It all works fine with my own test CA, but the requirement is to get a

AUTO: Hyen V Chung is out of the office (returning 01/07/2009)

2008-12-12 Thread Hyen V Chung
I am out of the office until 01/07/2009. I do not have email access during this time. If this is an urgent matter, please contact my manager Umesh Khatwani for backup support. Note: This is an automated response to your message Verisign CA - which product for X509V3 certs? sent on 12/12/08

[axis2] chunked encoding

2008-12-12 Thread Marc Lefebvre
How do I disable chunked encoding in Axis? I am running on HTTP1.1 and have an XML appliance that is not handling responses from Axis properly that are Chunked encoded. Any pointers, links, or advice is appreciated. __ Marc Lefebvre, Principle Software Engineer Akimeka, 1305 N. Holopono

Re: [Axis2] Custom Soap Header

2008-12-12 Thread Prasuna Lanka
Thanks for the link provided. (http://wso2.org/library/2068) . That gave a good insight of the detail of Beans generated. Here is my xml string: ns3:CustHeader xmlns:ns3=http://webservices.cust.com/cg/4.0/Core/; xmlns:soape nv=http://schemas.xmlsoap.org/soap/envelope/;

Re: [Axis2] Custom Soap Header

2008-12-12 Thread Prasuna Lanka
Keith: My attempt to set the SOAP headers in the response similar to the way you set the Http header hasnt succeeded. thanks for the link.. Thanks for the link provided. (http://wso2.org/library/2068) . That gave a good insight of the detail of Beans generated. Here is my xml string:

Re: Axis 1 in semi-RESTful way

2008-12-12 Thread kat kat
On Fri, Dec 12, 2008 at 7:06 AM, keith chapman keithgchap...@gmail.comwrote: AFAIK Axis1 does not have support for REST, but Axis2 has rich support for REST. Therefore the following might be a good option for you. The WSO2 Web Services Application Server (WSO2 WSAS) [1] which is a complete