0 Replies Latest reply on Jul 19, 2007 4:25 PM by Eric Ray

    Configured DII Not Working

    Eric Ray Novice

      JBoss 4.0.5.GA/JBossWS 1.0.3

      This code from the User's Guide does not work. Any ideas?

      String endpoint = "http://redbull:8080/ping/Ping";
       String namespace = "http://ls.vicor.com/ws";
      
       ServiceFactory factory = ServiceFactory.newInstance();
       URL wsdlLocation = new URL(endpoint + "?wsdl");
       QName serviceName = new QName(namespace, "Ping");
       ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName);
       Call call = service.createCall();
      
       QName operationName = new QName(namespace, "Ping_execute");
       call.setOperationName(operationName);
      
       String hello = "Hello";
       Object retObj = call.invoke(new Object[]{hello});


      wsdl..

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions name='Ping' targetNamespace='http://ls.vicor.com/ws' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://ls.vicor.com/ws' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
       <types>
       <schema elementFormDefault='qualified' targetNamespace='http://ls.vicor.com/ws' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://ls.vicor.com/ws' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
       <complexType name='execute'>
       <sequence>
       <element name='message' nillable='true' type='string'/>
       </sequence>
       </complexType>
       <complexType name='executeResponse'>
       <sequence>
       <element name='result' nillable='true' type='string'/>
       </sequence>
       </complexType>
       <element name='execute' type='tns:execute'/>
       <element name='executeResponse' type='tns:executeResponse'/>
       </schema>
       </types>
       <message name='Ping_execute'>
       <part element='tns:execute' name='parameters'/>
       </message>
       <message name='Ping_executeResponse'>
       <part element='tns:executeResponse' name='result'/>
       </message>
       <portType name='Ping'>
       <operation name='execute'>
       <input message='tns:Ping_execute'/>
       <output message='tns:Ping_executeResponse'/>
       </operation>
       </portType>
       <binding name='PingBinding' type='tns:Ping'>
       <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
       <operation name='execute'>
       <soap:operation soapAction=''/>
       <input>
       <soap:body use='literal'/>
       </input>
       <output>
       <soap:body use='literal'/>
       </output>
       </operation>
       </binding>
       <service name='Ping'>
       <port binding='tns:PingBinding' name='PingPort'>
       <soap:address location='http://redbull:8080/ping/Ping'/>
       </port>
       </service>
      </definitions>
      



      Is there something more I need to do. I get the following error:
      15:13:30,661 ERROR [PingApplicationInstanceBean] org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://ls.vicor.com/ws}execute
      15:13:30,662 ERROR [STDERR] org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://ls.vicor.com/ws}execute
      15:13:30,662 ERROR [STDERR] at org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataDoc(JSR109MetaDataBuilder.java:451)
      15:13:30,662 ERROR [STDERR] at org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuilder.java:200)
      15:13:30,662 ERROR [STDERR] at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaDataInternal(JSR109ClientMetaDataBuilder.java:208)
      15:13:30,662 ERROR [STDERR] at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:126)
      15:13:30,662 ERROR [STDERR] at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82)
      15:13:30,662 ERROR [STDERR] at org.jboss.ws.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:96)
      15:13:30,662 ERROR [STDERR] at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
      15:13:30,663 ERROR [STDERR] at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
      15:13:30,663 ERROR [STDERR] at com.vicor.lm.server.ping.PingApplicationInstanceBean.pingApplications(PingApplicationInstanceBean.java:50)
      15:13:30,663 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
      15:13:30,663 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:13:30,663 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:13:30,663 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      15:13:30,663 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      15:13:30,663 ERROR [STDERR] at com.vicor.lm.server.interceptors.LogTraceInfo.logTraceInfo(LogTraceInfo.java:19)
      15:13:30,663 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
      15:13:30,663 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:13:30,663 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:13:30,663 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
      15:13:30,663 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
      15:13:30,663 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
      15:13:30,663 ERROR [STDERR] at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
      15:13:30,663 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
      15:13:30,663 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
      15:13:30,663 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
      15:13:30,663 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
      15:13:30,663 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:13:30,663 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:13:30,663 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
      15:13:30,663 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      15:13:30,663 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,663 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      15:13:30,663 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,663 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
      15:13:30,664 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,664 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
      15:13:30,664 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
      15:13:30,664 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,664 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      15:13:30,664 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,664 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      15:13:30,664 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,664 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
      15:13:30,664 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
      15:13:30,664 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,664 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      15:13:30,664 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,664 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      15:13:30,664 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,664 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211)
      15:13:30,664 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
      15:13:30,664 ERROR [STDERR] at $Proxy134.pingApplications(Unknown Source)
      15:13:30,664 ERROR [STDERR] at com.vicor.lm.server.ping.PingTimerBean.timerExpired(PingTimerBean.java:55)
      15:13:30,664 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
      15:13:30,665 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:13:30,665 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:13:30,665 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      15:13:30,665 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      15:13:30,665 ERROR [STDERR] at com.vicor.lm.server.interceptors.LogTraceInfo.logTraceInfo(LogTraceInfo.java:19)
      15:13:30,665 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
      15:13:30,665 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:13:30,665 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:13:30,665 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
      15:13:30,665 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
      15:13:30,665 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
      15:13:30,665 ERROR [STDERR] at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
      15:13:30,665 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
      15:13:30,665 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:113)
      15:13:30,665 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
      15:13:30,666 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
      15:13:30,666 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:13:30,666 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:13:30,666 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
      15:13:30,666 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      15:13:30,666 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,666 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      15:13:30,666 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,666 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
      15:13:30,666 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,666 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      15:13:30,666 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
      15:13:30,666 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,666 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      15:13:30,666 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,666 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      15:13:30,667 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,667 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
      15:13:30,667 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
      15:13:30,667 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,667 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      15:13:30,667 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,667 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      15:13:30,667 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      15:13:30,667 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessContainer.java:150)
      15:13:30,667 ERROR [STDERR] at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:524)
      15:13:30,667 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)
      15:13:30,667 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)