facebook

Exception while using XFire Client Code

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

    Kuls
    Member

    Please find my client code below.

    public static void main (String args []) {

    SequenceRetrieveClient client = new SequenceRetrieveClient();

    SequenceRetrievePortType wSTestPortType = client.getSequenceRetrieveHttpPort();

    try{
    System.out.println(“Sequence String :”+ wSTestPortType.getSequenceString(“15386”));
    } catch (Exception e) {
    e.printStackTrace();
    }

    }

    I got below exception

    Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/commons/httpclient/Credentials
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:108)
    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 $Proxy12.getSequenceString(Unknown Source)
    at com.pfizer.ri.sequenceapi.service.SequenceRetrieveClient.main(SequenceRetrieveClient.java:98)

    I am using MyEclipse 6.0.
    Any help would be appreciated.

    Thanks,
    Kuls

    #285499 Reply

    Loyal Water
    Member

    Kuls,
    Did you generate the client using MyEclipse ?

    Have you cross posted your query on the XFire forums as well?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Exception while using XFire Client Code

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