Re: Problem with a simple Object[] in RPCServiceClient

2008-12-11 Thread Rodrigo Asensio
nop, I said this is a coldfusion axis1 ws. I found that "according to the specification, fault and header message parts must be defined as document/literal, even if the body is defined as RPC style." regards and thanks Rodrigo Asensio [EMAIL PROTECTED] http://www.rodrigoasensio.com "To err

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-11 Thread Deepal Jayasinghe
Oh, good. I though you were using Axis2 at the server side too . > Finally It was solved. how ? > > the ws was done in coldfusion 7 who uses axis1 and there are some > problems with doc-literal and soap encoding. Server side changed the > wsdl and now I can retrieve arrays[] with the same code. Tha

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-11 Thread Rodrigo Asensio
Finally It was solved. how ? the ws was done in coldfusion 7 who uses axis1 and there are some problems with doc-literal and soap encoding. Server side changed the wsdl and now I can retrieve arrays[] with the same code. Thanks for helping. R Rodrigo Asensio [EMAIL PROTECTED] http://www.rodrigoa

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Rodrigo Asensio
Here is the code. Also I'm trying to generate the clients with adb or xmlbeans and I'm getting [ERROR] Part 'fault' of fault message '{http://icu_test.dev}CFCInvocationException' must be defined with 'element=QName' and not 'type=QName' this is a coldfusion axis1 ws. I found that "according to the

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Deepal Jayasinghe
Can you please send me your service code, then I will give you the exact solution. Deepal Rodrigo Asensio wrote: > the most accurate test for my case should be the testCompanyArray() > where it converts doing something like this > > ArrayList resobj = new ArrayList(); > resobj.add(Struct_cards[].

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Rodrigo Asensio
the most accurate test for my case should be the testCompanyArray() where it converts doing something like this ArrayList resobj = new ArrayList(); resobj.add(Struct_cards[].class); (Class[])resobj.toArray(new Class[resobj.size()]) but the result is the same... below I'm posting the wsdl and ext

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Deepal Jayasinghe
Have a look at following class , it does what you want to do https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java > Class[] returnTypes = new Class[]{(Struct_cards[])} > this don't compile because the objects inside the array

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Rodrigo Asensio
Class[] returnTypes = new Class[]{(Struct_cards[])} this don't compile because the objects inside the array must be Class type, and I already tried that one Class[] returnTypes = new Class[]{Struct_cards[].class} Rodrigo Asensio [EMAIL PROTECTED] http://www.rodrigoasensio.com "To err is human, b

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Deepal Jayasinghe
> Can't return a simple Object[] > > axis2 141 > > client code: > > > RPCServiceClient serviceClient = new RPCServiceClient(); > Options options = serviceClient.getOptions(); > EndpointReference targetEPR = new EndpointReference(URL); >

Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Rodrigo Asensio
Can't return a simple Object[] axis2 141 client code: RPCServiceClient serviceClient = new RPCServiceClient(); Options options = serviceClient.getOptions(); EndpointReference targetEPR = new EndpointReference(URL);