473,385 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to call web method in application?

Hi,
I have created java web application.
I want to call the setName() method in java application.
how is call web method in application?.

package sv;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService()
public class MyService {

@WebMethod(operationName = "setName")
public String setName(@WebParam(name = "name")
String name) {

return "my string is "+ name;
}
}
Jan 4 '11 #1
0 1320

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: kathy | last post by:
How to call external application in .NET? For example, how to call paint.exe in VB.NET program?
4
by: kcmagg | last post by:
Mornin, group. Long-time usenet lurker, 1st time poster to this group. If I am in the wrong ballpark, please point me in the right direction :-) I work in a call center and what we are looking...
0
by: Tim Pham via DotNetMonster.com | last post by:
Hi, I'm working on the project that use a printer driver (myPrinter) to call my application. Actually, I created another application and listen to that event. Now I don't how to use this service...
1
by: vikas.khengare | last post by:
Hi Friends.... I have AJAX code which giving "Permission denied to call method XMLHttpRequest.open" error. This error fired by FireFox 1.0 and IE 6 and with Tomacat 5.x. This code work very...
0
by: kDineshBabumca | last post by:
Hi , I am new to webservices. I have one application in java. That application is run in Jboss server (UNIX OS). From that I want to call another application which is developed in Dot net...
1
by: Charlie | last post by:
I am trying to make an XMLHttpRequest which violates the default "same- origin"policy in Firefox. I checked the archives and found a method that should work but it does not. Below is the test code...
11
by: gautamga | last post by:
Hi All i have created the script which calls method from other script lib and while executing i get and error Can't call method "prepare" on an undefined value at...
0
by: LTCCTL | last post by:
Hi All, I have written an application for the SmartPhone using Windows Mobile 5. I want to call the application/function i.e Launch the application/function when a specific button/key is...
2
by: Klaudiusz Bryja | last post by:
Hi, I need to get event name which call method. How do I do this? For example - I have button with subscribed Click event and e.g. GotFocus. For both this events I have the same method which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.