[Axis2] rampart/security question

2007-03-07 Thread George Stanchev
Hi, I am new to axis2/c and I had a use cases that wanted to see if it is supported. Clients of my services are expected to pass a SAML assertion in wsse header. The header is or it is not tagged with specific actor. The SAML asserttion needs to be checked for: * integrity (using its signature)

Re: [Axis2] rampart/security question

2007-03-07 Thread Kaushalye Kapuruge
Hi George, See my comments below. Cheers, Kau George Stanchev wrote: Hi, I am new to axis2/c and I had a use cases that wanted to see if it is supported. Clients of my services are expected to pass a SAML assertion in wsse header. The header is or it is not tagged with specific actor. The

Re: XML equivalent of object in client classes

2007-03-07 Thread Amila Suriarachchi
do something like this, OMElement omElement = schedule.getOMElement(Schedule.MY_QNAME, OMAbstractFactory.getOMFactory()); try { String omElementString = omElement.toStringWithConsume(); System.out.println(OM Element == + omElementString); -- Amila Suriarachchi,

[AXIS2] Axis2 like a proxy

2007-03-07 Thread Lorenzo
Hi, i have this problem: i have a client and a server that exchange soap messages. i have to put one (or more) Axis2 proxies between those two nodes in a trasparent way for them. The only thing i can change in the client is the EPR to the first proxy. So my proxy should do this: -receive the

[MTOM] InstantiationException

2007-03-07 Thread Julien HENRY
Hi, I'm a newbie with Webservices, and I have to write a simple one that provide an image to the client. I want to use MTOM, and I tried to use mtom sample in Axis 2.1.1 distribution. I get the following exception when trying to retrieve the image: org.apache.axis2.AxisFault:

Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for wsdl:portType

2007-03-07 Thread Amila Suriarachchi
On 3/7/07, Jess Fisher [EMAIL PROTECTED] wrote: I'm trying to understand what's happening here, so bear with me... Using Axis 1.4, I run the WSDL2Java like this: java org.apache.axis.wsdl.WSDL2Java -s -o C:\temp\generated_source C:\temp\wsrp_service.wsdl This created all the java interfaces

Re: [AXIS2] Axis2 like a proxy

2007-03-07 Thread Michele Mazzucco
Lorenzo, you could use tools like Synapse [1] or build your own. In the latter case I think the use of WS-addressing (which is included in Axis2) would simplify your job. HTH, Michele [1] http://ws.apache.org/synapse/ On Wed, 2007-03-07 at 09:37 +0100, Lorenzo wrote: Hi, i have this

looking for info on client-config.wsdd

2007-03-07 Thread teknokrat
Is there a dtd or a schema for this file. where can i find out all the options allowed? is there anything in the source code? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [MTOM] InstantiationException

2007-03-07 Thread Thilina Gunarathne
Hi, What is the data binding mechanism you are using.. (ADB or XMLBeans or Jibx ...). The binary data which you sent has came as base64 binary.. In other words by value.. not as an attachment... Please post your WSDL.. Thanks, Thilina On 3/7/07, Julien HENRY [EMAIL PROTECTED] wrote: Hi, I'm

Re: A matter of understanding

2007-03-07 Thread Thilina Gunarathne
But when I'm using PHP (5.2) the service gets a decoded String (in effect non UTF-8) so the XML parser claims an invalid UTF-8 byte sequence since the encoding for the parsing process is still specified in the document. Can you please explain the above part a bit.. Which XML parser (Axis2 or

Re: [Axis2] Problem running wsdl2java on wsdl with multiple imports

2007-03-07 Thread Anne Thomas Manes
Given that the schema specified elementFormDefault=qualified, the schema is invalid. You cannot define two elements in a single namespace with the same local name. The proper fix to Axis2 would be to generate an error that flags the problem. The proper fix to the schema is to create a global

Re: Axis2: How to use arbitrary Java classes as method parameters

2007-03-07 Thread Thilina Gunarathne
You can have your own java class as a parameter when deploying plain old java file as web service. This guide [1] will help you... There's also a pojo sample with Axis2.. Thilina [1] http://ws.apache.org/axis2/1_1_1/pojoguide.html On 3/6/07, Ines Dannehl [EMAIL PROTECTED] wrote: Hi all,

Access to AxisEngine

2007-03-07 Thread Lukas O.
Hello. I want to get the corect instance of AxisEngine when starting up jetty. I am doing this like this (only important calls included): private HttpServer server; ... // Create the server server = new HttpServer(); // Create a port listener

recursive types

2007-03-07 Thread Verhovsky, Oleg
Hi all I have recursive type that declared below s:complexType name=Node s:sequence s:element minOccurs=0 maxOccurs=2 name=nextNode type=tns:Node / /s:sequence /s:complexType During wsdl2java I have exception that comes from updateUndefined

Problem with WSS4j - repeated elements

2007-03-07 Thread Anna Krajewska
Hello, I have a problem using WSS4j. I've been using it for a long time and everything was fine until I started to use one org.apache.axis.client.Call object for many web service invocations. Since then I have started to get errors like: actions number mismatch. When I look on the SOAP

[AXIS2] AXISCLASSPATH

2007-03-07 Thread [EMAIL PROTECTED]
Hi, I have to create my AXISCLASSPATH or AXIS2CLASSPATH (I don't know how to write..)environment variable. 1)What i have to put as his value? webinf/lib dipath of AXIS2 or all the singles path of .jar files of my AXIS2? 2) How i can launch tcpmon on AXIS2? Many Thanks

[Axis 1.4.x] How to handle java.util.Date

2007-03-07 Thread Joshua White
Hello, I am having trouble with serializing/deserializing dates. I am having axis serialiaze a simple java bean that contains a java.util.Date. When the wsdl is generated, it appears as a xsd:dateTime. As you know, when you generate the client, this appears as a java.util.Calendar on the

Can the address location be relative (meaning exclude the host name)?

2007-03-07 Thread Joshua White
When generating the wsdl file, I specify the location that the web service will be deployed to. For example, when developing, I may specify location= http://myserver:8080/axis/services/AddressBook. This appears in the WSDL as: service name=AddressBookService port name=AddressBook

Re: [AXIS2] AXISCLASSPATH

2007-03-07 Thread Antonio Borrelli
Hi tony, i have already done the configuration of the environment for tcpMon and i have met not few problems. I have resolved the problem in this way: 1) Locate in your filesystem where you have extracted the axis2, i.e. let's it as C:\AXIS 1) Set an environment variable AXIS_LIB with the path

[AXIS2] Deploy wsdl without using RPCMessageReceiver

2007-03-07 Thread Jose Benjamin Perez Soto
Hi, how deploy wsdl without using RPCMessageReceiver?, I've this problem: package org.test; import org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver; public class MyServiceMessageReceiverInOut extends AbstractInOutSyncMessageReceiver { } this inserted it in services.xml

static final java attributes

2007-03-07 Thread Jorge Fernandez
Hi, I would appreciate a lot if someone can give a hint on this: I'm building a web service with axis2 1.1.1 and I have some java classes from which I generate a wsdl but I have some static or final fields that I use like operation codes and I need the client could know those specific values

RE: [Axis 1.4.x] How to handle java.util.Date

2007-03-07 Thread Rasile, Rob
Couple of options here... First, if you use jibx data-binding you can explicitly define your mappings - so you can directly go from xsd:dateTime to java types. You can even go so far as to write your own custome serializer/deserializer. Second, try using a

RE: Installation Problems

2007-03-07 Thread Callner, David A.
Tomcat 5.0.28 with java1.5.0 It's the latest and greatest. I really don't think the problem is Tomcat. Again all I've done is deploy the axis2.war file in the webapps directory and when I try to open the localhost:8080/axis2 I get the exception I've stated below. -Original

Modifying Axis2 HTTP response codes in the OutFaultFlow

2007-03-07 Thread Rasile, Rob
I've written a custom handler and placed it in the OutFaultFlow of axis2. Basically I intercept axis2 faults and replace them with a customized error message. However, axis2 still sends back an HTTP 500 (Internal Server Error) code to the client in these cases - which is causing some issues with

Re: [Axis 1.4.x] How to handle java.util.Date

2007-03-07 Thread Joshua White
Rob, Thanks for the reply. Is jibx data-binding a Axis 2 feature? Joshua On 3/7/07, Rasile, Rob [EMAIL PROTECTED] wrote: Couple of options here… First, if you use jibx data-binding you can explicitly define your mappings – so you can directly go from xsd:dateTime to java types. You

Re: [AXIS2] Deploy wsdl without using RPCMessageReceiver

2007-03-07 Thread Anne Thomas Manes
You need to drop the WSDL into META-INF. Anne On 3/7/07, Jose Benjamin Perez Soto [EMAIL PROTECTED] wrote: Hi, how deploy wsdl without using RPCMessageReceiver?, I've this problem: package org.test; import org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver; public class

Re: Axis2 Client performance issue - AxisConfiguration Caching

2007-03-07 Thread sean curtis
Ok, I'll do that for us ;) If this isnt added to the next release, hopefully everyone who uses axis2 as a client reads this and gets the benefit of OOM better performance and elminating a pervasive memory leak problem. - Original Message From: Davanum Srinivas [EMAIL PROTECTED] To:

RE: Installation Problems

2007-03-07 Thread Michele Mazzucco
David, are you using a nightly build (sometimes they can have problems)? If so, please try with the last one or with the official release (1.1.1). Regards, Michele p.s By the way, Tomcat 5.0.28 is not the latest. The last version for the 5 series is 5.5.20

RE: [Axis 1.4.x] How to handle java.util.Date

2007-03-07 Thread Rasile, Rob
Hey Joshua. JibX is in fact included in Axis2... but in itself is a standalone xml data binding API. Not sure about it's support in 1.4. If you do want more info on it you can read about it here: http://ws.apache.org/axis2/1_1_1/userguide-creatingclients.html#createcl ients under Choosing a

RE: Installation Problems

2007-03-07 Thread Callner, David A.
No nightly builds. Just the official release 1.1.1 -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 9:42 AM To: axis-user@ws.apache.org Subject: RE: Installation Problems David, are you using a nightly build (sometimes they can have

Re: Axis2 Client performance issue - AxisConfiguration Caching

2007-03-07 Thread Michele Mazzucco
Sean, how could the factory cache a previously created instance since you can use different parameters for different calls? Michele On Wed, 2007-03-07 at 06:36 -0800, sean curtis wrote: Ok, I'll do that for us ;) If this isnt added to the next release, hopefully everyone who uses axis2 as a

RE: Services.xml

2007-03-07 Thread Punnoose, Roshan
Is that all there is? I found another one the other day called outputActionMapping. That is why I was wondering if there were more? Roshan Punnoose Phone: 301-497-6039 -Original Message- From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 11:37 PM To:

AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (500)Internal Server Error

2007-03-07 Thread Thiraviyakumar MuthukumarSabapathy
Hi, I am getting the following error, while receiving data from the server (AXIS 1.2 Apache Tomcat/4.1.31). From the error I understand that it is a problem in server side. Please let me know, how to resolve this? Thanks, M.S.Thiraviyakumar AxisFault faultCode:

Re: Axis2 Client performance issue - AxisConfiguration Caching

2007-03-07 Thread sean curtis
without knowing all entailed ( and thus the reason I was asking why axis2 didnt attempt to do this) I'd guess solving that problem with something like: ConfigurationContext config = ConfigurationContextFactory.getCachedConfiguration( String differentParameter ) would be a problem worth

wsdl2java doesnt generate wrappers for nillable=true

2007-03-07 Thread Woelke, Milan
Hi, we have a problem with our jboss based jsr-181 webservices. We deploy them and a fine wsdl gets generated. It contains parameters with nillable=true as it is expected. But when generating client-side stubs for this wsdl using wsdl2java it results in parameters of simple data types instead

Re: Axis2 Client performance issue - AxisConfiguration Caching

2007-03-07 Thread aravind1001
In our case, both the parameters don't change at all so I made it into a class variable. I am not sure whether it is multi-thread safe but should be ok since it is a read-only object tree. If the parameters do change just use the tuple (path, axis2xml) as key and ConfigurationContext as the key

AW: wsdl2java doesnt generate wrappers for nillable=true

2007-03-07 Thread Woelke, Milan
Oh.. maybe I should attach something... Hi, we have a problem with our jboss based jsr-181 webservices. We deploy them and a fine wsdl gets generated. It contains parameters with nillable=true as it is expected. But when generating client-side stubs for this wsdl using wsdl2java it results

Re: [Axis2]Problem installing eclipse plugins for Code Gen Service Archiver

2007-03-07 Thread lee hanu
Can someone help me out with issue please. I installed the latest Axis2 plugins and now I am not able to start the plugin from eclipse. I earlier versions of the plugins worked fine for me. I had this problem after downlaoding and installing the latest Axis2 eclipse plugins. Thanks. lee hanu

Axis2 and tomcat 5.5

2007-03-07 Thread Michael Bell
Hi, I try to install axis2 on tomcat 5.5 (on a Debian box). I use JRE 1.5.0.11 and tomcat 5.5.20. I noticed on the web page that sometimes it is necessary to copy the stax-api into the endorsed directory of tomcat. I did this too. Nevertheless I still get an error if I copy axis2.war to my

Re: setParam0(OMElement param) or xs:any

2007-03-07 Thread Kay*
I tried to use BeanUtil's method, but I had an error: Exception in thread main java.lang.IllegalArgumentException: null rcl at org.codehaus.jam.internal.reflect.ReflectClassBuilder.init( ReflectClassBuilder.java:47) at org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder(

Re: [AXIS2] AXISCLASSPATH

2007-03-07 Thread [EMAIL PROTECTED]
Grazie per il tuo interesse Antonio sono sicuro che la tua soluzione è corretta ma effettuando l'ultimo passo ho avuto questa eccezione Exception in thread main java.lang.NoClassDefFoundError: c:\Programmi\Axis2-1/1/1\lib\activation-LICENSE/txt E' un file presente nella cartella lib... Che

Re: [Axis2] Problem installing eclipse plugins for Code Gen Service Archive

2007-03-07 Thread lee hanu
I tried that and also tried rebooting my machine but I get the same error. Here is the stacktrace from the Eclipse log !ENTRY org.eclipse.osgi 4 0 2007-03-07 12:59:36.628 !MESSAGE An error occurred while automatically activating bundle Axis2_Codegen_Wizard (399). !STACK 0

How do I configure the number of connection in the pool using xml

2007-03-07 Thread Narendran Sivakumar
Hi How do I configure the number of connection in the pool using xml. We are using axis 1.4 and commons-httpclient-3.0.1Is there any way we can do it using the client-config.wsdd file. We do not want to do any modification in the code for this. Is it possible to set socket timeout also in the

Re: [AXIS2] Deploy wsdl without using RPCMessageReceiver

2007-03-07 Thread Jose Benjamin Perez Soto
Hi, the only thing which I have in my META-INF is my services.xml WEB-INF + --- services + --- HandlingException + -- META-INF + --- services.xml I do not have any wsdl On

Axis2 question about async. invocation of web services

2007-03-07 Thread Gul Onural
I have a question about the async. Invocation of the web service interfaces with Axis2. My understanding from the existing documentation (http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-usin g-apache-axis2.html), Axis2 definition of the async. invocation refers to the pattern

Re: [AXIS2] Deploy wsdl without using RPCMessageReceiver

2007-03-07 Thread Anne Thomas Manes
Exactly. If you don't use the RPC receiver, then you must supply the WSDL by dropping it in the META-INF. On 3/7/07, Jose Benjamin Perez Soto [EMAIL PROTECTED] wrote: Hi, the only thing which I have in my META-INF is my services.xml WEB-INF + --- services + ---

Re: [Axis2] Problem installing eclipse plugins for Code Gen Service Archive

2007-03-07 Thread lee hanu
I tried reverting back to the old versions of Eclipse plugins(Axis_Service_Archiver_1.0.0 Axis2_Codegen_Wizard_1.2.0) and it works fine. But when I try to use the latest versions of the eclipse plugins(Axis2_Codegen_Wizard_1.2.1 Axis_Service_Archiver_1.1.1) I am not able to start the plugins. I

Re: Axis2 question about async. invocation of web services

2007-03-07 Thread Paul Fremantle
Gul There are two aspects. The client model and the transport model. The client model depends on whether you call the NonBlocking APIs (or use the async stubs). The transport model depends on whether you call the method: serviceClient().getOptions().setUseSeparateListener(true); or

RE: Axis2 question about async. invocation of web services

2007-03-07 Thread Gul Onural
Great help. Thanks Paul. I think I understand the two ways of achieving asynchrony. I guess the ws-addressing-transport-level-asynchrony is closer to what I want to achieve. I was wondering why you think having both is the best option, i.e. why would you want both ? Thanks for the reply, again,

Re: [Axis2] Problem installing eclipse plugins for Code Gen Service Archiv

2007-03-07 Thread Ajith Ranabahu
Hi, Its ok to use the stuff but its not ok to take it for granted. Care has been taken to make all the components work perfectly [ there are extensive testing phases before a release ] but there can be glitches here and there. As for your case It could be some configuration issue (or may be the

Re: Axis2 question about async. invocation of web services

2007-03-07 Thread Paul Fremantle
Gul You don't always want transport level asynchrony. After all it causes problems with firewalls, NAT, etc. However, if you are going to be asynchronous, then it makes sense to have callbacks in the code as well as on the wire. Otherwise the blocking client can time out before the response gets

Re: [Axis2] Problem installing eclipse plugins for Code Gen Service Archiv

2007-03-07 Thread lee hanu
Sorry for my rude response. It was really frustrating when a earlier version of the plugin works fine but the upgraded latest version of the plugin that is available from the Axis2 website fails to even start. I created a JIRA anyway. Thanks. Ajith Ranabahu wrote: Hi, Its ok to use the

Re: [Axis2] Problem running wsdl2java on wsdl with multiple imports

2007-03-07 Thread footh
Thanks both for your responses. I will inform the vendor that the schemas need to be corrected. --- Anne Thomas Manes [EMAIL PROTECTED] wrote: Given that the schema specified elementFormDefault=qualified, the schema is invalid. You cannot define two elements in a single namespace with the

AxisFault: please help!!

2007-03-07 Thread jpsabadini
Hi all, I´m getting a org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement login(OMElement e) when I´m executing a test client that consumes a WS. The client is: package com.vmon.ws.mobile; import java.rmi.RemoteException; import

Writing POJO Web Service with MTOM support

2007-03-07 Thread Julien HENRY
Hi all, Is it possible to write a POJO Web Service that return an image as an Attachment (with MTOM because I need WS-Security). Or should I manually write the WSDL file and generate the Web Service stubs? Thanks for your reply Julien

Re: [Axis2] Problem running wsdl2java on wsdl with multiple imports

2007-03-07 Thread Ajith Ranabahu
Hi, Please correct me if I'm wrong here. AFAIU while its wrong to have the same name in two top level elements when the schema elementFormDefault is qualified, elements declared inside the complex type can have the same name if they are enclosed in different complex types. In other words if the

Re: [Axis2] Problem running wsdl2java on wsdl with multiple imports

2007-03-07 Thread Dennis Sosnoski
Your statement about the names is incorrect, Anne. Schema doesn't allow the same name to be used for different global definitions, but you're fine reusing names for local elements in different complexTypes. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting

Malformed WSDL when generating EchoAttachmentService with ?wsdl

2007-03-07 Thread Patrick Kent
Did anyone find a solution for this problem? I am seeing exactly the same thing with the Axis 1.4 EchoAttachment sample, using Tomcat 5.5.17. Changing the namespace as per this post (http://marc.theaimsgroup.com/?l=axis-user http://marc.theaimsgroup.com/?l=axis-userm=114964405009333w=2

[axis2] Lib cannot find classes in aar

2007-03-07 Thread Grimshaw, Jeffrey
I am attempting to use axis2 in conjunction with Jboss Rules to write a service which executes some business rules. I debated about whether to send this request to the rules list first, but I really think it's an axis2 problem. The service deploys just fine and wsdl is generated as it should be.

RE: XML equivalent of object in client classes

2007-03-07 Thread Sampige, Srinivas
Amila Do you know how to do this with the AXIS1 API?We have an existing system written on AXIS1 and the team is not yet ready to upgrade to AXIS2 Regards Srinivas From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007

Re: MTOM Attachments and PushbackInputStream

2007-03-07 Thread Thilina Gunarathne
Hi Derek, My changes are finally in place.. I need to do a profiling to see whether they have any good impact on performance... If possible please drop the latest AXIOM binaries (from the nightly build or a manual build from Axiom svn head) in to your test scenerio and see whether if there's an

RE: [axis2] Lib cannot find classes in aar

2007-03-07 Thread Grimshaw, Jeffrey
UPDATE! If I package up my application classes in a jar file and place them in webapps/axis-2/WEB-INF/lib it works fine. However, this is less than ideal for a production deployment. Any suggestions about what I can do to package these files in the aar will be very much appreciated.

Re: AxisFault: please help!!

2007-03-07 Thread Thilina Gunarathne
Are you also in controll of the service too... If so if you don't mind please post the services.xml and the service class.. Also please check the method names of your service class... Thanks, Thilina On 3/8/07, jpsabadini [EMAIL PROTECTED] wrote: Hi all, I´m getting a

Problem to call web service through WSDL2Java

2007-03-07 Thread Sachin Sisodia
Hi All, I am gettig the error message while trying to run the below code to call web service: *Code:* -- org.apache.axis.client.Call _call = createCall(); _call.setOperation(_operations[0]); _call.setUseSOAPAction(*true*);

Re: [AXIS2] AXISCLASSPATH

2007-03-07 Thread Glen Mazza
I can help you on the second issue--this tutorial[1] covers it on the first or second page. Googling Apache TCPMon wouldn't hurt either... Glen [1] http://www-128.ibm.com/developerworks/edu/ws-dw-ws-understand-web-services4.html Am Mittwoch, den 07.03.2007, 14:02 +0100 schrieb [EMAIL

Re: [AXIS2] AXISCLASSPATH

2007-03-07 Thread Thilina Gunarathne
If you need to run the tcpmon which comes bundled with Axis 1.x, you are better off just having the axis.jar in the classpath... java -classpath /media/sda1/Apache/axis.jar org.apache.axis.utils.tcpmon AFAIK the tcpmon in http://ws.apache.org/tcpmon does not need anything else.. You'll be able

how to get custom WSDL during runtime instead of generated WSDL in Axis 2

2007-03-07 Thread Krishnamoorthy J (HCL Financial Services)
Hi, What is the option similar to wsdlFile property of service-config.wsdd (Axis 1.4) in Axis 2? How to get the custom WSDL file displayed instead of Axis generated WSDL in Axis2 1.1.1? Thanks, Krishna DISCLAIMER:

Re: [Axis2] Problem running wsdl2java on wsdl with multiple imports

2007-03-07 Thread Amila Suriarachchi
On 3/8/07, Dennis Sosnoski [EMAIL PROTECTED] wrote: Your statement about the names is incorrect, Anne. Schema doesn't allow the same name to be used for different global definitions, but you're fine reusing names for local elements in different complexTypes. I am also not clear about this and

Do I need to extend any of classes from AXIS to return multiple values?

2007-03-07 Thread v4u2chat
Do I need to extend any of classes from AXIS to return multiple values? I'm exposing the following method as web service through AXIS to return multiple values. public ContactAddress testService() { ContactAddress cAddr = new

Re: Writing POJO Web Service with MTOM support

2007-03-07 Thread Thilina Gunarathne
Hi, There was an effort to support for DataHandler type variables in pojo's... Please try it with the latest snapshots, else you need to specify your variables as byte[] type.. I would strongly encourage you to manually write the WSDL If there is a possibility of doing so... Thanks, Thilina On