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.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943731#3943731
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943731
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user