With byte[].class it worked. But now I get a NoSuchMethodError. The method I
try to call looks like this:
public static byte[] transformToPDF(byte[] xmlFile, byte[] xslFile)
This is the client code:
Vector params = new Vector();
...
call.setMethodName("transformToPDF");
params.addElement(new Parameter("xmlFile", byte[].class, xml, null));
params.addElement(new Parameter("xslFile", byte[].class, xml, null));
call.setParams(params);
Why can't the method be called?
Thanks, Kai
-----Urspr�ngliche Nachricht-----
Von: Matthew J. Duftler [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Juni 2001 23:59
An: [EMAIL PROTECTED]
Betreff: RE: is Bytes.class for bytes[]
Hi Kai,
If the type of the object you are trying to pass is byte[], then you should
use byte[].class.
Thanks,
-Matt
> -----Original Message-----
> From: Kai Donker [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 07, 2001 5:55 PM
> To: [EMAIL PROTECTED]
> Subject: is Bytes.class for bytes[]
>
>
> Hi there,
>
> I 've set up a WebService with a static method. Parameters are bytearrays,
> returntype is also a bytearray.
>
> When invoking I get the following error:
>
> Generated fault:
> Fault Code = SOAP-ENV:Client
> Fault String = [B@7b56b1
>
> May the cause for this be, that the Parameter-objects are not corectly
> defined? I did it like this:
> params.addElement(new Parameter("file", Byte.class, file, null));
>
> Thanks, Kai
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]