Re: Destruction of ArrayBean -- Memory Leak?

2006-08-08 Thread Kelly, Niall
Title: Re: Destruction of ArrayBean -- Memory Leak? Hi, I have encountered memory leaks (reported by Purify (on Solaris) and Valgrind (on Linux)) in an AXIS C++ Client application. The leaks are associated with a clone of an array object (created by the

Re: [Axis2] Embedding Axis in your webapp

2006-08-08 Thread Alistair Young
brilliant! thanks very much Jason.AlistairOn 8 Aug 2006, at 01:36, Jason N wrote:Alistair,Here's what I did to get axis2 embedded in my web app.1)  Combine the axis2 specific lines from the axis2.war  web.xml file with the project's web.xml file.2) Copy the conf directory from axis2.war over to

Re: [AXIS2] persistence

2006-08-08 Thread Fabien Couble
Hi Deepal Thx for your response... but actually I'd like to know how I can implement persistence in Axis. I mean I need to use an object which must be persitent!! Can you advise me on some ways to do that?? This is the description of what I need to do: I'm implementing a protocol in which I

Re: [AXIS2] persistence

2006-08-08 Thread David Illsley
I don't want to be too glib, but have you thought about a database? Perhaps with Hibernate/Java Persistence? David On 08/08/06, Fabien Couble [EMAIL PROTECTED] wrote: Hi Deepal Thx for your response... but actually I'd like to know how I can implement persistence in Axis. I mean I need to

[Axis2]How to write a operation with multi-parameters?

2006-08-08 Thread zhu jiang
Hi All, I don't find any samples about writing operations with multi-parameters. How could I write a operation with multi-perameters, and how could I write the client side? Anybody can help me? Thanks, Jiang

Re: [AXIS2] persistence

2006-08-08 Thread Fabien Couble
Yes, I have thought about a database... Ok, what I have seen is that to implement the persistence in Axis2, we should either use an external way like a database or an EJB or modify the ConfigurationContext to save data. Maybe in my case as it is only an Hashmap of resources to save,

Re: User Guide: Code generation for client

2006-08-08 Thread Marcel Frehner
According to http://www.mail-archive.com/axis-user@ws.apache.org/msg16725.html, which I had overlooked before, we need to use the nightly snapshots. I still could not get it working. Now I definitely give up and wait for the next Release or at least for the next complete nightly build. Good

Re: Axis 1.3: Axis Interoperability issue with .net

2006-08-08 Thread Daniel Beland
Hi, it may not be an option for you, but what I do is I still use WSDL2Java from axis 1.2-RC3 and then use axis 1.4 in my code. So far that combination is working fine, the java classes get generated as they are defined ni the wsdl (I get classes generated for the wrapping array), butit means

[AXIS2] Nightly Build

2006-08-08 Thread Ignazio Anastasi
How can i install a Nightly Build? just execute the jar file everywhere? this make me the error Failed to load Main-Class manifest attribute from axis2-1.0.jarhow can i do? tnx all

Re: Question about handling custom exceptions in Axis 1.3

2006-08-08 Thread Daniel Beland
Hi, I have been using custom exceptions for nearly 2 years now and it always worked fine for me (since 1.2-RC2 I think). But I start from the WSDL and have the java classes generated. I find it easier to maintain 1 file and have 30 java classes generated than the opposite. Once you understand

Re: [Axis2] Where to put external jars

2006-08-08 Thread Michele Mazzucco
I've fixed the problem by putting libraries into the /lib directory. Is there any reason why the Class-Path manifest entry is not considered (but maybe this is a Tomcat fault)? Regards, Michele Michele Mazzucco wrote: Hi all, I've added some external jars into /WEB-INF/lib, but I get a

Re: [Axis2] NullPointerException when loading services (using Rampart)

2006-08-08 Thread Ruchith Fernando
Hi Brecht, If you just drop the jar (with the axis2.xml) into the classpath it should work. Thanks, Ruchith On 8/8/06, Brecht Yperman [EMAIL PROTECTED] wrote: This works, thanks. But what will happen once I put my classes in a jar-file? I think there will have to be a path, starting from the

Re: [Axis2]hard beginning

2006-08-08 Thread Paul Fremantle
The only thing I can think is that you have already got Xerces or Xalan in jre\lib\endorsed\ Paul On 8/7/06, Ignazio Anastasi [EMAIL PROTECTED] wrote: ok doctor :-) i use jdk 1.5.0_07 do you know the kind of problem? :-/ On 8/7/06, Paul Fremantle [EMAIL PROTECTED] wrote: Ok next

Re: [Axis2]How to write a operation with multi-parameters?

2006-08-08 Thread Anne Thomas Manes
What version of Axis are you using? If you are using Axis 1, then you can use RPC/encoded, RPC/literal, or wrapped document/literal style services with the RPC provider to support an RPC-like programming experience. For best interoperability, I suggest using wrapped style. See

[Axis2] Custom headers

2006-08-08 Thread Brecht Yperman
Hi, Im using the serviceclient to call webservices. I would like the user to be able to add custom headers to the headerelements. I should also be able to return custom headerelements from the response to the user. I thought about writing a handler, but I have a few problems (how

Re: [Axis2]hard beginning

2006-08-08 Thread Martin Gainty
Good Morning Paul- I found this tidbit for setting Property TransformerFactory System.setProperty(javax.xml.transform.TransformerFactory, org.apache.xalan.processor.TransformerFactoryImpl); Also..If you dont need DOM3 support then comment out the dom3-xml-apis.jar from your class path HTH

setting HTTP header in WSDL2JAVA code

2006-08-08 Thread smuel koler
I am generating code with AXIS 1.4 WSDL2JAVA The client-side classes thus generated work just fine to invoke the web-service described by the WSDL.But I need to set HTTP headers and I do not find any API that acts upon generated JAVA classes. The client-sideclasses generatedor used by the

[AXIS2]NewBie: obtain Parameter from a custom service

2006-08-08 Thread Chuan Guo
Hi, i'd like get some customed configuration informations for my service from the axis2.xml or services.xml. e.g. using Parameters. Then I need get the AxisConfiguration or the AxisService, right? (use getParameter(paramName)) my question is, how can i obtain AxisConfiguration or the

[Axis2] Exposing service with XMLBeans generated params

2006-08-08 Thread Alistair Young
If I want to expose as an axis2 service something like: public class Test { public TestEntity munge(TestEntity testEntity) { return Munger.munge(testEntity); } } and be able to use a client with the XMLBeans generated objects that the service uses, should I use the

Re: [Axis2] Exposing service with XMLBeans generated params

2006-08-08 Thread Davanum Srinivas
Alistair, Yes, the only option right now is to use RPC*MessageReceiver. BUT with a hand written WSDL. As we don't try to extract the schema from the xmlbeans generated object. Please log an JIRA enhancement issue saying that RPC*MessageReceiver should be able to generate runtime ?wsdl with

Re: [Axis2] Exposing service with XMLBeans generated params

2006-08-08 Thread Alistair Young
thank you! On 8 Aug 2006, at 14:15, Davanum Srinivas wrote: Alistair, Yes, the only option right now is to use RPC*MessageReceiver. BUT with a hand written WSDL. As we don't try to extract the schema from the xmlbeans generated object. Please log an JIRA enhancement issue saying that

Re: [Axis2]hard beginning

2006-08-08 Thread Ignazio Anastasi
after many attempts an example given from this site http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world seems to worki don't know why.. :-) but i cant make working my client.. Now to we can compile and run the client code. Its is important to note that the classpath must have all the

RE: [axis2] User credentials in service

2006-08-08 Thread Dave Cowing
Ruchith, Thanks. The odd thing is that in the example you refer to, the RECV_RESULTS vector comes from the message context properties. When I run axis, there are no properties in the message context, but if I get the options (msgCtx.getOptions()) from the message context, I can get the

RE: [Axis2] Custom headers

2006-08-08 Thread Martin Gainty
Concerning the processing of SOAPheaders There are 2 attributes which must be set to True which are: mustUnderstand -- forces the processing of SOAP Header and generated Fault if unable to process relay -- true says that block must be relayed if not processed For more information see

Re: [Axis2]hard beginning

2006-08-08 Thread Ignazio Anastasi
mm.. sorry, but i don't understand this.. can you explain it?On 8/8/06, Martin Gainty [EMAIL PROTECTED] wrote: Good Morning Paul-I found this tidbit for setting Property TransformerFactory System.setProperty(javax.xml.transform.TransformerFactory,

Re: [Axis2]hard beginning

2006-08-08 Thread Martin Gainty
When system level calls from Java instantiate a TransformerFactory it needs a fully qualified class (e.g. TransformerFactoryImpl) to performthe TransformerFactory functions.. M *This email message and any files transmitted

[AXIS2] AXIS2 and HIBERNATE

2006-08-08 Thread Fabien Couble
Hi all, I have chosen to use HIBERNATE to manage the persistence in AXIS2. I know that people have already used HIBERNATE with AXIS2 that's wy, I'd to know what is the protocol to install and use HIBERNATA withAXIS2? Should I install absolutly a J2EE server like JBOSS or JONAS? Or Can I

[Axis 1.3] Exception during writting attachment back to client.

2006-08-08 Thread yura . tkachenko
Hi I've got exception during passing attachment back to client. I've got method downloadAttachment which is passing in the response attachments: Attachments responseAttachments = MessageContext.getCurrentContext().getResponseMessage().getAttachmentsImpl();

Re: [Axis2]How to write a operation with multi-parameters?

2006-08-08 Thread zhu jiang
Great! Thanks a lot! Jiang 2006/8/8, Anne Thomas Manes [EMAIL PROTECTED]: What version of Axis are you using?If you are using Axis 1, then you can use RPC/encoded, RPC/literal, or wrapped document/literal style services with the RPC provider tosupport an RPC-like programming experience. For best

[AXIS2] BEA 8.1 sp4

2006-08-08 Thread Jim Mattson
I just downloaded Axis2.war from the site and deployed it in BEA Weblogic 8.1 sp4. I am trying to evaluate what needs to occur on migrating from Axis 1.3 to 2 for an upcoming project. Are they compatible? I got the following error: Aug 8, 2006 9:39:38 AM CDT Error HTTP BEA-101017

services.xml - where?

2006-08-08 Thread Alistair Young
I have services.xml in: org/test/META-INF/services.xml but axis2 says it can't find services.xml for the service. The website says to put META-INF/services.xml in the same directory as the class file. So I looked at the version.aar that comes with axis2 and it has two:

MTOM-RM Addressable Problem

2006-08-08 Thread Mancinelli Elodie
Hi Chamikara, Let me give you a summary of my problems : I want to create an example using both WS-RM and MTOM. On the server side, two operations are available : the first one is a oneWay op and the second is a request-response op. On the client side, I am trying to perfom three kind of

Re: [AXIS2] BEA 8.1 sp4

2006-08-08 Thread Davanum Srinivas
Jim, Could you please edit the HappyAxis.jsp in your web app and add the following lines: needed += needClass(out, javax.xml.namespace.QName, qname.jar, QNAME, Axis2 will not work, http://xml.apache.org/axis2/;); Right after the section that

Re: [axis2] User credentials in service

2006-08-08 Thread Ruchith Fernando
Hi Dave, Hmm I'm not sure whether the behaviour you explained is possible. If you look at the getProperty() method on the MessageContext class [1], its clear that the property fetched from the options instance of the particular MessageContext instance. Thanks, Ruchith [1]

Re: services.xml - where?

2006-08-08 Thread Alistair Young
thanks, putting META-INF at the same level as src works but the website image has META-INF inside the package structure. Now I get the error: ClassNotFoundException Error in loading message receivers org.apache.axis2.receivers.RPCInOutAsyncMessageReceiver Alistair On 8 Aug 2006, at

RE: [axis2] User credentials in service

2006-08-08 Thread Dave Cowing
Ruchith, You're right. Interestingly, when I call getProperties on MessageContect (inherited from AbstractContext), it pulls the properties from the context object (not from the options): public Map getProperties() { return properties; } The behavior seems inconsistant (I would

Re: [axis2] User credentials in service

2006-08-08 Thread Ruchith Fernando
Dave, Yes. It looks like we have some inconsistency in getProperties() and getProperty() methods. Deepal can you please shed some light on this? What can we expect from AbstractContext( or MessageContext)#getProperties()? Thanks, Ruchith On 8/8/06, Dave Cowing [EMAIL PROTECTED] wrote:

Re: services.xml - where?

2006-08-08 Thread Alistair Young
oh dear, it's time to go home! It should be: org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver -- Alistair Young Senior Software Engineer [EMAIL PROTECTED] Mòr Ostaig Isle of Skye Scotland thanks, putting META-INF at the same level as src works but the website image has META-INF

Re: [AXIS2] BEA 8.1 sp4

2006-08-08 Thread robert lazarski
Just to add to Dims advice, you could also try using prefer-web-inf-classestrue/prefer-web-inf-classes in weblogic.xml to insure that WEB-INF/lib jars will be loaded before weblogic jars HTH, Robert http://www.braziloutsource.com/ On 8/8/06, Davanum Srinivas [EMAIL PROTECTED] wrote: Jim,

[Axis2] Preserving the original WSDL

2006-08-08 Thread Alistair Young
Hi there, me again! Is there any way to preserve the original WSDL when deploying a service? The generated WSDL is not much use as it has removed all the types elements so no data binding can occur. I read somewhere that you can put the WSDL in META-INF but that didn't do anything. -- Alistair

Re: [AXIS2] AXIS2 and HIBERNATE

2006-08-08 Thread robert lazarski
Axis2 really has nothing to do with Hibernate - its just something that would go somewhere into your business logic of the service. If you configure and manage hibernate with spring, then you could wire spring into axis2 and then get subsequently get hibernate and axis2 working together - but

algorithm.classDoesNotExist Error!

2006-08-08 Thread Lakshmi Chaparala
Hi, We are using axis2.1.0 with JBoss and weblogic appservers. On the client-side we get the following error: FATAL (?:?) - No message with ID algorithm.classDoesNotExist found in resource bundle org/apache/xml/security/resource/xmlsecurity Though it says it is FATAL we get the results

Re: [AXIS2] BEA 8.1 sp4

2006-08-08 Thread Jim Mattson
Here is the output:Found QNAME (javax.xml.namespace.QName) at C:\bea\weblogic81\server\lib\weblogic.jarAs expected it is finding weblogic's version of QNameOn 8/8/06, Davanum Srinivas [EMAIL PROTECTED] wrote: Jim,Could you please edit the HappyAxis.jsp in your web app and add thefollowing

Re: [AXIS2] BEA 8.1 sp4

2006-08-08 Thread Jim Mattson
I've tried your suggestion:!DOCTYPE weblogic-web-app PUBLIC -//BEA Systems, Inc.//DTD Web Application 6.0//EN http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd weblogic-web-app prefer-web-inf-classestrue/prefer-web-inf-classes/weblogic-web-appI'm still getting the same issue. Do I need to

[axis2] Getting MessageContext or ServiceGroupContext in CallbackHandler

2006-08-08 Thread Dave Cowing
How can I get access to the MessageContext or ServiceGroupContext in a CallbackHandler for processing passwords with Rampart? Thanks, Dave

Re: Cannot work with Axis2 - URGENT - A quick list of lessons learnt

2006-08-08 Thread debasish . duttaroy
Preface I have a simple application which does nothing more than Insert, Update, Delete, Select from the Oracle database. Its a J2EE application where Front End : Struts 1.2, JSP etc. Middle Layer - Business Delegates, Service Locator, Value objects etc. Data Access Layer - iBATIS The

Re: [AXIS2] Preserving the original WSDL

2006-08-08 Thread Alistair Young
apparently this in services.xml is meant to work but it doesn't: parameter name=useOriginalwsdltrue/parameter the generated wsdl is lacking all original types Could someone guide me to a solution please? service descriptionTest service/description parameter name=ServiceClass

Re: [AXIS2] BEA 8.1 sp4

2006-08-08 Thread robert lazarski
I believe the stax-api jar from the axis2 distro should be where you are getting this class. Make sure that its in your WEB-INF/lib and then your prefer-web-inf-classes tag should pick it up. HTH, Robert http://www.braziloutsource.com/ On 8/8/06, Jim Mattson [EMAIL PROTECTED] wrote: I've tried

Re: Cannot work with Axis2 - URGENT - A quick list of lessons learnt

2006-08-08 Thread Martin Gainty
This is a great step by step approach that I am sure every developer will require The concise readme.txt as it now stands has something like 'include these jars'I vote toinclude thisstep by step approach into the readme.txt for all future versions of AXIS 2_1 Many Thanks for your input!

Re: Cannot work with Axis2 - URGENT - A quick list of lessons learnt

2006-08-08 Thread Davanum Srinivas
You are welcome! -- dims On 8/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Preface I have a simple application which does nothing more than Insert, Update, Delete, Select from the Oracle database. Its a J2EE application where Front End : Struts 1.2, JSP etc. Middle Layer - Business

Re: [AXIS2] BEA 8.1 sp4

2006-08-08 Thread Jim Mattson
Thanks for the continued help. I have been unsuccessful in getting the correct Qname from picking up. Any other ideas?Here is my weblogic.xml in the web-inf folder:!DOCTYPE weblogic-web-app PUBLIC -//BEA Systems, Inc.//DTD Web Application 8.1//EN

Re: [AXIS2] BEA 8.1 sp4

2006-08-08 Thread Davanum Srinivas
Did you try any of these? http://www.google.com/search?hl=enq=qname+conflict+weblogicbtnG=Google+Search -- dims On 8/8/06, Jim Mattson [EMAIL PROTECTED] wrote: Thanks for the continued help. I have been unsuccessful in getting the correct Qname from picking up. Any other ideas? Here is my

[Axis 1.4] Optionally Sending Null Values from a client

2006-08-08 Thread Ben Reif
It appears that the Axis WSDLToJava utility interperates the minOccurs and the nillable=true attribute in the WSDL as follows: If minOccurs=0 then the generated Stub class will never send a null value for a field. If minOccurs=1 then the generated Stub classalways send a null value for a field.

Re: [AXIS2] BEA 8.1 sp4

2006-08-08 Thread robert lazarski
Is that syntax right? You could try this: weblogic-web-app container-descriptor prefer-web-inf-classestrue/prefer-web-inf-classes /container-descriptor /weblogic-web-app I'd imagine you'd have gotten an error though. Have you looked at your logs and verified that weblogic.xml is correct and

[Axis 1.4] Using javax.xml.rpc.handler.Handler with Axis

2006-08-08 Thread Ben Reif
I have a custom Handler that implements javax.xml.rpc.handler.Handler. Ihave deployed it at the global level in the server-config.wsdd and defined it in the requestFlow and responseFlow of the http transport in the server-config.wsdd. At runtime I get a ClassCastException because

SOAP attachments

2006-08-08 Thread Syam Prasad
Hi, Can anybody tell me (or redirect me to any pointers) in detail how to process (I mean get all attachments and the content in it) the attachments in SOAP request? Thanks in advance. Syam

Re: [Axis 1.4] Using javax.xml.rpc.handler.Handler with Axis

2006-08-08 Thread robert lazarski
This is what used to work for me around the 1.2 time frame : deployment name=whitezone xmlns=http://xml.apache.org/axis/wsdd/; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; !-- XML Signature handler -- handler name=ServiceHandler

Axis2 v1.0: AxisSOAPServlet null pointer exception

2006-08-08 Thread D P
Hello all:Axis 2, v1.0I plan to only use SOAP for my web services ( as opposed to REST) and was going to use the AxisSOAPServlet class in my web.xml file like so: servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class

Re: [AXIS2] Preserving the original WSDL

2006-08-08 Thread Alistair Young
this is painful! I found this site which explains it more: http://www.developer.com/open/article.php/10930_3589126_2 and now I have the types element appearing in something that resembles the original wsdl. However, it's a real mess. The types has one child: xs:schema

Re: [Axis 1.4] Using javax.xml.rpc.handler.Handler with Axis

2006-08-08 Thread Ben Reif
Robert, Thanks for the reply. Yeah, it doesn't look like that will work anymore because the Axis 1.4 code is casting to, and expecting, the class to be an instance of org.apache.axis.Handler. In the WSDD* classes I did find that there is an element that you can specify in the service tag called

Re: SOAP attachments

2006-08-08 Thread Yura Tkachenko
Hi, Syam please have a look at http://www.mail-archive.com/axis-user@xml.apache.org/msg08732/Fear_of_Attachments.pdf this pdf will explain how toprocess attachments. 2006/8/8, Syam Prasad [EMAIL PROTECTED]: Hi, Can anybody tell me (or redirect me to any pointers) in detail how to process (I

[AXIS2] sec.properties location

2006-08-08 Thread Jones, Alan R
It appears my InflowSecurity Handler is not seeing the sec.properties file (see snippet of exception below)...My .aar file is as follows: testwebservice/TestService.class testwebservice/PWCallbackHandler.class META-INF/services.xml META-INF/services.wsdl META-INF/Manifest.mf sec.properties

Struggling with Axis2

2006-08-08 Thread Kumar, Amit Z \(Compliance Tech\)
Title: Struggling with Axis2 I wanted to create a simple web service(RPC like) which can accept few params(String) and can return object(bean like or at least a string) like below: class MyWebService() { public String search( String a, String b) { return x; } }

RE: [AXIS2] sec.properties location

2006-08-08 Thread Jones, Alan R
Never mind... Was simply a typo in the services.xml file: had signaturepropFile instead of signaturePropFile (capitalP). Dumb mistake. Thanks, Alan J Alan R Jones Boeing SIS Mission Systems Denver Engineering Center (BDEC) -Original

[Axis2] Client Digest Authentication

2006-08-08 Thread Vinh Tran
I am able to get basic authentication working with Axis2 but would now like to switch to digest. With BASIC I do the following: HttpTransportPorperties.BasicAuthentication basicAuth = new HttpBasicTransportProperties().new BasicAuthentication(); basicAuth.setUsername(_username);

Re: [Axis2] Client Digest Authentication

2006-08-08 Thread Martin Gainty
Tran- SECURITY_PROVIDER is an attributeof MessageContext Here is an example for you http://rifers.org:8088/viewrep/~raw,r=1175/rifers/rife/trunk/src/framework/com/uwyn/rife/engine/elements/SoapAxis.java Best Regards Martin --

Re: [axis2] Getting MessageContext or ServiceGroupContext in CallbackHandler

2006-08-08 Thread Ruchith Fernando
Hi Dave, You cannot access any of the contexts from a CallbackHandler. What sort of information are you trying to access within the CallbackHandler? Thanks, Ruchith On 8/8/06, Dave Cowing [EMAIL PROTECTED] wrote: How can I get access to the MessageContext or ServiceGroupContext in a