Exemplo n.º 1
0
 @Override
 public SoapEnvelope decode(DataInputStream in) throws IOException {
   int len = in.readInt();
   byte[] buf = new byte[len];
   in.readFully(buf);
   UnsynchByteArrayInputStream holder = new UnsynchByteArrayInputStream(buf);
   return SoapSerializer.FromXml(holder);
 }
Exemplo n.º 2
0
 public SoapEnvelope unmarshal(byte[] message) {
   UnsynchByteArrayInputStream bin = new UnsynchByteArrayInputStream(message);
   SoapEnvelope msg = SoapSerializer.FromXml(bin);
   return msg;
 }