Something obvious is not jumping out at me.  

Recommend you recompile with debugging on and optimization
off to get line numbers in your exception, then repost with just
top couple of lines from exception trace to see which line is
breaking.  Perhaps someone else can spot your error.

I can state that the whole axis serialization mechanism 
works very well once you have the tricks down.  Don't know 
which trick you're missing.

I just this morning tried to setup serialization of a bean
that contained an array of beans like itself along with a single
simple bean (containing just String, boolean, etc.), i.e. a tree.
Took about an hour to sort out my errors in setting up all of the 
bean serialization, but works like a champ and is successfully
serializing a test tree 4 levels deep.

Heitzso


On Fri, 2002-05-31 at 11:23, Chohan, DB (Dharmesh) wrote:
> 
> Thanks for the info.  I tried out but I get the following exception :
> 
>         at org.apache.axis.message.SOAPFaultBuilder.endElement(Unknown
> Source)
> 
> This is extract of my source code. It fails on line marked with ***.
> 
> private void mdsConnect() {
>        
>    String endpoint = "http://localhost:8080/axis/MDSService.jws";;
>    Service service = new Service();
>    try {
>        Call call = (Call)service.createCall();
>        call.setTargetEndpointAddress( new java.net.URL(endpoint) );
>        call.setOperationName( "mdsSearch" );
>        call.addParameter("host", XMLType.XSD_STRING,..
>        call.addParameter("objectclass", XMLType.XSD_STRING,..
>        call.addParameter("voname", XMLType.XSD_STRING,..
>        call.addParameter("attributeindex", XMLType.XSD_INT,..
>        call.addParameter("attributes", XMLType.SOAP_ARRAY,..
>        call.setReturnType(XMLType.XSD_STRING);
>        Integer attribCount = new Integer(selectedAttributes);
>    *** String result = (String)call.invoke( new Object [] {
>       mdsHost, mdsObject, mdsVoName, attribCount, mdsTypes });
>         }
>         catch(Throwable e) {
>         }   
>     }
> 
> -----Original Message-----
> From: Heitzso [mailto:[EMAIL PROTECTED]]
> 
> to pass array in:
>  String[] columnName = ...
>  call.addParameter("columnName",
>                         org.apache.axis.Constants.SOAP_ARRAY,
>                         javax.xml.rpc.ParameterMode.IN);
> and
>  blat (Blat) = call.invoke(new Object[] { columnName } );
> 
> 
> On Fri, 2002-05-31 at 05:40, Chohan, DB (Dharmesh) wrote:
> >
> > Hi,
> >
> > Does anybody know how to pass a string[] in a RPC call, eg
> > call.addParameter( "attributes", XMLType.???, ParameterMode.PARAM_MODE_IN
> );
> >
> > Thanks
> > Dharmesh


Reply via email to