I'm using JBoss 4.0.4CR2 with EJB3 enabled. My webservice has a method using a custom type (a JavaBean on the server side). The client throws a stack trace (see below). What should I do? What's going wrong?
The WSDL looks as follows: | <?xml version="1.0" encoding="UTF-8"?> | <definitions name='KundenverwaltungWSBeanService' targetNamespace='http://ws.hska.de/jaws' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://ws.hska.de/jaws' xmlns:xsd='http://www.w3.org/2001/XMLSchema'> | <types> | <schema elementFormDefault='qualified' targetNamespace='http://ws.hska.de/jaws' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://ws.hska.de/jaws' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> | <complexType name='KundeWS'> | <sequence> | <element name='art' nillable='true' type='string'/> | <element name='id' type='long'/> | <element name='nachname' nillable='true' type='string'/> | <element name='rabatt' type='int'/> | <element name='vorname' nillable='true' type='string'/> | </sequence> | </complexType> | </schema> | </types> | <message name='KundenverwaltungWSBean_deleteKunde'> | <part name='long_1' type='xsd:long'/> | </message> | <message name='KundenverwaltungWSBean_deleteKundeResponse'/> | <message name='KundenverwaltungWSBean_findKunde'> | <part name='long_1' type='xsd:long'/> | </message> | <message name='KundenverwaltungWSBean_findKundeResponse'> | <part name='result' type='tns:KundeWS'/> | </message> | <message name='KundenverwaltungWSBean_findNachname'> | <part name='long_1' type='xsd:long'/> | </message> | <message name='KundenverwaltungWSBean_findNachnameResponse'> | <part name='result' type='xsd:string'/> | </message> | <portType name='KundenverwaltungWSBean'> | <operation name='deleteKunde' parameterOrder='long_1'> | <input message='tns:KundenverwaltungWSBean_deleteKunde'/> | <output message='tns:KundenverwaltungWSBean_deleteKundeResponse'/> | </operation> | <operation name='findKunde' parameterOrder='long_1'> | <input message='tns:KundenverwaltungWSBean_findKunde'/> | <output message='tns:KundenverwaltungWSBean_findKundeResponse'/> | </operation> | <operation name='findNachname' parameterOrder='long_1'> | <input message='tns:KundenverwaltungWSBean_findNachname'/> | <output message='tns:KundenverwaltungWSBean_findNachnameResponse'/> | </operation> | </portType> | <binding name='KundenverwaltungWSBeanBinding' type='tns:KundenverwaltungWSBean'> | <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/> | <operation name='deleteKunde'> | <soap:operation soapAction=''/> | <input> | <soap:body namespace='http://ws.hska.de/jaws' use='literal'/> | </input> | <output> | <soap:body namespace='http://ws.hska.de/jaws' use='literal'/> | </output> | </operation> | <operation name='findKunde'> | <soap:operation soapAction=''/> | <input> | <soap:body namespace='http://ws.hska.de/jaws' use='literal'/> | </input> | <output> | <soap:body namespace='http://ws.hska.de/jaws' use='literal'/> | </output> | </operation> | <operation name='findNachname'> | <soap:operation soapAction=''/> | <input> | <soap:body namespace='http://ws.hska.de/jaws' use='literal'/> | </input> | <output> | <soap:body namespace='http://ws.hska.de/jaws' use='literal'/> | </output> | </operation> | </binding> | <service name='KundenverwaltungWSBeanService'> | <port binding='tns:KundenverwaltungWSBeanBinding' name='KundenverwaltungWSBeanPort'> | <soap:address location='REPLACE_WITH_ACTUAL_URL'/> | </port> | </service> | </definitions> | And now the stack trace: | org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://ws.hska.de/jaws}KundeWS | at org.jboss.ws.metadata.JSR109MetaDataBuilder.buildParameterMetaDataRpc(JSR109MetaDataBuilder.java:314) | at org.jboss.ws.metadata.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuilder.java:189) | at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaDataInternal(JSR109ClientMetaDataBuilder.java:213) | at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:89) | at org.jboss.ws.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:89) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) | at de.hska.ws.client.Main.main(Main.java:22) | --- Nested Exception --- | org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://ws.hska.de/jaws}KundeWS | at org.jboss.ws.metadata.JSR109MetaDataBuilder.buildParameterMetaDataRpc(JSR109MetaDataBuilder.java:314) | at org.jboss.ws.metadata.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuilder.java:189) | at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaDataInternal(JSR109ClientMetaDataBuilder.java:213) | at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:89) | at org.jboss.ws.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:89) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) | at de.hska.ws.client.Main.main(Main.java:22) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940136#3940136 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940136 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user