Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
emedia
Post subject: Problem with Webservice client  PostPosted: Aug 06, 2008 - 09:11 PM



Joined: Jul 14, 2008
Posts: 2

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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Problem with Webservice client  PostPosted: Aug 07, 2008 - 03:30 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

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.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
ard
Post subject: RE: Problem with Webservice client  PostPosted: Aug 13, 2008 - 01:17 PM



Joined: Aug 13, 2008
Posts: 1

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?
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Problem with Webservice client  PostPosted: Aug 18, 2008 - 09:06 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

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

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits