Hi,

i have a POJO class with following method:

public String upload( byte[] document, String filename, String sender,
String validtill )

On the client side I'm unable to call this service:

DataSource dataSource = new ByteArrayDataSource( uploadedfile.toByteArray(),
"application/octet-stream");
DataHandler dataHandler = new DataHandler(dataSource);
WS_parameters.setdocument( dataHandler );
// Exectue the service
UploadResponse resp = stub.upload(WS_parameters);

I always get following AxisFault:

the service is unknown (or similar).

Is it not possible to have a byte[] array as a parameter ?

If so, what I 'm doing wrong ?

REgards,

H.

Reply via email to