Hi all.
I have a following problem. The class, declared as
package network.packages;
import java.io.Serializable;
public class SimpleResponse implements Serializable {
private static final long serialVersionUID = -4601923750580623654L;
public static final int STATUS_OK = 0;
public int statusCode;
public String error;
public String param;
public SimpleResponse(int statusCode, String error, String param) {
this.statusCode = statusCode;
this.error = error;
this.param = param;
}
public String getError() {
return error;
}
public String getParam() {
return param;
}
public int getStatusCode() {
return statusCode;
}
}
is passed over network to the client as following
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Date: Thu, 28 Dec 2006 15:02:00 GMT
Server: Apache Coyote/1.0
Connection: close
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><userSearchResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><userSearchReturn
href="#id0"/></userSearchResponse><multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns1:com.collanos.CUD.network.packages.SimpleResponse"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:CollanosCUDService"><error
xsi:type="xsd:string">noerr</error><param
xsi:type="xsd:string">blablabla2</param><statusCode
xsi:type="xsd:int">15</statusCode></multiRef></soapenv:Body></soapenv:Envelope>
but client has
Received count=noerr, err=noerr, code=15
Deserializer registered as
qname = new
QName("urn:CollanosCUDService",SimpleResponse.class.getCanonicalName());
call.registerTypeMapping(SimpleResponse.class, qname, new
BeanSerializerFactory (SimpleResponse.class, qname), new
BeanDeserializerFactory(SimpleResponse.class, qname));
The latest release is used.
Any quick solution?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]