hello,
i want to test my service web i write this class to call my method appel: - import projetd.MagasinServicesStub.ListeMagasinProcheDeResponse;
-
import java.rmi.RemoteException;
-
public class ServiceTest {
-
public static void main(String[] args) {
-
// TODO Auto-generated method stub
-
MagasinServicesStub stub=new MagasinServicesStub();
-
ListeMagasinProcheDeResponse res=stub.ListeMagasinProcheDe(49.894593,2.298256);
-
System.out.println("Counter: "+res.get_return());
-
}
-
-
}
-
but he signe error :Exception in thread "main" java.lang.Error : Unresolved compilation problem:
The method ListeMagasinPro cheDe(MagasinSe rvicesStub.List eMagasinProcheD e) in the type MagasinServices Stub is not applicable for the arguments (double, double)
at projetd.Service Test.main(Servi ceTest.java:8)
why i test with eclipse
thanks
1 1621
in an old post a week ago you defined "public static String getMagasinProch e(double lat,double lon)"
and then somehow it seems you changed it to "public static String ListeMagasinPro cheDe(double lat,double lon)" according to the last listing inside the same post. This is bad naming and worse than before, the method should start with "l" (lowercase "L" of "(L)iste"). Class names start with capital letters, but not method names! Just stick to the coding standards and most errors go away.
Anyway, the compiler complains that you pass two double numbers into the method, but the method defined doesn't support them, which is strange because you defined them correctly. There should be no error. The only way this error is caused I can think of are 3 ways:
1.) You did not compile your source code after the change
2.) you did not save it after the change, so the name reverted back to the old one.
3.) You changed this method again and deleted or replaced the "double lat,double lon" arguments.
So just double-check your method, or better, post it here again.
By the way, still using French names in your program everywhere? You did not take my advice I gave before in the old post, to use English only? Well, it took me a long time to explain to you why you should. If you don't want to take the advice, then you should not be surprised that nobody answers your questions.
Even repeatingly posting "please answer my question" would not help. If you want more people answer your questions, then just describe the problem more precisely and make it easier for others to understand the code! (Sorry for being so rude, but it's the truth. I just want to prevent you from learning it the hard way later on). In all companies I worked for the Quality-Assurance team would never accept source code written in French or Chinese or Arabic or whatever other language. If you just develop source code for yourself for learning purposes, that means source code that will never go to production and will never be seen by other programmers, it's ok to use only French and make no comments inside. Otherwise not.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Prasad |
last post by:
Hi,
I am writing a service which takes a long time to stop after the OnStop
call is given by the Services Snap-in. The problem is I cannot cut down on
the time that it takes to Stop. The Service snap-in gives me the error
saying that the service did not respond to the Stop call in a timely
fashion. So is there any method by which I can get around this problem.
Thanks
Prasad
|
by: Clint |
last post by:
Hey all -
I'm having a really confusing problem concerning a web service. Right
now, I have an application that needs to call a web service that does
nothing but return "true" (this will obviously change once the
program's fully built to actually do something, but for testing, it
works).
The only code I added to the service is below:
|
by: grbyte |
last post by:
hi,
I develop with Visual Studio .NET and I usually know the web service to
call, and y make a web reference and my problems finish.
But whar I'm trying to do now is to call a web method with no idea of which
is the web service, and which is the method to call. I say, I want to take
this data from a table, and without a previous reference, install the object
and call to a method of this web service.
|
by: Stephen Barrett |
last post by:
I have read many threads related to async fire and forget type calls, but
none have addressed my particular problem.
I have a webpage that instantiates a BL object and makes a method call. The
BL object method actually sets up a delegate and calls a private method
asynchronously and immediately returns back to the web page.
The problem I am having is that the async call never happens. I added a
quick logging call immediately as the...
|
by: Joe |
last post by:
Hello All:
I have an executable that makes several asynchronous calls to a web service.
The executable increments a counter for each async Web service call and
decrements the counter whenever the call returns. When the counter == 0
(i.e. all calls have returned), I do some clean up and close down the
executable.
What if all of the calls don't return? What can I do if five async calls
are made and four come back. My current app...
| |
by: BLUE |
last post by:
I've to call 2 web method from time to time so that the web service will do
cleanup and sync jobs on a database.
These methods can be called once every X days where X >= Y for the sync
method and X >= Z Y for the cleanup method with Y and Z specified by the
user in the app.config file.
Is it best to create a web service client app and schedule it with Windows
Scheduler or to create a web service client Windows Service that will use a...
|
by: =?Utf-8?B?Y2hlbmRyaWNrcw==?= |
last post by:
I have a C# winforms application that makes periodic web service calls in
background thread to my web service server. These calls work fine almost all
the time but on rare occassions the web service method call will never return
and the entire application will freeze, even though the call is being made on
its own background thread, not the main UI thread.
Does anyone know any reason why a particular web service method call would
cause my...
|
by: plork |
last post by:
hi all i'm calling a web service method and can get it's results just
fine however i want to grab the repsonse message from the call
is anyone able to tell me how i do this?
results = service.getMethod(a, b, c, d)
then iterating through
for (int i = 0; i < results .Length; i++)
|
by: =?Utf-8?B?RGFuaWVs?= |
last post by:
Hi,
I have a winform client which consumes a WCF service. I have a single
service client(proxy) at the winform side, but spread the service calls into
multiple threads so that they can do works concurrently. My confusion is, as
all threads share the same proxy, will one thread block another while calling
a long running service? Is this related to the service concurrent
configuration?
Thanks.
|
by: jojoba |
last post by:
Hello to all!
I have a fairly simple webservice running in asp.net ajax under c# (vs
2008).
I built the service and it runs just dandy when i test it by itself in
visual studio.
However, to make it work, i had to break up the webmethod into the
BeginXXX, EndXXX model
as per http://msdn2.microsoft.com/en-us/library/aa480516.aspx
But now, i can no longer call this method from javascript (since to
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |