- This topic has 1 reply, 2 voices, and was last updated 16 years, 5 months ago by Loyal Water.
-
AuthorPosts
-
KulsMemberPlease 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
Loyal WaterMemberKuls,
Did you generate the client using MyEclipse ?Have you cross posted your query on the XFire forums as well?
-
AuthorPosts