Im trying to get a byte[] from a base64Binary field in my android application. i manage to get the data though for some reason the data array is full with values in some places, where the same data array in C# returns positive numbers, for instance:
In C# webservice the byte array might look like 46,0,45..... and in android it looks like 46,0, -112......
how can i get the correct byte array from a base64Binary field with KASOP2?
这是目前使用的法典:
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME1);
request.addProperty("Name", sName);
SoapSerializationEnvelope envelope =
new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
try
{
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
Object o = envelope.bodyIn;
SoapPrimitive result = (SoapPrimitive)envelope.getResponse();
//to get the data should be a base
String resultData = result.toString();
}
页: 1
Any help will be greatly appreciated, Thanks, Totem