Re: [Axis2] Rolling my own services.xml - how to define the in and out message so it appears in the WSDL.

2006-01-24 Thread Deepal Jayasinghe
the services.xml will look like below; This is my service http://www.w3.org/2004/08/wsdl/in-out"; class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> Example btw. must CustomBean implemente

Re: [Axis2] Rolling my own services.xml - how to define the in and out message so it appears in the WSDL.

2006-01-24 Thread Deepal Jayasinghe
pls see my comment below; Thanks, Deepal ~Future is Open~ - Original Message - From: "Peter Ludwig" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 25, 2006 12:53 PM Subject: Re: [Axis2] Rolling my own services.xml - ho

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Chuck Williams
Ajith, thanks again!  Very nice of you to not embarass me on the list, although I managed to do that myself pretty well.  :-) For the benefit of others using 0.94, the corrected patch is attached to this message.  I also updated the bean schema for completeness, although it appears it is mis

Re: Request for new list

2006-01-24 Thread Jim Azeltine
Thanks for backing me up Anne! 8) You are one of the most valuable contributors on this list, and I really respect your opinion. I hope others do as well, but it does not seem like the community is ready for a second list.We'll just have to wait and see...   JimAnne Thomas Manes <[EMAIL PROTECTE

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Ajith Ranabahu
Well Actualy when I went through the patch I figured out the mistake:) It's already corrected :)On 1/25/06, Chuck Williams < [EMAIL PROTECTED]> wrote: Thanks Ajith!  Unfortunately, I need to send you a revised version.  There is a stupid mistake in my xsl that broke the other types!  I ha

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Chuck Williams
Hi Jeff, I guess I shoudln't be too surprised that you are on this list, but you did catch me off guard!  Hope you are well. You are right of course, but it turns out the patch actually does what you say, more or less, due to the way Axis2 works (at least as the code appears to me).  It treat

Re: [Axis2] Rolling my own services.xml - how to define the in and out message so it appears in the WSDL.

2006-01-24 Thread SOA Work
I agree. I didn't find good samples too. All samples in the userguide use the OMElements things. Could someone give me a services.xml what a class like this must look like in services.xml public class Example { public CustomBean getCustomBean(String name) { ... }

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Chuck Williams
Thanks Ajith!  Unfortunately, I need to send you a revised version.  There is a stupid mistake in my xsl that broke the other types!  I had only verified that the code worked, not yet verified that the rest of the generated code wasn't affected.  It's a trivial change I'm testing now, so shoul

Re: [Axis2] Rolling my own services.xml - how to define th e in and out message so it appears in the WSDL.

2006-01-24 Thread Peter Ludwig
Slowly the mysery services.xml becomes clearer. I succeeded using the RPCMessageReceiver ;-). I tested the operation: public MyBean getBean() {..} with the coresponding entry in the services.xml: Complex example http://www.w3.org/2004/08/wsdl/in-out"; class="org.apache.axis

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Ajith Ranabahu
Hi Chuck, I looked at your solution and it is reasonable for handling choice. I applied the patch (Actually modified the classes looking at the patch. TortoiseSVN  throws an exception when I try to apply the given patch) Thanks a lot for your effort in participating in the development effort. We

Re: Axis2 0.94

2006-01-24 Thread Ajith Ranabahu
Hi Mani, Currently I am planning to use Axis for one of our clients, I Downloaded Axis2 0.94, and tried to follow few samples Available in the net, It seems that there are so many changes Mainly the Call class is deprecated. Yes, this has been part of the client API change we did just before

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Chuck Williams
Dims and Ajith, I took Dims' advice and created the attached patch to modules/codegen/src of Axis2 0.94.  This may not be the best implementation of but it is very simple and meets my use cases.  The idea is this.  A is treated just like an where each enclosed element has minOccurs=0, excep

Re: [Axis2] Rolling my own services.xml - how to define the in and out message so it appears in the WSDL.

2006-01-24 Thread Deepal Jayasinghe
Hi Anders; RawXMLINOutMessageReceiver can handle only OMElement case , that is if the method take OMElment as input and give OMElement as output , if you want to work with other types , use RPCMessageReciver as message receiver and that guy can handle those cases , so if your java impl class i

Re: [Axis2] wsdl2java support for notification and solicit-response MEPs

2006-01-24 Thread Chathura Herath
Hi, Could you please explain the semantic meaning that you anticipate from Out-In MEPed service. Reason why i am asking this is, I am personally confused as to how the Out-In Service should work. Is it service that is just running in the Axis2 Engine and depending on some external event do a Out-In

Re: How does java2wsdl work?

2006-01-24 Thread Bas A. Schulte
On Jan 25, 2006, at 2:32 PM, Dies Koper wrote: If your class follows the Javabean conventions (public getter and setter), Axis will pick up that field and include it in the WSDL. Otherwise the field needs to be public. Check out the Java->XML mapping section in the JAX-RPC 1.1 spec for deta

Re: How does java2wsdl work?

2006-01-24 Thread Bas A. Schulte
On Jan 25, 2006, at 2:53 PM, Anne Thomas Manes wrote: Don't think of it as a "not nice, but workable" situation. If you want a distributed object system for transferring objects between two Java applications, use RMI or CORBA I have a SOAP billing engine that amonst others receives SOAP

Re: How does java2wsdl work?

2006-01-24 Thread John Delaney
If you have java at both ends there is no problem with using axis to send your own class. You just have to go through all of the rigamarole in defining the interface and the serializers at both ends. Once you have got the hang of that, it is a breeze. JWD >>> [EMAIL PROTECTED] 01/25/06 12:54 PM >

Re: How does java2wsdl work?

2006-01-24 Thread Anne Thomas Manes
Axis is not a distributed object protocol. Axis (or any web services framework) is not an appropriate system to use if your goal is to send a Java *class* over the network. Axis communicates using SOAP. SOAP is an XML messaging protocol. Its purpose is to send XML messages (i.e., data) between two

Re: How does java2wsdl work?

2006-01-24 Thread Dies Koper
Hi Bas, If your class follows the Javabean conventions (public getter and setter), Axis will pick up that field and include it in the WSDL. Otherwise the field needs to be public. Check out the Java->XML mapping section in the JAX-RPC 1.1 spec for details. Regards, Dies Bas A. Schulte wrote:

How does java2wsdl work?

2006-01-24 Thread Bas A. Schulte
Hi all, I'm trying to send an existing java class (not my app, don't have the source, beyond a decompiled version to see what's in it) over the wire using Axis on both ends, with very little success. What I'm wondering about: how does java2wsdl work in terms of establishing what attribute

Re: Problem serializing array of complex types

2006-01-24 Thread Wes Munsil
Thanks, I neglected to mention that I had tried that, and it didn't help. Anne Thomas Manes said: > Try using the -w or --wrapArrays option on WSDL2Java and see if that > helps. > > Anne > > On 1/24/06, Wes Munsil <[EMAIL PROTECTED]> wrote: >> >> Does anyone have a clue about what to do about this

Re: Problem serializing array of complex types

2006-01-24 Thread Anne Thomas Manes
Try using the -w or --wrapArrays option on WSDL2Java and see if that helps. AnneOn 1/24/06, Wes Munsil <[EMAIL PROTECTED]> wrote: Does anyone have a clue about what to do about this? I'm seeing what lookslike the same problem. Axis 1.3 WSDL2Java is generating int instead ofArrayOfint. Also happens

Re: avoid xmlns="" in a Axis client call

2006-01-24 Thread Anne Thomas Manes
Modify the WSDL and add elementFormDefault="qualified" to the definition. This is caused by a bug in .NET. Per the XML Schema spec, the default value is "unqualified", but .NET always assumes "qualified". Anne On 1/24/06, Ivano Luberti <[EMAIL PROTECTED]> wrote: Hi to all. Before sending

Hiding public methods WITHOUT modifying the wsdl.

2006-01-24 Thread Bell, Douglas
I'm using IBatis for ORM and using the same objects for input to my service. Is there a simple way to hide some of the mutators IBatis needs to operate without modifying the wsdl after generation? Or am I stuck using some type of transfer object?   - Doug

avoid xmlns="" in a Axis client call

2006-01-24 Thread Ivano Luberti
Hi to all. Before sending thi post I hve searched the mailing listo for hours but I couldn't  find an answer, maybe beacuse I'm not an XML expert. I'm trying to consume a web service on a .NET server using an Axis Client. I have downloaded the WSDL and built the client using wsdl2jave. When I try

Re: Problem serializing array of complex types

2006-01-24 Thread Wes Munsil
Does anyone have a clue about what to do about this? I'm seeing what looks like the same problem. Axis 1.3 WSDL2Java is generating int instead of ArrayOfint. Also happens with arrays of complex types. WSDL has this: http://www.w3.org/2001/XMLSchema"; targetNamespace="urn:top">

SOAP Monitor unable to communicate with server

2006-01-24 Thread Hanxi Zhang
Hi, I was trying to set up the SOAP monitor for axis v1.2. I followed the user guide, up to the point where the SOAPMonitor Applet shows up at http://localhost:8080/axis/SOAPMonitor. However at the bottom it says 'the SOAP Monitor is unable to communicate with the server'. I dug through the mai

Different class loader used to determine if attachment is supported and to handle type mapping

2006-01-24 Thread Kathy Chan
Hi, We are using Axis 1.2.1 and noticed the following behaviour (same behaviour in Axis 1.3): We call org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask to generate WSDL from Java.  The first thing Java2WsdlAntTask does is:        AntClassLoader cl = new AntClassLoader(getClass().getClassLoader(),

Re: .NET complex type ...

2006-01-24 Thread Anne Thomas Manes
I don't know of any other SOAP engine that supports the Dataset type. A Dataset type includes its own schema, and it includes a bunch of additional proprietary fields that ADO.NET uses for transaction and session control. In order to consume the element, you need to process the embedded schema on

RE: .NET complex type ...

2006-01-24 Thread Rémi Guilbert
Could you tell me why ?   De : Anne Thomas Manes [mailto:[EMAIL PROTECTED] Envoyé : 23 janvier 2006 18:03 À : axis-user@ws.apache.org Objet : Re: .NET complex type ...   Don't use Dataset types. On 1/23/06, Rémi Guilbert <[EMAIL PROTECTED]> wrote: Hi, I made a Test cla

WSDL with 1.1 fails in 1.2, 1.2.2, 1.3

2006-01-24 Thread Dave Green
I have wrapped style document literal WSDL which I have built so as to be compatible with Axis 1.1, soap::lite, zsi python soap, and MSStudio .net. The trouble arose with Axis 1.2 and continues with 1.3: I have a method in my interface which takes an unbounded sequence of unbounded sequences o

returning custom object

2006-01-24 Thread Usman Ghani
I created a custom object Custom, and a CustomHolder class for it and let axis create wsdl file. When I call the service which returns Custom object it throws me following error: ERROR: AxisFaultfaultCode: {}Server.userExceptionfaultSubcode: faultString:

[Axis2] Rolling my own services.xml - how to define the in and out message so it appears in the WSDL.

2006-01-24 Thread Anders Syvertsen
Hi, i've download the Axis2 0.94 dist and trying to set up a webservice. I have successfully created my own .aar and deployed it, it was the simplest type with a few lines in services.xml.. Now i wonder, can i have a service class (the java impl), // "Physical" method signature public OMEleme

Re: [Axis2-0.94] AxisFault: Raw Xml provider

2006-01-24 Thread Rubén Naranjo Izquierdo
I'm still making tests and I can't come to a solution. This same wsdl worked perfectly in Axis2-0.93. I attach a simplified version of the WSDL and XSD files with which I get the exception explained below. Could somebody please, try the service that my WSDL generates? Thank you in advanc

Re: problem with soap body when invoking web service

2006-01-24 Thread JWriter Codeman
I took a look at the bug database and there are indeed some reports of bug like this one. The problem is that they do not seem to get fixed. We need to solve this problem on a rather short term, does anyone know a quick fix for this problem or an alterative? Thx --- Anne Thomas Manes <[EMAIL PROTE

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Davanum Srinivas
OR help implement choice in ADB :) i highly recommend that because i've seen some perf issues with xmlbeans (check xmlbeans jira) -- dims On 1/24/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote: > Hi Chuck, > The choice element is not handled in the ADB schema compiler yet (at least > we are not su

Re: Cluserting tomcat and web service

2006-01-24 Thread Plorks mail
no we don't use a load balancer From: Yagiz Erkan <[EMAIL PROTECTED]> Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: Cluserting tomcat and web service Date: Tue, 24 Jan 2006 13:19:54 + Is there a load balancer in front of the cluster? If that's the case, just

Creating Service object with QName object instance throws ServiceException

2006-01-24 Thread Sandeep Khanna
Hi All, I am trying to create a Service object prefilled with the WSDL information. My code is: String endPointURL = http://localhost:8080/services/WebServiceBll; Service service = new Service( new URL( endPointURL + "?wsdl" ), new QName( endPointURL, "WebServiceBll" ) ) Call call = ( Call )serv

Re: AXIS 1.3 vs. AXIS2

2006-01-24 Thread iksrazal
Em Terça 24 Janeiro 2006 07:56, o SOA Work escreveu: > How could I use axis2 with spring for example? I use Spring with Axis2 and have no problems. You have at least two options: 1) Use the implementation of Paul Fremantle posted to the list: http://marc.theaimsgroup.com/?l=axis-dev&m=1128666

[Axis2] wsdl2java support for notification and solicit-response MEPs

2006-01-24 Thread Andreas Bobek
Hi all, I read this thread in which you discussed about wsdl2java support for out-only MEPs (or out-in): http://marc.theaimsgroup.com/?l=axis-user&m=113397248515948&w=2 As a workaround you suggested to rewrite (to invert) the WSDL. I understand this approach, but my question is, do you intend to

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Ajith Ranabahu
Hi Chuck, Interesting approach :) Although the hardcore web service people might argue that it is not a good pattern to  follow ;) Does axis2 with XMLBeans also provide the capability to directly access StAX to custom-parse incoming message parameters ? Yep. All XMLBeans objects have a method to

Re: problem with soap body when invoking web service

2006-01-24 Thread Anne Thomas Manes
Ah ... I see the problem. You are correct. Axis should be generating a message with an empty body, but instead it is adding the element. I seem to recall that this issue was raised last summer, so I suggest you search Jira for a resolution. Otherwise, please file a bug report. AnneOn 1/23/06, JWr

RE: Reasons why Webservice is inaccessible from WAN?

2006-01-24 Thread Girish_Kumar
Hello Anthony,   Thank you so much. It worked..!   You know I have already developed a java client assuming that I would be able to generate the proxies successfully (using the probable class names that will be generated by wsdltojava).   God, I had to wait almost a month to get this

Re: Complex problem

2006-01-24 Thread Anne Thomas Manes
The use of a substitutionGroup combined with an abstract type allows you to do what you want: change both the name and type of the element. A subtitutionGroup allows you to change the name of an element, but the type of a substitutionGroup element must be the same as the original element, or it mus

Re: Cluserting tomcat and web service

2006-01-24 Thread Yagiz Erkan
Is there a load balancer in front of the cluster? If that's the case, just make sure that the URL to the WSDL is modified accordingly.  - Yagiz -  http://blog.decaresystems.ie/wordpress/?author=3

Cluserting tomcat and web service

2006-01-24 Thread Plorks mail
hi all has anyone set up clustering tomcat that has web services? we have quite a few web services and when we turn our clustering on the web services no longer work, always givinf a null value, as soon as we turn it off the web services are OK can anyone lead me to a good example of clutse

Re: [axis2] deploy ant task

2006-01-24 Thread Deepal Jayasinghe
Hi Juergen; see my comments below; Thanks, Deepal ~Future is Open~ - Original Message - From: "Juergen Umbrich" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 24, 2006 5:23 PM Subject: [axis2] deploy ant task Hi is

[axis2] deploy ant task

2006-01-24 Thread Juergen Umbrich
Hi is there an ant task that i can automatically deploy my service.aar in to axis2? and another question. if i have own packages (jars) can i put them into the aar file. e.g the folder structure of the aar WEB-INF/lib/mypackage.jar is it then working for the webservice? because now i copy my pack

Encoding problem

2006-01-24 Thread Angelo Immediata
Hi all. I'm using Axis 1.2.1 and i have this situation: i have a html form; the user compiles this form and a web service is called; well it seems to me that when there are some special characters (as à or è etc...) i have some problems; infact the same ear on windows XP Home Edition SP2 and Win

Re: Generated Stub Thread-safe?

2006-01-24 Thread Cyrille Le Clerc
By the way Neil, If you want high performance invocations, you can also have a look at CommonsHTTPSender. It uses a pool of http persistent connections (keep-alive). http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP Cyrille PS : my first name is Cyrille, not Cedric :-) -- Cyrille Le Cler

getResponseMessage is throwing NullPointerException

2006-01-24 Thread Kumuda Bhaskar
Hello, I have created the stubs for the .net webservice using WSDL2JAVA. I have to send an attachment to the webservice. MessageContext ctx = AxisEngine.getCurrentMessageContext(); Message m = ctx.getResponseMessage(); Attachments ats = m.getAttachmentsImpl(); ats.setSendType(Attachme

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Chuck Williams
Thanks Ajith.  I should have read the documentation more thoroughly, including the caveats at the bottom! Performance is one of my objectives.  I want to use the direct access to the pull parser that axis2/adb provides to efficiently process potentially very large incoming documents passed as

Re: Simple way of using Beans?

2006-01-24 Thread Deepal Jayasinghe
Hi Peter; in Axis2 you can deploy services which uses JBeans very easily , what you have to do is write services.xml for your services and if you wish axis2 to generate WSDL for you pls put following entry into ur servies.xml and finally ur services.xml look like follow;

Re: AXIS 1.3 vs. AXIS2

2006-01-24 Thread SOA Work
I would like to add a question. How about axis2 integrating in existing web projects? I would like to use web services in addition to my jsps. How could I use axis2 with spring for example? Can I access the webcontext somehow? axis-user@ws.apache.org schrieb am 24.01.06 10:40:41: > > Hello,

Simple way of using Beans?

2006-01-24 Thread Peter Ludwig
Hello everybody, I'am planning to make 3 Classes to web services. Some of them use Beans as parameters and return types, even as arrays or lists (I could remove the lists and use arrays) Is there a simple way (without configuration and reading of the complete axis reference) to create such servi

RE: Complex problem

2006-01-24 Thread glenn bech
Hi Anne, thank you for looking into my case, I can see from the mailing list that you’re one of the ones pulling the load around here.-) Anyways ; I realize now that the substitutiongroup attribute belongs to elements, and not types. Personally, I'm a bit confused about the use of *both* in my cas

ANy body needs complex exmaple called using clinet type DII( dynamic invocation interface )

2006-01-24 Thread webservice guy
Dear All After 4 dayus of work i could able to run one exmaple( COMPLEX types ) using DII client if any body needs please feel free to contcat me... thanks alot Kind regrds WSGUY

AXIS 1.3 vs. AXIS2

2006-01-24 Thread Christian Schmitz
Hello, I am confused about which axis-version to use. Big changes not at least in the architecture are made in AXIS 2, but can somebody give me an overview of all changes and the benefits of AXIS2. I haven't something like that on the website. What about AXIS 1.3, is it going to die? Which v

Re: [Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Ajith Ranabahu
Hi Chuck, The choice element is not handled in the ADB schema compiler yet (at least we are not sure what is the best way to deal with it). Right now we do not throw any exceptions but silently skip that (that is why the empty class) Please use XMLBeans if you need the support for choice for  now.

[Axis2-0.94] WSDL2Java generates bad code for complex types

2006-01-24 Thread Chuck Williams
I have a complexType that contains a of two alternative elements, like this: and a reponse message that contains a value of this type: and a portType with an operation that returns the response message: WSDL2Java generates a

How Axis C++ client cache the exception thrown by Axis Java Web Service site

2006-01-24 Thread Guofeng Zhang
Hi,   The web service is developed by Axis Java 1.3. The client site of the service is developed by Axis C++ 1.5.   It works fine in general case. But when the service throws an exception, the client throws AxisException that says that “Cannot deserialize the requested element”. The cli