Hi All,

I've spent some time trying to solve this problem but without success.

I have a JSP page that operates as a SOAP client for a remote SOAP service.
Up until now both the client (JSP page) and the SOAP service were implemented using 
Apache SOAP (current version) and everything worked fine. The team implementing the 
SOAP service provide me with a JAR library with the classes used and appropriate 
serializer classes.

Now the latest version of the service is implemented using Axis and I've received a 
new jar library.
I don't really want to change my JSP page to use Axis to talk to the service and I 
don't think it should be necessary. But I do want to use the JAR library supplied by 
the service team so that we both use the same classes as they are subject to change.

Among the changes in the new version is the implementation of get/set methods for all 
class variables so that BeanSerializer can be used for Serialization. I've done the 
changes to my JSP code and it seems to work except for de-serialization returned int 
variables.

The error message I get is 
"
targetException=java.lang.IllegalArgumentException: No mapping found for 
'http://schemas.xmlsoap.org/soap/encoding/:int' using encoding style 
'http://schemas.xmlsoap.org/soap/encoding/'.
"
I've tried various things including adding this to the mappingRegistry

            //Serializer for  int
            org.apache.soap.encoding.soapenc.IntDeserializer id
                = new org.apache.soap.encoding.soapenc.IntDeserializer();

            //create a qname object
            QName qn_int = new QName("http://schemas.xmlsoap.org/soap/encoding/";, 
"int");

            //map the type
            smr.mapTypes(Constants.NS_URI_SOAP_ENC, qn_int, null, null, id);


But the error message is always the same.
Does anyone have an idea what the problem might be?
I have started on an Axis version of my JSP page but I think it should work with 
Apache Soap too.

Is there any other information I could supply to help solve the problem?

Thanks
Con

Reply via email to