1 Reply Latest reply on Nov 15, 2006 8:01 PM by Thomas Diesler

    Webservices client and Dynamic Invocation Interface.

    Elangovan Kulandaivelu Newbie


      I used Dynamic Invocation Interface (DII) in web services client.

      Configuration Details:

      1. JBOSS portal 2.4: using this portal, i'm performing web services invocation. The web services is running in another machine using webobjects framework.

      2. Please refer the below client code i used,

      URL url = new URL(urlstr);

      String ns = "http://vg0601f-dhcp147.apple.com:9999/cgi-bin/WebObjects/ProvisioningWebServices.woa/ws/ProvisioningWS";
      QName qname = new QName(ns, "ProvisioningWS");

      QName port = new QName(ns, "ProvisioningWS");

      QName operation = new QName(ns,"selectAuthorizedItemsForMerlin");

      ServiceFactory factory = ServiceFactory.newInstance();

      Service service = factory.createService(url, qname);

      Call call = service.createCall(port, operation);
      System.out.println("After gettting the call "+call);

      Object o = call.invoke(new Object[] {argument});

      I got the o/p until "After gettting the call" and call object also is not null. But while executing the invoke method call.invoke(new Object[] {argument}) , i'm getting the below error:

      15:27:33,586 ERROR [STDERR] java.lang.ClassCastException: org.jboss.ws.soap.SOAPMessageImpl
      15:27:33,589 ERROR [STDERR] at com.sun.xml.rpc.client.dii.CallInvokerImpl._postSendingHook(CallInvokerImpl.java:305)
      15:27:33,589 ERROR [STDERR] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
      15:27:33,589 ERROR [STDERR] at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)
      15:27:33,590 ERROR [STDERR] at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:492)
      15:27:33,590 ERROR [STDERR] at org.jboss.rpc.WSClient.WSClient.getWSOutput(WSClient.java:39)
      15:27:33,590 ERROR [STDERR] at org.jboss.porlet.iproject.iprojectportlet.doView(iprojectportlet.java:25)
      15:27:33,590 ERROR [STDERR] at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167)
      15:27:33,590 ERROR [STDERR] at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)

      PLease help me to resolve this issue.