Torven- At first glance it appears that your QName is not constructed correctly if one looks at http://ws.apache.org/soap/docs/apiDocs/org/apache/soap/util/xml/QName.html QName(namespaceURI, localPart)
Here are examples on how to construct QName please visit IBM page at http://www-106.ibm.com/developerworks/webservices/library/ws-soapmap1/#listing6 Genau? Martin ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 3:35 AM Subject: Apache Soap 2.3.1 complex datatypes > 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://s chemas.xmlsoap.org/soap/encoding/:packagename.test,javaType=packagename.test ,java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaC lassName=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 > >