Architecture to replace axis2.xml and services.xml

2009-09-23 Thread Sam Carleton
I am using Axis2/C in an kiosk application. So my customer is the admin of the system and their customers the user of the system. The security is designed to limit my customer, the effective admin of the system from enabling features no purchased. If the architecture of Axis2/C allows it, I

Using ws--addressing to field to send a email

2009-09-23 Thread Håkon Sagehaug
Hi all I'm experimenting with ws-addressing and axis2, so far I've used it for my async service where the client sets the replayTo header, to a new port on the client machine where the server response should be recieved this works fine. Now I wanted to test out to send the response to a email,

persistance using POJO's

2009-09-23 Thread John Wilkinson
Hi, I wish to have my service persist POJO's to a postgresql database. Every time I call a service, do I need to connect to a database, and then at the end close the connection. Or is there a way to open the connection when the service is first called, and then close when I stop using the

Re: persistance using POJO's

2009-09-23 Thread Upul Godage
Hi, You should use a database connection pooling of some sort. http://onjava.com/pub/a/onjava/2006/04/19/database-connection-pooling-with-tomcat.html Upul On Wed, Sep 23, 2009 at 1:41 PM, John Wilkinson john_wilkin...@xyratex.com wrote: Hi, I wish to have my service persist POJO’s to a

Re: Using ws--addressing to field to send a email

2009-09-23 Thread Upul Godage
I guess you have to enable the mail transport. http://ws.apache.org/axis2/1_4_1/mail-configuration.html Depending on the version you may need, http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-transport-mail/1.0-SNAPSHOT/ 2009/9/23 Håkon Sagehaug

Re: persistance using POJO's

2009-09-23 Thread Sagara Gunathunga
This is also possible by implementing ServiceLifeCycle interface [1], it contains two methods called startUp (..) and shutDown(..) that can be used to open db connection at service deployment time and close at db connection at system shut down time. So you can use startUp (..) method to open

Axis Exposing services xml soap messages

2009-09-23 Thread sh_santosh
Dear All, I need to expose web services.I got a SOAP request xml structure and a SOAP response xml. By seeing the SOAP xmls structure, i am not able to identify, which kind of web service (rpc/encodec or doc/literal or wrapped/literal) i have to expose. Which tools, i need to use to expose the

Using Rampart for Federation

2009-09-23 Thread Francesco Stampacchia
Hello everyone, could you please point me out to some guides that show how to use Rampart in a federated environment. -- Francesco Stampacchia

Problem: get Client IP by using MessageContext

2009-09-23 Thread dishmily
hello, my web service uses axis2. i want to get the Client (IP), which invokes my web service. by using: import org.apache.axis2.context.MessageContext; IP = (String) MessageContext.getCurrentMessageContext().getProperty(REMOTE_ADDR); i got the result: IP= 0:0:0:0:0:0:0:1 what i wanted

Re: Problem: get Client IP by using MessageContext

2009-09-23 Thread Prabath Siriwardena
import org.apache.axis2.context.MessageContext; IP = (String)MessageContext.getCurrentMessageContext().getProperty(MessageContext.*REMOTE_ADDR*); Thanks regards. -Prabath dishmily wrote: hello, my web service uses axis2. i want to get the Client (IP), which invokes my web service. by

Re: Problem: get Client IP by using MessageContext

2009-09-23 Thread Prabath Siriwardena
import org.apache.axis2.context.MessageContext; IP = (String)MessageContext.getCurrentMessageContext().getProperty(MessageContext.REMOTE_ADDR); Thanks regards. -Prabath dishmily wrote: hello, my web service uses axis2. i want to get the Client (IP), which invokes my web service. by

unsubscribe

2009-09-23 Thread D.H.T.M.Gameren
unsubscribe == The information transmitted via this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or

RE: persistance using POJO's

2009-09-23 Thread John Wilkinson
Thank you Sagara, If I implement the ServiceLifeCycle interface, can you give me a simple example of how I would access the connection from a POJO, and how the startup method saves the connection to a parameter, please. Many regards, John. John Wilkinson. Product Engineer.

Re: persistance using POJO's

2009-09-23 Thread Sagara Gunathunga
Hi John, Can you try for this ... In your ServiceLifeCycle implementation class open and close the db connection as follows. Class MyServiceLifeCycle implements ServiceLifeCycle { public void startUp(ConfigurationContext arg0, AxisService service) { Connection conn=null;

Re: content type for rest/pox requests

2009-09-23 Thread Andreas Veithen
This is probably caused by the change in AXIS2-3228, which went into Axis2 1.4. Andreas On Tue, Sep 22, 2009 at 23:59, Alexis Midon mi...@intalio.com wrote: Hi all, I struggled for a while before I finally managed to invoke a service with non-soap message.  Here is why. The following

RE: persistance using POJO's

2009-09-23 Thread John Wilkinson
Thanks Sagara for you help, I will have a go. Many regards, John. John Wilkinson. Product Engineer. x-y-r-a-t-e-x e-mail: john_wilkin...@xyratex.com Tel: +44 (0)2392 6225 Mobile: +44 (0)7810 497152 -Original Message- From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]

getting hold of the archive file from inside it

2009-09-23 Thread J. Hondius
Hi all, I want to read the filename/date of the .aar from code inside it. (or jar) Does anyone know how to do that? I searched and tried But i only found classpath based solutions (see below) This does not seem to work in axis, because the .aar is not in the classpath but in the repos.

Problem with annotating WebParam parameters with custom annotations

2009-09-23 Thread Jim Andreou
Hi all, On the kernel module, org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator, method getParameterName, I see this code: if (parameterAnnotation.length 0) { Annotation[] tempAnnon = parameterAnnotation[j]; if (tempAnnon.length 0) {

Axis1 and proxy

2009-09-23 Thread Wishing Carebear
Hello: Have added the proxy information to the jvm arguements but when the call is made get the following exception. Could someone give me some pointers. Thanks, cabear proxy host is 10.1.32.163 proxy port is 6588 proxy set is null proxy user is null proxy password is null AxisFault faultCode:

Few SOAP Request format not supported by AXIS 2

2009-09-23 Thread sri ram
HI Alll, Axis 2 doesn't support some format of SOAP messages ,Is there a reason for it,or is it a standard. Axis 2 doesn't support this format of request , any idea why ??? SOAP-ENV:Envelope encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;

access to SOAP Body Element (Axis2 API)

2009-09-23 Thread Asma Maalej
Hello Using Axis2.1.4.1, and in order to recover methods name of a web service within a handler code, I tried to access to the SOAP message and extract it from the SOAPBody. Then, I tried to use SOAPBodyElement Class as shown below : * SOAPEnvelope soapenv = messageContext.getEnvelope();

Re: Java2Wsdl with DataHandler method

2009-09-23 Thread AJ81
Hello Deepal, How do I send an array of Datahandlers from a client . I have a class which has a getter , setter for DataHandler [] arr - but in the wsdl the type is xsd:anytype Thanks AJ Deepal Jayasinghe wrote: Hi Brendan , We had that issue in Axis2 1.1.1 , but in Axis2 1.2 release we

Socket Timeout error in webservice client

2009-09-23 Thread Ashish Kulkarni
Hi How to debug socket timeout error in web service client, is there anyway i can monitor packets or some thing that is coming in the system to check what is happening? -- Ashish www.ayurwellness.com www.mysoftwareneeds.com

WSDL client generation. Problem with more than one part and binding style document

2009-09-23 Thread error3
Hello, with the attached wsdl file (it's an simplified version of mine), I'm trying to generate WS client (in eclipse, and with Axis2). while trying to generate the client, I have an error saying that more than one part in the message... (I do not have the message nor my development environment

Re: WSDL client generation. Problem with more than one part and binding style document

2009-09-23 Thread Amila Suriarachchi
On Thu, Sep 24, 2009 at 5:46 AM, error3 err...@free.fr wrote: Hello, with the attached wsdl file (it's an simplified version of mine), I'm trying to generate WS client (in eclipse, and with Axis2). while trying to generate the client, I have an error saying that more than one part in the

RE: Customizing end point location

2009-09-23 Thread Sanjay Gupta
Hi, Deos any have any suggesion on how I can accomplish this. I would appreciate any help. Thanks Sanjay -Original Message- From: Sanjay Gupta [mailto:sanjay.gu...@billwiseinc.com] Sent: Monday, September 21, 2009 3:40 PM To: axis-user@ws.apache.org Subject: Customizing end point

RE: SOAP Encoding in axis2

2009-09-23 Thread Sanjay Gupta
Hi, Is there any workaround? The problem I have is that I need to consume these services in a grails app that is already using axis2 to expose part of it as services and also consuming axis2 services. I don't think axis1 can co-exist with axis2 in the same app. Sanjay -Original