Hello,

I am implementing a web service that has to read binary data from a java client.

The server is bult with gsoap and the client with javax ws api.

My gsoap webservice header definition looks like this:


class xsd__hexBinary{  public:   unsigned char *__ptr;   int __size; };
int myservice__uploadFile(xsd__hexBinary stream, int* isOk);

soapcpp2 and wsimport (onthe java side) are working fine, in java I end up 
calling:
int isOk = myservice.uploadFile(new byte[]{(byte)0xFF});

after this,on the server side my call is received in the correct C-function:

int soaptorrent__uploadTorrent(struct soap *soap, xsd__hexBinary stream, int* 
isOk)
{
  stream.soap_get(soap, "????", NULL);  //I doubt that this is correct
}

Here comes my problem: I want to get the contents of my stream. Is 
stream.soap_get() the correct function to use? If so, what value do I have to 
set for my 2nd parameter?



Reply via email to