Thomas, Can you explain a little bit more about the mappingURL?
I am trying to write a simple DII client JUnit test. I looked at http://fisheye.jboss.com/viewrep/JBossWS/trunk/src/main/java/org/jboss/ws/jaxrpc/ServiceFactoryImpl.java?r=275 which you posted in another thread and I am trying use code from it to grab a local copy of the jaxrpc-mapping.xml (sitting in the same directory as the JUnit's class file). Here is my code: public void testEchoString() throws Exception { | ServiceFactoryImpl factory = new ServiceFactoryImpl(); | URL wsdlLocation = new URL("http://jbertr1005:8080/jbossTest2/JBossTest2?wsdl"); | ClassLoader cl = Thread.currentThread().getContextClassLoader(); | URL mappingLocation = cl.getResource("jaxrpc-mapping.xml"); | QName serviceName = new QName("http://us.mycompany.com/jbosstest2/1.0", "JBossTest2"); | ServiceImpl service = (ServiceImpl) factory.createService(wsdlLocation, serviceName, mappingLocation); | Call call = service.createCall(); | QName operationName = new QName("http://us.mycompany.com/jbosstest2/1.0", "prescreen"); | call.setOperationName(operationName); | call.setProperty(Call.USERNAME_PROPERTY, "webServiceTestUser"); | call.setProperty(Call.PASSWORD_PROPERTY, "webServicePassword"); | assertFalse(call.isParameterAndReturnSpecRequired(operationName)); | Object retObj = call.invoke(new Object[] { new JBossTest2Request() }); | } However, I am still getting: org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://us.mycompany.com/jbosstest2/1.0}prescreen | 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:207) | at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:122) | at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:78) | at org.jboss.ws.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:96) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:142) | at com.acxiom.us.test.ws.WSTestCase.testEchoString(WSTestCase.java:64) | 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 junit.framework.TestCase.runTest(TestCase.java:154) | at junit.framework.TestCase.runBare(TestCase.java:127) | at junit.framework.TestResult$1.protect(TestResult.java:106) | at junit.framework.TestResult.runProtected(TestResult.java:124) | at junit.framework.TestResult.run(TestResult.java:109) | at junit.framework.TestCase.run(TestCase.java:118) | at junit.framework.TestSuite.runTest(TestSuite.java:208) | at junit.framework.TestSuite.run(TestSuite.java:203) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947851#3947851 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947851 ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
