You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ghost Rider <gr...@gmail.com> on 2009/02/19 15:23:38 UTC

Errors in client side code while invoking a service

Hi Guys:

I am getting an error while trying to run the below client code....Can u
guys plz help me out......

/***********file name is SFR_Client.java **********/

package com.luc.vqip.ws.v1_0;

import com.luc.vqip.ws.v1_0.VQIPManagerServiceStub.AddDelUpdRequest;
import com.luc.vqip.ws.v1_0.VQIPManagerServiceStub.AddDelUpdResponse;
import com.luc.vqip.ws.v1_0.VQIPManagerServiceStub.SessionHeader;
import com.luc.vqip.ws.v1_0.VQIPManagerServiceStub.LoginRequest;

import java.util.*;
import java.lang.reflect.Method;
import java.net.*;
import java.io.*;
import java.rmi.RemoteException;

public class SFR_Client 
{
    private static VQIPManagerServiceStub clientStub=null;

	public static void main(String[] args)
	{
		System.out.println("Dude Kya re");

			try{
				clientStub = new
VQIPManagerServiceStub(null,"http://135.250.34.133:8080/axis2/services/VQIPManagerService");
			}
			catch(Exception ex)
			{
			System.out.println("ERROR: Could not establish server connection: " +
ex.getMessage());
			}

		try
		{
		LoginRequest authinfo =  new LoginRequest();
	    
		SessionHeader ses = clientStub.VQIPManager_login(authinfo);

		AddDelUpdRequest req = new AddDelUpdRequest();
		req.setEchoString("echo! ... echo!");
		AddDelUpdResponse kya = clientStub.VQIPManager_addDelUpd(req,ses);
		System.out.println("Dude Check out the result"+kya.getEchoString());
		}
		catch (Exception e)
		{
			System.out.println("Dude Lot of erros");
			e.printStackTrace();
            System.out.println("\n\n\n");
		}
	}
}

when try to run the client program...it shows an exception in line bolded
above...and the below error msg.


Exception in thread "main" java.lang.NoSuchMethodError:
com.lucent.vqip.ws.v1_0.VQIPManagerServiceStub.VQIPManager_login(Lcom/luc/vqip/ws/v1_0/VQIPManagerServiceStub$LoginRequest;)Lcom/luc/vqip/ws/v1_0/VQIPManagerServiceStub$SessionHeader;
        at com.lucent.vqip.ws.v1_0.SFR_Client.main(SFR_Client.java:46)

-- 
View this message in context: http://www.nabble.com/Errors-in-client-side-code-while-invoking-a-service-tp22101523p22101523.html
Sent from the Axis - User mailing list archive at Nabble.com.