Closed GoogleCodeExporter closed 9 years ago
Try setting addAdornments on SoapSerializationEnvelope to false
Original comment by mosa...@gmail.com
on 18 Nov 2011 at 5:41
If I want to send and receive a POJO I always use:
Pojo pojo = new Pojo();
pojo.setAttr1(attr1);
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty(pojo.getClass().getSimpleName(), pojo);
SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
envelope.addMapping(THE_POJO_NAMESPACE, pojo.getClass().getSimpleName(),
pojo.getClass());
HttpTransportSE transport = new HttpTransportSE(URL);
transport.call(NAMESPACE + METHOD_NAME, envelope);
Pojo pojo_response = (Pojo) envelope.getResponse();
THE_POJO_NAMESPACE is something like this (I'm using Axis2 for web services, it
maybe different for you):
http://entities.domain.myapp.org/xsd
--------
@enrmarc
Original comment by enrm...@gmail.com
on 9 Dec 2011 at 11:07
So you are saying it works just fine basically?
Original comment by mosa...@gmail.com
on 9 Dec 2011 at 11:19
Closing due to no feedback
Original comment by mosa...@gmail.com
on 30 Apr 2012 at 6:29
Original issue reported on code.google.com by
bright.z...@gmail.com
on 13 Oct 2011 at 2:40