Hi,

Currently I need to wrap a function with java.lang.Long[] as one of the
parameters.

As I made up the call as follow:

    Long longArray[] = {new Long(1),new Long(2)};
    params.addElement (new Parameter("longArray", longArray.getClass(),
longArray, null));

What I observed is that within the SOAP Envelope, the array Long[] is always
treated as an long[] array.  When this being deserialized at the SOAP
Engine, it tries to find a signature with long[] as the parameter.  So I got
an error message:

Ouch, the call failed:
  Fault Code   = SOAP-ENV:Server
  Fault String = Exception while handling service request:
samples.test.TestArray.testWrapper(long[]) -- no signature match

Is there a way that I can use the default Serializer/Deserializer to pass an
Long[] array?


In another situation, I have created a custom Serializer/Deserializer as
well as the WSDL files.  If a client wants to use my SOAP Service, is there
any way (by providing more standard documents?) that the service can be
invoked without a Serializer/Deserializer on the client side?

Thanks for your advice!

kelvin

Reply via email to