Re: Axis2 SSL Configuration [Exception javax.crypto.Cipher.getInstance]

2008-05-22 Thread prashants b
Thanks Steve. IBM article is really helpful. I am using self signed certificate. 1) I generated server keystore. 2) Exported sever certificate from this keystore 3) Imported this server certificate to client keystore(clientTrustStore). and set these property in my Axis2 client. System.setProper

[Axis]Deserialization problem

2008-05-22 Thread Pablo Melchi
Hi everybody. I have a problem with a deserialization for axis (axis1) The problem is with a SOAP Message rpc/encoded, I have already gone through the code and it looks like there is a problem between the position of the tags in the message and the way that Axis is looking for the first element w

Re: SOAP Attachment Questions

2008-05-22 Thread Thilina Gunarathne
Hi, 1) Is there an example on how to send a soap message with a binary > attachment using MOTM in java for client and server side using Axis2? I > found the one in the samples directory using SoapwithAttachments, but Im > looking for same example but using MOTM. There is a MTOM sample in the Axi

RE: SOAP Attachment Questions

2008-05-22 Thread Marc Lefebvre
Thank you! What about #2, regarding receiving attachments from server to client? Any examples of that around to view? __ Marc Lefebvre, Principle Software Engineer Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 Phone: (808)442-7168, Email: [EMAIL PROTECTED] echo '16i[q]sa[ln0=aln100%Pln100/

Re: SOAP Attachment Questions

2008-05-22 Thread Thilina Gunarathne
You may want to look at the latest http://ws.apache.org/axis2/1_4/mtom-guide.html ~Thilina On Thu, May 22, 2008 at 3:43 PM, Virtual Light <[EMAIL PROTECTED]> wrote: > Take a look at this: http://ws.apache.org/axis2/1_1/mtom-guide.html > > Regards, > Bill > > > > -- >

Re: is ServiceClient thread-safe?

2008-05-22 Thread Will Briggs
I just had to go through re-writing my singleton connection class to use ThreadLocal (quick and relatively painless, but a learning experience nonetheless)... Maybe someone else on the list has a better suggestion, but this seems to be the easiest way I've found of being able to use a pseudo-s

Re: is ServiceClient thread-safe?

2008-05-22 Thread Alexis Midon
well, actually I was trying to get ride of the threadLocal ;) maybe I will stick with it. Thanks for your answer! nevertheless, can we get a rock-solid answer about this? On Thu, May 22, 2008 at 4:35 PM, Will Briggs <[EMAIL PROTECTED]> wrote: > Is it critical to share it amongst several threads,

Re: is ServiceClient thread-safe?

2008-05-22 Thread Will Briggs
Is it critical to share it amongst several threads, or are you just looking to minimize the number of clients you instantiate? Last I heard, ServiceClient was not thread-safe. However, you can implement a Singleton pattern using ThreadLocal so that everything running within the same thread ca

is ServiceClient thread-safe?

2008-05-22 Thread Alexis Midon
Hi all, I'd like to know if I can share one ServiceClient instance among several threads. Thanks, Alexis

Axis2 1.4 not Thread safe (possible bug)

2008-05-22 Thread sultanat
People, I created a web service using Axis2 1.4 and was accessing it with multiple Threads. It appears that the SOAP xml during parsing was getting corrupt and throwing all kinds of exceptons like invalid XML, expecting some other element etc... I tried the same test with same web service using

RE: Design suggestion

2008-05-22 Thread Ebert, Chris
I found the integration between Spring and Axis a little troublesome. Eventually, I wrote an extension of the RPCProvider that fetched handlers from the bean factory. Maybe there's a better way to do it: the base problem is controlling the life cycle of service objects. Other than that, the WSDD

RE: Design suggestion

2008-05-22 Thread Raghu Upadhyayula
Hi Priya, Take a look at the Axis2 User's guide at http://ws.apache.org/axis2/1_4/userguide.html It has some information about the axis2.war distribution directory hierarchy. By seeing that you'll get a good understanding of where to place your aar files

Design suggestion

2008-05-22 Thread Priya Agrawal
Hello, I need some help in order to make some design. We have spring MVC based web application. That is working fine on Tomcat web server. It has some basic operations like insert, search, modify person info. Now we have a requirement to expose those operation as web service. I write down the WS

Boundle Aar files in war file

2008-05-22 Thread Priya Agrawal
Hello, I can include my aar(Web service ) inside a .war file. So my .aar files(Web service) can use logic(Business logic) of my .war files. Thanks, Priya Agrawal

JSR181 and null MessageContext.getCurrentMessageContext()

2008-05-22 Thread Jason R. Weiss
Hi all, There are a number of posts out on the net about ThreadLocal and MessageContext.getCurrentMessageContext(). In particular, the following posts is very clear that the AXIS .jar must be from the same class loader or you get a null back from the call: http://markmail.org/message/op

RE: SOAP Attachment Questions

2008-05-22 Thread Virtual Light
Take a look at this: http://ws.apache.org/axis2/1_1/mtom-guide.htmlRegards,BillSubject: SOAP Attachment QuestionsDate: Thu, 22 May 2008 10:13:33 -1000From: [EMAIL PROTECTED]: axis-user@ws.apache.org 1) Is there an example on how to send a soap message with a binary attachment using MOTM in

SOAP Attachment Questions

2008-05-22 Thread Marc Lefebvre
1) Is there an example on how to send a soap message with a binary attachment using MOTM in java for client and server side using Axis2? I found the one in the samples directory using SoapwithAttachments, but Im looking for same example but using MOTM. 2) Are there any examples using SwA and

Re: Axis2 SSL Configuration [Exception javax.crypto.Cipher.getInstance]

2008-05-22 Thread SGruverman
You've only generated the public/private keypair that goes in the server-side keystore. You'll also need to generate a certificate for the public key of that pair and send that to a certificate authority to sign. Then the public key certificate of that authority needs to be in the client's keystore

RE: How to access SOAP headers from inside generated service interfaces?

2008-05-22 Thread Virtual Light
You would need to write your handler with thread safety in mind unless your web service scope is set to "request", in which case a new handler instance would be created per request. Down side is of course everything has to be recreated which is costly. BTW if this is for a JAX-WS style web ser

AW: AXIOM API

2008-05-22 Thread joern.albinger
S o, sorry for that. Its only root.getText(); Very blind. Thanks Jörn Hello togehter, I have an urgeng question and hope that you can give me an response. My rquest to the server looks like this --->> 3284738743 The server method is for example: public String getElemelt(OMElement r

Re: [Rampart] Multiple Security headers in outgoning message

2008-05-22 Thread Ruchith Fernando
IMHO this is not possible right now with Rampart... and it doesn't really take the actor/role into account at the moment. Thanks, Ruchith On Fri, May 9, 2008 at 1:01 PM, Daniel Löf <[EMAIL PROTECTED]> wrote: > Hi! > > > > > > I am using axis2 and Rampart 1.3 and I'm trying to construct a message

AXIOM API

2008-05-22 Thread joern.albinger
Hello togehter, I have an urgeng question and hope that you can give me an response. My rquest to the server looks like this --->> 3284738743 The server method is for example: public String getElemelt(OMElement root) Is it posible to read this OMElement. How can I get the content of root

Re: How to use xsd in Axis2?

2008-05-22 Thread Bartolomeo Nicolotti
Hi, you can use it to specify the syntax of the body of a soap-message, as described here: http://dbe.ita.es/viewcvs/dbe/doc/ita/ota/OTA2006A_PublicReview/OTA_ImplementationGuide_WSDL_20060410.pdf?rev=HEAD In attachment here you are a wsdl that uses OTA xsd, modify it to use your xsd and put it

Re: XMLStreamException "the prefix ==> Already exists for namespace" when WS-Security Rampart is engaged for Axis 2 web-services

2008-05-22 Thread RICHARD FEATHERSTONE
If only the server requires authentication you can take the outflow out. If the client needs to authenticate the response from the server you cannot. As soon as I get a chance I'll get a test case together and submit a bug (unless one of you get in first) Until then maybe one of the Rampart dev

How to use xsd in Axis2?

2008-05-22 Thread Chinmoy Chakraborty
I have a xsd file. How to use that in axis2 for my service? Chinmoy

Re: Webservice slow to start (82s) hard to debug

2008-05-22 Thread Bartolomeo Nicolotti
Hi I've solved the problem deploying the web service direcly in a web application without using an aar file, following this instructions: http://wso2.org/library/90 The server now starts in 9s ... and the service still works! Bye Il giorno gio, 22/05/2008 alle 16.50 +0200, Bartolomeo Nicolotti

[Axis2] Problem with ADB and custom exceptions

2008-05-22 Thread Michael Sonntag
Hello list! I have a simple Java class service with one method: ... public void foo() throws MyException { throw new MyException(); } ... I use the Eclipse-WebService plugin (not the Axis2-codegen-plugin, because it fails with a InvocationTargetException) to publish a WebService to Tomcat. Then

ADB Not Parsing Incoming XML Correctly

2008-05-22 Thread Doug Haigh
I have an xsd that looks like ... ... The 'ContainedResource' can either be a FactoryResourceAttributesDocument or a BasicResourceAttributesDocument. When I receive the data from the web services the XML looks like

Webservice slow to start (82s) hard to debug

2008-05-22 Thread Bartolomeo Nicolotti
Hi I'm using axis2-1.4 to implement a web service to receive OTA xml: http://www.opentravel.org/Specifications/ReleaseNotes.aspx?spec=2007A The body of the soap message is an OTA xml described from OTA xsd. The problem is that these xsd are really big and it takes 82s for the server to start! T

Help: How to passing array of objects to service in Client side

2008-05-22 Thread Teresa Yuan
Does anybody have a working example for passing array of complex type to a service? I have no problem of getting a array of complex type back. The following is the details of my program. I got error: No such operation 'returnOrder' when trying passing a arrayOfObject to the service. -- The serv

Re: Does Axis2 support 2D/2D object array as return type?

2008-05-22 Thread Chinmoy Chakraborty
Hi Vinh, How I can define XSD schema that mentioned here? and how to reference that from my services.xml? should i put these is a xml file and put the file in classpath? Please tell me the real file format of

RE: How to access SOAP headers from inside generated service interfaces?

2008-05-22 Thread Troutman_Matt
Thank you for the reply. I think I would still have a problem using a handler that stored a context because I would then need to access this context from inside the service interface. This works fine if you are only receiving one request at a time but when you start having concurrent requests you a

RE: axis2 and jaxb

2008-05-22 Thread Glen Verran
I find that JAX=WS generates some REALLY pathetic WSDL's and I have decided not to use it at all. JAX-WS when generating WSDL's with ?wsdl in your browser is a joke! Axis2 seems to be happy with JAXB based classes, although it seems that Axis2 natively doesn't support enum types and it doesn't k

Re: axis2 and jaxb

2008-05-22 Thread Davanum Srinivas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 And don't forget the 6-odd new JAXWS samples (some with JAXB) as well. - -- dims Virtual Light wrote: | The latest release of Axis2 (1.4) has some decent documentation on generating JAX-WS style web services which by default utilize JAXB bindings.

RE: axis2 and jaxb

2008-05-22 Thread Virtual Light
The latest release of Axis2 (1.4) has some decent documentation on generating JAX-WS style web services which by default utilize JAXB bindings. http://ws.apache.org/axis2/1_4/jaxws-guide.html Regards, Bill > From: [EMAIL PROTECTED] > To: axis-user@ws.apache.org > Subject: axis2 and jaxb > Date

RE: How to access SOAP headers from inside generated service interfaces?

2008-05-22 Thread Virtual Light
If you want to access the headers the way to do that would be through a handler. You would then need to store the information that you need in an object (normally a context) that would be accessible to your application. Regards, Bill > From: [EMAIL PROTECTED] > Subject: How to access SOAP h

How to return data in a list?

2008-05-22 Thread Chinmoy Chakraborty
Hi All, I have a service that returns a list. I found if the list contains string then it returns fine (with data) but if the list contains complex type it becomes empty and returns empty data. Can you tell me how can i resolve this issue? Chinmoy

Axis2 SSL Configuration [Exception javax.crypto.Cipher.getInstance]

2008-05-22 Thread prashants b
I generated keystore using $java_home/bin>keytool.exe -genkey -alias tomcat -keyalg RSA. Generated keystore file I copied at location C:/cert In Axis2 client I set the system properties as System.setProperty("javax.net.ssl.trustStore", "C:/cert/.keystore"); System.setProperty("javax.net.ssl.trus

Re: cached archive files not deleted

2008-05-22 Thread SGruverman
Deepal, Thanks for your reply. Deepal Jayasinghe <[EMAIL PROTECTED]> wrote on 05/22/2008 01:34:45 AM: > > In my Tomcat work directory (work\Catalina\localhost\axis2) I'm getting > > multiple copies of the archives (jar, aar, mar): > > axis211221antlr-2.7.6.jar > > axis217411antlr-2.7.6.jar > > >

Modify wsdl2java.sh for big xsd

2008-05-22 Thread Bartolomeo Nicolotti
Hi I'd like to suggest to modify wsdl2java.sh to manage big xsds by adding more memory to java virtual machine: $AXIS_HOME/bin/wdsl2java.sh --add--> -Xmx512m ... sh `dirname $0`/axis2.sh -Xmx512m org.apache.axis2.wsdl.WSDL2Java $* ... Without this I couldn't generate server stub from OTA xsd

Re: Web service not compatible with Axis?

2008-05-22 Thread hermann . x . lau
I talked to the web service admin and he claims that their service is not compatible with Axis because according to him "Axis always puts the element as a header to the xml string , and the web service are not built to handle that.". Like I asked below, is there any way to create the OMElemen

Re: Axis error - Could not generate WSDL! There is no SOAP service at this location

2008-05-22 Thread Anne Thomas Manes
I'm confused. You have a WSDL document, correct? Did you run it through WSDL2Java? That should generate a skeleton and a WSDD. You still have to write some code to plug into the skeleton. Alternatively, you can start with a class and deploy it using the JWS option (assuming you have no complex typ

Re: Tomcat issue with AXIS web service

2008-05-22 Thread Thamizh
Hi Saran, Thanks a lot for replying I have fixed my tomcat problem now. My problem was When I stop the tomcat, the shut down port was not closed it is still listening. When I start it again it says address already in use. I used below commands to check the port listening and killed those ports kil

axis2 and jaxb

2008-05-22 Thread Roberto Juarez Maldonado
Hi all again, does anyone know how to integrate Axis2 with the JAXB? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Axis error - Could not generate WSDL! There is no SOAP service at this location

2008-05-22 Thread paul.ockleford
Hi, I have written a web service and deployed and that is fine, I am now trying to use the wsdl I have generated with axis to build server side skeleton code. I have managed to do this and it seems ok. I am now trying to use the generated wsdd file from the skeleton deploy to generate a new wsdl.

Re: How to prevent that a handler is invoked for all services ?

2008-05-22 Thread stlecho
Hi, Does this mean that we have to create a module and that we can not just add the custom handler to the InFlow ? Regards, Stefan Lecho. Michele Mazzucco-2 wrote: > > http://ws.apache.org/axis2/1_4/modules.html > > > On 22 May 2008, at 09:04, stlecho wrote: > >> >> Hi, >> >> We have devel

Re: How to prevent that a handler is invoked for all services ?

2008-05-22 Thread Michele Mazzucco
http://ws.apache.org/axis2/1_4/modules.html On 22 May 2008, at 09:04, stlecho wrote: Hi, We have developed and deployed 2 webservices in the same Tomcat server. For one of these webservices, a custom handler should be invoked. When adding the handler to the PRE-DISPATCH or DISPATCH phase

Re: Axis2 JMS Transport to WebSphere MQ

2008-05-22 Thread Adis
Hi, Did you succeed in setting axis2.xml accordingly for WMQ jms transport? If so can you please provide updated axis2.xml Thanks in advance Adi callagc4 wrote: > > Hi, > > We are currently using axis2 in a standalone server. I have been trying to > configure axis2 to hook up with webspher

problem with sets

2008-05-22 Thread Roberto Juarez Maldonado
Hi all, I have just started out developing with axis2 (version 1.4) and having trouble with collections and ADB. I have two pojos and a service class. The pojos are sth like public class Other { public String aVariable; public BigInteger anotherVariable; ... } public class Data { priva

RE: XMLStreamException "the prefix ==> Already exists for namespace" when WS-Security Rampart is engaged for Axis 2 web-services

2008-05-22 Thread Darshan Jawalebhoi
Hey thanks for that quick workaround Richard. It worked for me too J Darshan Jawalebhoi http://curiousdeveloper.blogspot.com From: RICHARD FEATHERSTONE [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 3:16 PM To: axis-user@ws.apache.org Subject:

How to prevent that a handler is invoked for all services ?

2008-05-22 Thread stlecho
Hi, We have developed and deployed 2 webservices in the same Tomcat server. For one of these webservices, a custom handler should be invoked. When adding the handler to the PRE-DISPATCH or DISPATCH phase, results in the same behaviour: the handler is invoked for both webservices :o(. Is there a

Re: cached archive files not deleted

2008-05-22 Thread Deepal Jayasinghe
I'm trying this question again: Not sure if this is an Axis2 issue, Tomcat issue or what): In my Tomcat work directory (work\Catalina\localhost\axis2) I'm getting multiple copies of the archives (jar, aar, mar): axis211221antlr-2.7.6.jar axis217411antlr-2.7.6.jar Yes , Axis2 creates temp

Re: Tomcat issue with AXIS web service

2008-05-22 Thread Suran Jayathilaka
Hi, At first glance it looks to me like there is an undead tomcat instance running, which prevents a new instance from starting up. Search running processes for tomcat instances ( ps aux | grep tomcat ) and kill them if necessary and try start tomcat again. Also, something seems to have opened

Webservice client using configured proxy.

2008-05-22 Thread Phani
Hi, I need to access a webservice using proxy. I have the proxy Ip and port. I have created HttpTransportProperties.ProxyProperties object and I have set this property on ServiceClient options object as shown below. serviceClient = new ServiceClient(null, definition, serviceName, por