Apache Soap 2.3.1 complex datatypes
Torven Warnke <[email protected]> Wed, 16 Jun 2004 09:37:07 +0200
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <[email protected]> |
Apache Soap 2.3.1 complex datatypes
Hey there,
i want to get complex datatypes from ther server to the client. The complexe
datatype is an class with name "packagename.test" and getter-setter methods
like an javabean. So i want to use the beanserializer.
I got the following exception:
[SOAPException: faultCode=SOAP-ENV:Client; msg=No mapping found for
'http://schemas.xmlsoap.org/soap/encoding/:packagename.test' using
encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException: No mapping found for
'http://schemas.xmlsoap.org/soap/encoding/:packagename.test' using encoding
style 'http://schemas.xmlsoap.org/soap/encoding/'.]
Client-code:
....
SOAPMappingRegistry smr = new SOAPMappingRegistry();
BeanSerializer beanSer = new BeanSerializer();
smr.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:Test", "urn:Test"), test.class, beanSer,
beanSer);
call = new Call();
call.setSOAPMappingRegistry(smr);
call.setTargetObjectURI("urn:Test");
call.setMethodName("getKlasseTest");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
The Server is deployed with the AdminTool:
ID urn:Test
Scope Application
Provider Type java
Provider Class packagename.test
Use Static Class false
Methods getKlasseTest
Type Mappings [TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=http://schemas.xmlsoap.org/soap/encoding/:packagename.test,javaType=packagename.test,java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
Default Mapping Registry Class
Whats wrong?
Gruß
Torven
--
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info