Re: Return an empty array

2008-04-08 Thread Tony Liu
The thing is that even I changed "minOccurs" to "minOccurs=1", which I suspect it means the corresponding element occuring at least once, but it didn't seem to work. Or, have I missed something? On 4/9/08, Anne Thomas Manes <[EMAIL PROTECTED]> wrote: > > If an element has been defined as minOccurs

AW: web service deployment options

2008-04-08 Thread Stadelmann Josef
What ever servlet engine it is JBoss or Tomcat or .. Axis2 is something for Tomcat or JBoss or so you deploy AXIS2.WAR to one of this servlet-engines Axis2 is a message processing engine doing all for you that you can

AW: WS Best Practice

2008-04-08 Thread Stadelmann Josef
You can drive it even further and not only look at it as a set of operations but real objects (instances of a classes with methods) This depends on the AXIS2/Java session scope used and it workes for me nicely in SCOPE=SOAPSESSION. If your class is not static (or sigelton) AXIS2 created me afte

Problem with user input validation in axis2.

2008-04-08 Thread nitin Raichura
Hi, I have developed a webservice in axis2.0 with ADB and JiBX technique. Now I don't know how to validate the user input. So please help me out with this issue if anybody has done validation with axis2. I tried putting validate.mar file in web-inf/modules directory of axis2 and changing the se

RE: web service deployment options

2008-04-08 Thread Vinh Nguyen (vinguye2)
Looks like you mentioned JBoss in your original email:) In JBoss, apps are temporarily unpacked and run from a location like to: \jboss\server\default\tmp\deploy\* If you place anything into this folder, it will be cleared upon the next restart. From: Vinh Ng

RE: web service deployment options

2008-04-08 Thread Vinh Nguyen (vinguye2)
Hi, Make sure your .aar is packaged inside the "original" Axis2 dir/war deployment. I'm not sure what type of app server you're using, but if your AAR is disappearing, then you're probably putting it inside some "runtime" deployment of Axis2 that the server recreates each time the server starts.

Problem with null or empty arrays?

2008-04-08 Thread Nate Roe
I am using Axis2 v1.3 and Rampart v1.3 on JBossAS v4.0.5 running on Java 1.6.0_03. When a service responds with a null or empty array, my client stub (built with "wsdl2java -uri Service.xml -p com.vegas.stub -u") creates an array with a single, null element. That is, a SOAP response like this:

RE: web service deployment options

2008-04-08 Thread Nate Roe
I don't know what I did differently, but this is not the case for me. When I was using AAR deployment, bouncing JBoss would never un-deploy my AARs. From: Dennis Sacks [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 4:45 PM To: axis-user@ws.apache.org Su

Re: web service deployment options

2008-04-08 Thread Dennis Sacks
Great info! Thanks for alerting me to that. Does anyone know however, if I do want to use the axis2 web application, is there a way to make a deployed service persist through an application server restart? Now, when I bounce JBoss, I must reload my webservice .aar file, as the service is no longe

RE: web service deployment options

2008-04-08 Thread Nate Roe
Dennis, Here's a KB article that I used to learn to deploy Axis2 as part of my web application under JBoss: http://wso2.org/library/90 Regards, Nate Roe From: Dennis Sacks [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 3:06 PM To: axis-user@ws.apache.o

web service deployment options

2008-04-08 Thread Dennis Sacks
Hi, I'm curious how people typically deploy axis2 web services? Does everyone install the axis2 web application and deploy using that? Are there other options? When I stop and restart JBoss (the app server I'm using), I have to upload my web service into the axis2 web application again. Is there

Re: Just a small client sample would really be great !

2008-04-08 Thread Jacques46
Thanks for still being here Alberto :-) Even though you provided fictitious data for the sample code, that fictitious data should be included in the resulting SOAP request, but it is not, and I can't figure out why (and am hoping you can point me in the right direction). Here's the SOAP request

Re: WS-I Basic profile error

2008-04-08 Thread Jack Sprat
That made the errors disappear. Thanks so much for the tip! Lawrence Mandel <[EMAIL PROTECTED]> wrote: I think you're seeing these errors because you haven't specified the name attribute on your binding input and output elements. For example, ... /> message="tns:avail

Re: Axis2, Rampart and SSL

2008-04-08 Thread Martin Gainty
Julio- verify manageTransportSession in axis2.xml true You can also check the value Programatically with Options from the ServiceClient as seen here.. ServiceClient sender = getClient("RequestCounter", "getRequestCount"); sender.getOptions().setManageSession(true); Mart

RE: how to deploy an axis client war in weblogic without running the axis admin client

2008-04-08 Thread Rajesh, Peter (CLAIMS, WIP)
Hi, Copy the webservice file for example, yourwebservice.aar file in the below folder and add an entry in the file services.list & restart the weblogic server. \bea\user_projects\domains\devdomain\applications\axis2\WEB-INF\services Regards, Peter Rajesh F

Re: how to deploy an axis client war in weblogic without running the axis admin client

2008-04-08 Thread Vikas Gujjar
Hi Ehlan, You need to make an entry for the service in WEB-INF\server-config.wsdd Thanks, Vikas On Tue, Apr 8, 2008 at 10:42 AM, <[EMAIL PROTECTED]> wrote: > Hi > I am very new to axis and web services, I apologize if my question is very > basic. > > > > I would like to have my axis service d

Re: Just a small client sample would really be great !

2008-04-08 Thread Alberto Patino
It's good you could fix your problem Now, garbage in garbage out... the values I set in the source code were ficticius, I don't know what values should be send to the web service On Tue, Apr 8, 2008 at 10:03 AM, Jacques46 <[EMAIL PROTECTED]> wrote: > > Turns out I was missing a couple of jars in

how to deploy an axis client war in weblogic without running the axis admin client

2008-04-08 Thread Ehlan.Siddiqi
Hi I am very new to axis and web services, I apologize if my question is very basic. I would like to have my axis service deployed to weblogic appserver automatically when the war/ear file is deployed. Without having to run the axis-admin script in my ant. Any help appreciated. Thanks

Axis2, Rampart and SSL

2008-04-08 Thread cdcienses
I am looking to access to a Web Service hosted by Axis2 (it is running under Weblogic) When I access using http it is all ok. But when I try to access using https I get "Transport error: 403 Error: Forbidden" I need authenticate the client with a certificate and the webservice is asking the clie

RE: xml:id does not want to work

2008-04-08 Thread McCullough, Ryan
Anne, Thank you for looking at my issue. I added that namespace (I tried both the and ) and it still does not generate the xml:id attribute in the objects. -Ryan -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 8:33 AM To: axis-user@ws

Re: WS-I Basic profile error

2008-04-08 Thread Lawrence Mandel
I think you're seeing these errors because you haven't specified the name attribute on your binding input and output elements. For example, ... ... ... http://ws.myco.com/imagecheck"; style="document" />

RPC/encoded WSDL support

2008-04-08 Thread Detelin Yordanov
Hello guys, Does Axis2 1.4 support rpc/encoded WSDLs? I am able to deploy a service aar with a custom rpc/encoded WSDL but I could not invoke it successfully, so I decided to just ask you whether this is officially supported. I noticed that Axis2 is converting the rpc operations to doc/literal wr

Re: Just a small client sample would really be great !

2008-04-08 Thread Jacques46
Turns out I was missing a couple of jars in the classpath. I'm now at the point where I know that I'm actually sending requests to the Betdaq server and receiving responses... The exception I'm getting now is: org.apache.axis2.databinding.ADBException: Unexpected subelement ListTopLevelEventsRe

Re: WS-I Basic profile error

2008-04-08 Thread T. Allen
Below is the output. Warning: This web reference does not conform to WS-I Basic Profile v1.1. R2718: A wsdl:binding in a DESCRIPTION MUST have the same set of wsdl:operations as the wsdl:portType to which it refers. - Operation 'imageCheck' on portType 'imageViewPortType' from namespace 'http:/

Packaging structure for axis web service

2008-04-08 Thread Tikayatray, Lokajit
Hi All, I have a doubt regarding the packaging structure of the classes used for a service in Axis. I always get some sort of problem (depending on the data binding I use) when I have the following packaging structure. Suppose interface A is exposed as the service. Class 'B' is the class object t

Re: WS-I Basic profile error

2008-04-08 Thread Anne Thomas Manes
Please provide the specific error(s). Anne On Mon, Apr 7, 2008 at 1:17 PM, Jack Sprat <[EMAIL PROTECTED]> wrote: > I have a WSDL that passes WS-I basic profile validation when run from the > latest version of soapUI. I have a partner using .Net to consume the > service that gets an error when tr

Re: xml:id does not want to work

2008-04-08 Thread Anne Thomas Manes
You need to also declare the "xml" namespace prefix: xmlns:xml="http://www.w3.org/XML/1998/namespace"; Anne On Mon, Apr 7, 2008 at 1:44 PM, McCullough, Ryan <[EMAIL PROTECTED]> wrote: > > > > > In my wsdl, I am importing an xsd schema file. That xsd file has an import: > > > > >

Re: Return an empty array

2008-04-08 Thread Anne Thomas Manes
If an element has been defined as minOccurs="0", and you have no occurrences, then there should be no elements in the message. Is that what you mean by "drops the array"? If you define an element to wrap the array, then that element should still be there, but Axis2 typically doesn't define an eleme

Re: WS Best Practice

2008-04-08 Thread Anne Thomas Manes
Perhaps your senior architect is confusing "operation" with "interface". WSDL 2.0 limits a service (i.e., the thing described by the WSDL) to a single interface. An interface can expose multiple operations, though. The WSDL 2.0 "interface" is equivalent to a WSDL 1.1 "portType". I disagree with the

Re: AW: SOAP with JMS and JBoss

2008-04-08 Thread Upul Godage
Hi, Could you go through all the destinations in JBoss and see where Axis2 service is listening. If there are no errors in the Axis2 console, it should be listening in somewhere :-). Isolate the service and the JBoss. Don't start anything else. Go to http://localhost:8080/jmx-console/. Go to jboss

Re: Soap with attachment with Sandesha2 in Axis2

2008-04-08 Thread Yogesh . Dhake
Hi All Sorry confusing title earlier . My Query is regarding Sandesha2 usage I am already have running implementation of WS generated from WSDL. and Client use OperationClient instead of ServiceClient as I need to send Soap with attachment messages. Now I am trying to add reliability for my

AW: AW: SOAP with JMS and JBoss

2008-04-08 Thread Ines Dannehl
Hi Upul, the queue seems to be correct. There are also messages in. But nobody listens to the queue. I found a bug report for Axis2 version 1.1.1 http://issues.apache.org/jira/browse/AXIS2-1488 Therefore I tried the patch given (for AxisServlet.java). Now I get the following error message in t

AXIS2 Generated WSDL not correct

2008-04-08 Thread Glen Verran
Hi folks, I am very new to AXIS and web services and since I find it extremely difficult to find a solution via Google, I am hoping that somebody can answer my very simple question. I am using Axis2 1.3, Tomcat 5.5 and Java 6_04. I created a POJO with one method. The method's parameter acc

is there a compatibility issue between axis2 1.3 and tomcat 4.1

2008-04-08 Thread sandeep_khurana
i am trying to launch webservice in tomcat 4.1 and placed my jars in web-inf/lib folder but it seems that it is unable to read the jars and it is still searching the required class files from the web-inf/classes folder. It says AccessControlException: access denied to the classes directory. Is the

RE: WS Best Practice

2008-04-08 Thread Hoda, Nadeem [USA]
Thanks Paul. I agree with you totally, and I just wanted to confirm my suspicion. Thanks, Nadeem -Original Message- From: Paul Fremantle [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 12:21 PM To: axis-user@ws.apache.org Subject: Re: WS Best Practice Nadeem I'm surprised

RE: WS Best Practice

2008-04-08 Thread Hoda, Nadeem [USA]
Thanks Paul. I agree with you totally, and I just wanted to confirm. I was also surprised when I heard this from a senior architect. Thanks, Nadeem -Original Message- From: Paul Fremantle [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 12:21 PM To: axis-user@ws.apache.org S

Re: WS Best Practice

2008-04-08 Thread Paul Fremantle
Nadeem I'm surprised you've been told that. I don't believe in that philosophy. I think a service should group a set of related operations. In general, the services I've seen that have one operation are usually of the form: submit(xsd:Any) The problem with this model is that it reverts to the mo

RE: passing Map object and return Map object

2008-04-08 Thread Hoda, Nadeem [USA]
Henry, Try using basic objects (strictly-typed POJOs) and object arrays, and stay away from Java-specific types and generalized collection types. For example, you could use an array of: public class MyHashEntry { String key; MyObject value; ... } Also, generalized coll

Re: Axis2 1.3 - ENABLE_MTOM

2008-04-08 Thread Gabriel Landais
Gabriel Landais a écrit : I'll try that way, many thanks. Just as a notice, I use javassist to generate POJO proxies to meta services, it works great! It works, thanks. -- Gabriel <[EMAIL PROTECTED]> http://www.codelutin.com tel : 02 40 50 29 28 / fax : 09 59 92 29 28 -

Re: Axis2 1.3 - ENABLE_MTOM

2008-04-08 Thread Gabriel Landais
Thilina Gunarathne a écrit : Hi, (org/apache/axis2/deployment/axis2_default.xml). In this file the "enableMTOM" is set to false, therefore the server does not MTOM-ize the response. This is the engine-wide configuration.. Actually it's possible to enable/disable MTOM/SwA per operation

WS Best Practice

2008-04-08 Thread Hoda, Nadeem [USA]
I have recently heard that one operation (method/function) per service (WSDL) is a best practice for SOA/web services. Can anyone corroborate this? I can see it being cleaner at the WSDL level, but as you expand your service offerings it will be a maintenance/client headache with dozens of W