473,664 Members | 3,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to call a web service from a jsp in weblogic

14 New Member
Hi,
I have created a web service in weblogic. I want to call that web service from my jsp. Url of the web service is "http://localhost:7001/myFirstWS/services/HelloWorld". It contains an operation called greetHello() which displays "Hello World" on the screen.

The client classes for the web service are -
HelloWorld.java
HelloWorldServi ce.java
HelloWorldServi ce_Impl.java
HelloWorld_Stub .java

Can anyone please help me out with the code to call the web service from the jsp.

Thanks in advance,
Tiijnar
Aug 7 '09 #1
1 4390
Dököll
2,364 Recognized Expert Top Contributor
Hey there!

You should localhost is specific to only your pc or machine you are running you program, we would not have a way to reach it from here.

Also, posting class names will not help us help you. We eat and breath code here, post that beautiful code and stay tuned:-)

Save you the trouble of waiting...

How's that for a deal?
Nov 20 '09 #2

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

Similar topics

0
2125
by: Jokeline | last post by:
=====PRANK CALL===== How to use this service: 1. Choose a Prank from the list below 2. Make sure you have the telephone number of your chosen target 3. Call 0906 403 8796 4. Listen in as the computer dials out to your victim!
0
1205
by: d.gallone | last post by:
Hello, I'm using VB .NET 2003 and I want to add a web reference at run time. I've a app.config file where the web references are defined, but how to call the service method defined in the wsdl ? Thanks for your help, David GALLONE
2
2255
by: shyam | last post by:
I have a C++ COM based windows service which have more than 30k lines of code and which is stablized over years. We need to take the advantage of the ..NET framework for this project, especially the GUI for this service and the other windows non gui .NET clients. What's the best migaration pattern for us considering not to rewrite the thousands of lines of code. The question i have are the follows.
1
2631
by: Scott Yen | last post by:
Hi, I'm using the following Axis java client to invoke a .Net web service hosted my localhost. Although the username and password is set on the "call", client gets (401) Access Denied" exception. private static void testTest() { try { String endpoint = "http://localhost/WebService1/Service1.asmx"; String method = "Test";
3
2502
by: Grant Schenck | last post by:
Hello, I have a Windows Service developed in C# .NET. I'm making it a remote server and I can, via an IPC Channel, expose methods and call them from a client. However, I now want my remoted object to be able to invoke a method on my server object and given that the object is built in a C# Class DLL shared between the client and server I'm not sure how to get access to the server object from the remoted object. So, what techniques...
2
5039
by: Hakan Örnek | last post by:
Hi , I want to parameter passing to my windows sevice. I call service commands like this ; '------------------------------------------------------------ Dim sc As ServiceController sc = New ServiceController("ProsetLogServices") sc.MachineName = "." If sc.Status = ServiceControllerStatus.Stopped Then sc.Start() End If
1
2117
by: irvine4ever84 | last post by:
I have a notepad,which having a data store into it and then overwrite by a new data every 1 second constantly. I want to read the data (which is the total bandwidth usage of my whole WLAN)which changing every 1 second. LAN. This is basically how is the idea: 1) Read the BW data. 2) Set a Bandwidth limit as reference level (eg: 1000000 Mbps) 3) Compare the BW data I read to the BW limit, if exceed the limit,I
6
1802
Sakalicek
by: Sakalicek | last post by:
Hello. I have problem with network credentials on my Windows service. I have 2 PCs. On the first PC I create controller which calls windows service on the other PC. Always I got InvalidCredentialException when I try to call service. Coud you please help me to fix it? I have read something about it and also tried something, but it doesnt help much.
6
18228
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++)
0
2432
by: Siyodia | last post by:
This is a java program which i need to run facing compilation error Its consuming a third party web service method I have the supported files(folder) which contain necessary class files org/apache/axis The following is what i need to do but am unable to do //////////////////////////////////////////////////////////////////////////////////////////// set classpath where the below jars are located.... axis.jar commons-discovery.jar
0
8437
marktang
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...
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8861
Oralloy
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...
0
7375
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5660
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();...
0
4185
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1759
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.