0
   

java jws

 
 
Sat 5 Jun, 2010 11:24 pm
Here is my assignment:

# Create a Java class called AccountService that contains a single method called public float getAccountBalance(String username, String password)
that returns a hard-coded fictitious account balance.

# Add System.out.println statements to output the
username and password to the JBoss or Tomcat output console.

# Convert your Java class to a web service by copying it into your

<tomcat>\webapps\axis.war subfolder.

# Verify your Axis installation and Java web service creation using

http://localhost:8080/axis/AccountService.jws


# View the wsdl for your AccountService using

http://localhost:8080/axis/AccountService.jws?wsdl

# Execute your AccountService using

http://localhost:8080/axis/AccountService.jws?method=getAccountBalance&username=Greg&password=biffle
and view the output console to verify that the username and password
values were received by the AccountServer.

I have this code:
*****************************************************************
public class AccountService
{

public float getAccountBalance(String username, String password)
{
return 213.57f;
}

public String getUsername(String username)
{
System.out.println("Username " + username);
return username;
}

public String getPassword(String password)
{
System.out.println("Password " + password);
return password;
}
}
*************************************************************
but it does not show the username and password, what can I do?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 2,473 • Replies: 0
Topic Closed
No top replies

 
 

Related Topics

Disable Java? - Discussion by engineer
Ubuntu, Java and Aptana Studio 3 - Question by Ken Dawson
Java Question,time converter. - Question by Loh Jane
unescape javascripts - Question by happy5
Java Programming Question? - Question by evang14
What is introspection ? - Question by Kathleenortan
 
  1. Forums
  2. » java jws
Copyright © 2019 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 10/19/2019 at 04:36:15