1 Reply Latest reply on May 22, 2006 7:09 AM by Thomas Diesler

    WSException while passing custom object to JSR-181 web-servi

    Max Tomin Newbie

      Hello,

      I have created and deployed the web-service, using JSR-181 annotations. I have not generated any jax-rpc mappings or wsdl definitions, using command-line tools. After deployment, wsdl have became available at "http://localhost:8080/TestEjbLibrary/HelloWorldBean?wsdl", as for mapping - I dont know where to find it.

      When parameters are simple objects (strings etc.) everything ok.
      The problem is, when I try to pass custom object as web-method parameter, it fails with the exception:

      org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://test/jaws}sayHello
       at org.jboss.ws.metadata.JSR109MetaDataBuilder.buildParameterMetaDataDoc(JSR109MetaDataBuilder.java:442)
       at org.jboss.ws.metadata.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuilder.java:193)
       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 Main.testHelloWorldWS(Main.java:42)
       at Main.main(Main.java:31)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
      


      Is it necessary to specify jax-rpc mapping for the client (I mean in JSR-181 annotated web-services)? If yes, how to generate it and how to specify it for the client?

      Thanks for any ideas.