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?