RE: When to use undocumented wsdl2java --wrapArrays?

2005-11-09 Thread Pete Hendry
>>-Original Message- >>From: Jarmo Doc [mailto:[EMAIL PROTECTED] >>Sent: Thursday, 10 November 2005 5:52 p.m. >>To: axis-user@ws.apache.org >>Subject: RE: When to use undocumented wsdl2java --wrapArrays? >> >>Thanks for the comprehensive answer Pete. >> >>Having switched to using wrappe

How to handle xsd:anyType with Message Style web services ?

2005-11-09 Thread Kr
I have a message style web service with 2 operations like below : server-config.wsdd -- -- CatalogPublisherService.java has below method signatures: public Element[] publishCatalog(Element[] inputEle

Re: Axis 1.3 code doesn't run and Axis2 generates uncompilable code - TypeSystemHolder does not exist.

2005-11-09 Thread Ajith Ranabahu
Hi, The error (regarding the Axis2 problem) tells me that the generated XMLBeans stuff is not correctly in the classpath. The schema_x_xmlbeans folder needs to be in the classpath rather than the source path. In the latest code I've added some enhancements , particularly the feature of gene

Java2WSDL converts String arrays to strings

2005-11-09 Thread Thamm, Russell
Title: SEC:U Java2WSDL converts String arrays to strings Hi, I am trying to convert an RPC/Encoded service to a "WRAPPED" style service. I used Java2WSDL on the Java Interface and supporting classes. I was very surprised to see that class members of the form: String[] collections;

RE: When to use undocumented wsdl2java --wrapArrays?

2005-11-09 Thread Jarmo Doc
Thanks for the comprehensive answer Pete. Having switched to using wrapped arrays (and changing server code, client code, and WSDL!) my code now works. I was surprised to find that I had to change the server-side code so that each class contained an ArrayOfXXX rather than XXX []. Without thi

RE: WS sends thing[2], client receives thing[9]

2005-11-09 Thread Jarmo Doc
Problem appears to have been that the web service was sending unwrapped arrays yet the client was expecting wrapped arrays. Strange that this yielded undefined behavior rather than a helpful diagnostic such as, oh I don't know, "Received unwrapped array, expected wrapped array" ;-) From: "J

RE: When to use undocumented wsdl2java --wrapArrays?

2005-11-09 Thread Pete Hendry
Cross-posted to soapbuilders for input from the pros :-) >>From: Jarmo Doc [mailto:[EMAIL PROTECTED] >>Subject: When to use undocumented wsdl2java --wrapArrays? >> >>I note that Axis 1.3 wsdl2java supports an undocumented option: >>--wrapArrays. I can see that it causes MyClass [] to be wrapped

IllegalArgumentException when deserializing arrays

2005-11-09 Thread Narayanan Singaram
Hello All, I'm getting an IllegalArgumentException in the server while deserializing an array of array ([][]) object. Axis is calling the setter method with an array([]) where as the method expects an array of array([][]). I'm using wsdl2java for generating both the server and client side

Re: [Axis2] Embeding Axis2 in my application

2005-11-09 Thread Srinath Perera
Hi Routis; 1)I think if you copy the content of the war to yours and preserve the structure it should work. 2) if you need to add a service via the deployment module it should agree with the aar file format. But if you have the classes in the classpath if you just have service.xml file in the aa

Hiding public mutators on mapped bean

2005-11-09 Thread Bell, Douglas
Is it possible to hide a exposed mutator on a public interface when it is presented to a client? i.e. Package foo; Public class Bar { private String field; public void setField(String field) { this.field = field; } public String getField(

Problem with nillable enumerated type...

2005-11-09 Thread Ebert, Chris
Hi, I've declared a simple type that's a enumeration of string values (See below). I use it later to define an element and say the element is nillable. When I get a nil element, the deserialization process throws an IllegalArgumentException: it's trying to find the empty string in the list of provi

RE: Any Type Problem!! Please Read.

2005-11-09 Thread Parikh,Pratik
Hi Anne,       Thanks for the reply, I found that out as well. I just made it a ext string.   Thanks, Parikh, Pratik From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 5:27 PMTo: axis-user@ws.apache.orgSubject: Re: Any Type Problem!! Please Read. This is

Re: InvocationTargetException in org.apache.axis.client.Call

2005-11-09 Thread Anne Thomas Manes
Please post your WSDL. The namespace for the parameter would be the targetNamespace for your schema that defines the parameter element. AnneOn 11/9/05, Jalenak, Jerry <[EMAIL PROTECTED]> wrote: Found some information on this.  In the org.apache.axis.client.Call.invoke method, the fi

Re: Any Type Problem!! Please Read.

2005-11-09 Thread Anne Thomas Manes
This is a user question, not a developer question. In the future, please send user questions only to the user list. the developer list is for discussion of the Axis code base. There are some issues with your complex type definition: 1. You have a group with no choice. 2. You don't define a data

RE: Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Definition'. Extension elements must be in a namespace other than WSDL's.:

2005-11-09 Thread Dovholuk, Clint
the bug i promised i'd post: http://issues.apache.org/jira/browse/AXIS-2235 From: Dovholuk, Clint [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 12:02 PMTo: axis-user@ws.apache.orgSubject: RE: Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Defin

Re: AXIS SAX Exception when using WSDL2Java

2005-11-09 Thread Anne Thomas Manes
What's the exception? Can you post the WSDL?On 11/9/05, Gupta, Praful <[EMAIL PROTECTED]> wrote: Hey Guys,   I am a newbie to using AXIS. I tried using the WSDl2Java tool to generate some client stubs from a WSDL file but keep getting a SAX Exception error. I tried installing differe

[Axis2] Embeding Axis2 in my application

2005-11-09 Thread Routis Babis
Is it possible to deploy axis2 in my own war (as I was able to do with axis1) ? I ask this question because I need to implement a Document/Literal web service, for an existing J2I application, that runs in a server that I don't have the luxury of adding extra wars. Additionally, If the answe

Re: Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Definition'. Extension elements must be in a namespace other than WSDL's.:

2005-11-09 Thread Paul Barry
Yes, This is already entered as a bug. http://issues.apache.org/jira/browse/AXIS-2235 This seems pretty critical to me, since the generated WSDL is invalid and therefore unusable. On 11/9/05, Dovholuk, Clint <[EMAIL PROTECTED]> wrote: > > fyi, i've already filed a bug on this. i went looking fo

AXIS SAX Exception when using WSDL2Java

2005-11-09 Thread Gupta, Praful
Hey Guys,   I am a newbie to using AXIS. I tried using the WSDl2Java tool to generate some client stubs from a WSDL file but keep getting a SAX Exception error. I tried installing different versions of Xerces parser in case it did not work with the XML Schema version used to create the WS

Any Type Problem!! Please Read.

2005-11-09 Thread Parikh,Pratik
Title: Any Type Problem!! Please Read. Hi Everyone,     I have a data type call PNCerner, which is as following:                                                                                

RE: InvocationTargetException in org.apache.axis.client.Call

2005-11-09 Thread Jalenak, Jerry
Found some information on this.  In the org.apache.axis.client.Call.invoke method, the first parameter is operationName.getNamespaceURI().  Looking at the object, my namespaceURI is null.   I’ve a feeling that this is the problem, but after looking at the WSDL, it’s not apparent to me where

InvocationTargetException in org.apache.axis.client.Call

2005-11-09 Thread Jalenak, Jerry
Hi all,   I’ve got a webservice developed using Axis 1.3 with a Document Literal Wrapped WSDL.  I’m getting an InvocationTargetException in my SoapBindingStub when Axis is being called.  Here’s the code –       public webservice.client.CpeProperties[] listCPE(webservice.client.ListCPE p

RE: Binding is not getting called????

2005-11-09 Thread Parikh,Pratik
Title: Binding is not getting called Hi Everyone,       Please ignore this thread, as it is getting called but I had a breakpoint set on a final static variable. But since it was called already once in the process thread it never went to that.   Thanks, Pratik Parikh From: Parikh,Pratik

When to use undocumented wsdl2java --wrapArrays?

2005-11-09 Thread Jarmo Doc
I note that Axis 1.3 wsdl2java supports an undocumented option: --wrapArrays. I can see that it causes MyClass [] to be wrapped as ArrayOfMyClass. When would it be sensible to use this option? I don't see how wrapping an array of trivial things in another class serves any useful purpose. T

Binding is not getting called????

2005-11-09 Thread Parikh,Pratik
Title: Binding is not getting called Hi Everyone,     Yet another problem that I am running into, I have a the following in server-config.wsdd:                                                                

Re: Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Definition'. Extension elements must be in a namespace other than WSDL's.:

2005-11-09 Thread Paul Barry
I'll be happy to file a bug on this, but does this seems like very basic functionality. If something this basic doesn't work, how can people be using Axis in production? Not trying to critize, I'm just trying to understand the scope of this bug. On 11/9/05, Anne Thomas Manes <[EMAIL PROTECTED]>

RE: Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Definition'. Extension elements must be in a namespace other than WSDL's.:

2005-11-09 Thread Dovholuk, Clint
fyi, i've already filed a bug on this. i went looking for the link, but jira is really slow... will post when jira responds... From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 11:59 AMTo: axis-user@ws.apache.orgSubject: Re: Encountered illegal extension

Re: Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Definition'. Extension elements must be in a namespace other than WSDL's.:

2005-11-09 Thread Anne Thomas Manes
Please file a bug report.On 11/9/05, Paul Barry <[EMAIL PROTECTED]> wrote: Still having this problem ,wondering if anyone can help me out.  Allthe details are below, but basically I have created a very simple webservice and it seems to work fine, but when I go to this url: http://localhost/axis/ser

Re: Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Definition'. Extension elements must be in a namespace other than WSDL's.:

2005-11-09 Thread Paul Barry
Still having this problem ,wondering if anyone can help me out. All the details are below, but basically I have created a very simple web service and it seems to work fine, but when I go to this url: http://localhost/axis/services/MyService?wsdl In the WSDL that is returned, the element doesn't

Re: Axis and Arrays

2005-11-09 Thread Frederic Donckels
Dear myself of the past... I finally found it: use the --wrapArrays flag (this is not available in the Ant task and not shown in the wsdl2java documentation online, it popped up when I invoked the wsdl2java class directly and gave a wrong flag name as argument) Best regards, FD

Re: Does anyone hava axis.jar with src in it

2005-11-09 Thread Richard Gregory
That's ok. Thanks for trying to help. Hansen, Geir wrote: Sorry Richard, my fault. It's NOT in there. -Original Message- From: Hansen, Geir [mailto:[EMAIL PROTECTED] Sent: 9. november 2005 14:29 To: axis-user@ws.apache.org Subject: RE: Does anyone hava axis.jar with src in it Down

RE: Does anyone hava axis.jar with src in it

2005-11-09 Thread Hansen, Geir
Sorry Richard, my fault. It's NOT in there. -Original Message- From: Hansen, Geir [mailto:[EMAIL PROTECTED] Sent: 9. november 2005 14:29 To: axis-user@ws.apache.org Subject: RE: Does anyone hava axis.jar with src in it Download 1.3 source from http://www.powertech.no/apache/dist/ws/ax

RE: Does anyone hava axis.jar with src in it

2005-11-09 Thread Hansen, Geir
Download 1.3 source from http://www.powertech.no/apache/dist/ws/axis/1_3/axis-src-1_3.zip It is in there. Geir -Original Message- From: Richard Gregory [mailto:[EMAIL PROTECTED] Sent: 9. november 2005 14:20 To: axis-user@ws.apache.org Subject: Re: Does anyone hava axis.jar with src in

Re: Does anyone hava axis.jar with src in it

2005-11-09 Thread Richard Gregory
Hi, I wanted to have a look at the source in realtion to a problem I'm having, so I did just this, and imported the 1.3 src into eclipse. I had to down various jars to satisfy the import statements in some of the classes, but the is one I just cannot find. In the class org.apache.axis.encodi

RE: Different behaviour for empty arrays between RPC and Doc/Wrapped?

2005-11-09 Thread Maurizio Melato
This is due to the WSDLs Axis generates when using RPC or Doc/Wrapped styles. In the RPC case arrays are wrapped in XMLschema complexType while in the Doc/Wrapped case they are used as simple repeated element in the method response message declaration RPC) ... .

Re: Axis and Arrays

2005-11-09 Thread Frederic Donckels
I forgot to mention: I'm using Axis 1.3 Frederic

Axis and Arrays

2005-11-09 Thread Frederic Donckels
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello again... I have a problem again... (I'd prefer to be helpful, but I lack the skills...) I have a Wsdl/xsd combination which says, basically: Service X, port Y, Operation Z is bound to Y, document/literal Z follows a Request/Response pattern.

proxy & java.net.useSystemProxies

2005-11-09 Thread Tore Halset
Hello! I am using the java.net.useSystemProxies property to let my java client app use proxy settings from the operating system. The property is one of the nice new features in java 5 :) http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html This is working perfect for some of the non-

Re: Developing webservice client-bug in axis 1.3????

2005-11-09 Thread Anne Thomas Manes
If you want that signature, you cannot use the document/literal style. You must use RPC style instead. Document/literal permits only one input parameter and one return value. Your other option is to change your signature to something like this: public dataBean getData(dataBean); AnneOn 11/8/05,

Re: Axis 1.3 code doesn't run and Axis2 generates uncompilable code - TypeSystemHolder does not exist.

2005-11-09 Thread Anne Thomas Manes
Does the service use rpc/encoded? Axis2 doesn't support SOAP Encoding yet. A mock-up of the WSDL would certainly help us help you. At least tell us a little bit about the WSDL: - does it validate? (using Cape Clear SOA Editor, SOAPScope, xmlspy, etc) - what's its style and use? - if it's doc/lit,

Re: SOAPAction to decide method-call

2005-11-09 Thread Anne Thomas Manes
It's a bad idea to use rpc/literal because quite a few major SOAP stacks (.NET, BEA, SAP, etc) don't support it. What you should use is document/literal with the "wrapped" convention. If you are generating the WSDL using java2wsdl, specify that you want the "wrapped" style. If you are using the W

RE: zipping soap body before sending

2005-11-09 Thread Plorks mail
hi is it possible to give an example of sending data as DIME Many thanks From: Mayur Shetye <[EMAIL PROTECTED]> Reply-To: axis-user@ws.apache.org To: "'axis-user@ws.apache.org'" Subject: RE: zipping soap body before sending Date: Tue, 8 Nov 2005 13:31:42 -0500 Hello, I think that you c

Performance issues with Axis 1.3

2005-11-09 Thread Padmanabha Rao A.
Hi, I want to know the performance issues in Axis 1.3 compared to Axis 1.2.1. Any body faced any problems related to performance with Axis 1.3 ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 5:12 PM To: Padmanabha Rao A. Subje

Re: SOAPAction to decide method-call

2005-11-09 Thread Guy Rixon
IIRC, the SOAPAction header is deprecated. If you have freedom to change the WSDL contract, then your service would do better as rpc/literal than document/literal: this wraps x in the name of the operation and allows dispatching based only on the SOAP content, not on the transport details. However

Axis 1.3 code doesn't run and Axis2 generates uncompilable code - TypeSystemHolder does not exist.

2005-11-09 Thread Stefan Freyr Stefansson
Hello. First off, sorry for the long subject! I've been having a terrible time creating a web service client in Java that communicates with a .NET webservice. For the record, unfortunately I can't show you the WSDL that I'm using to generate code due to general paranoia. I do understand that t

SOAPAction to decide method-call

2005-11-09 Thread Per Steffensen
Hi I have a document/literal Axis webservice (EJB provided). It contains to operations "a" and "b" that take that same kind of parameter "x". I generate client stubs to call the webservices though java client code. I have looked at the request send over the wire (using af http sniffer), when

AW: AW: Axis 1.3 Address already in use: connect-> java.net.BindException

2005-11-09 Thread Bromberg, Dirk - encoway
Hi, i see it right that this is a clientside issue, or? The client must do the change on his regestry, not the server, because he did't bind? Thanks. Dirk > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 8. November 2005 17:34 > An:

Generating SimpleSessionHandler in client wsdd with wsdl2java

2005-11-09 Thread Richard Gregory
Hi All, Apologies if this has aleady come up on the list, I had a quick look through the archives but couldn't find anything. Unfortunatley, if i try to search for wsdl2java + SimpleSessionHandler + wsdd it returns hundreds of messages. What I'm trying to find out is if it is possible to spe