facebook

Problem with Webservice client

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #288025 Reply

    emedia
    Member

    Then, I execute the application, and I get this exception:

    Exception in thread “AWT-EventQueue-0” org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Index: 1, Size: 1
    org.codehaus.xfire.fault.XFireFault: Index: 1, Size: 1
    at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
    at org.codehaus.xfire.client.Client.onReceive(Client.java:410)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
    at org.codehaus.xfire.client.Client.invoke(Client.java:336)
    at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy2.ObtengoDatosCampanya(Unknown Source)
    at com.emedia.view.connection.WebServiceAuxiliarClient.ObtengoDatosCampanya(WebServiceAuxiliarClient.java:39)
    at com.emedia.view.controller.EmediaViewSwingController.loggin(EmediaViewSwingController.java:81)
    at com.emedia.view.screens.EmediaViewScreenPassUser.btnAcceptActionPerformed(EmediaViewScreenPassUser.java:302)
    at com.emedia.view.screens.EmediaViewScreenPassUser.access$11(EmediaViewScreenPassUser.java:299)
    at com.emedia.view.screens.EmediaViewScreenPassUser$12.actionPerformed(EmediaViewScreenPassUser.java:194)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.LinkedList.entry(Unknown Source)
    at java.util.LinkedList.get(Unknown Source)
    at java.util.Collections$UnmodifiableList.get(Unknown Source)
    at org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:187)
    at org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:51)
    at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
    … 39 more

    On the other hand, If I make the webService client with Eclipse Europa for JavaEE, all is ok… but i prefered too much Myeclipse!!!

    Is there any solution?

    Thanks.

    Cheers.

    #288032 Reply

    Loyal Water
    Member

    If you run through this tutorial, are you able to run the client?
    http://www.myeclipseide.com/documentation/quickstarts/webservicesclient/

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #288164 Reply

    ard
    Member

    I am using MyEclipse Enterprise Workbench Version: 6.5.1 GA. On creating a web service client using a wsdl which is in location “http://192.168.52.129:8084/services/ws/userprofile?wsdl” there is a validation error coming after which the client code is also not getting generated properly.

    What can be the possible error?

    #288345 Reply

    Loyal Water
    Member

    Validation error suggests that the WSDL is not well formed. You need to check you WSDL and make sure it has no errors.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Problem with Webservice client

You must be logged in to post in the forum log in