Win a copy of Terraform in Action this week in the Cloud forum!

Baba prakash

Greenhorn
+ Follow
since Jan 14, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Baba prakash

Hi,
JAX-WS is extension to JAX-RPC introduced in JEE1.5. And from Java1.6 onwards We can develop JAX-WS webservices using JDK itself. JAX-WS internally uses JAXB and SAAJ APIS.


What is the most widely used way of generating Webservices ( Axis server tools, or Java's own wsgen tool or any other )?

Ans: Mostly we use AXIS, CXF webservice engines to generate webservices.

Is it necessary to be proficient at XML, JAXP, JAXB, SAAJ, JAXR? I know a little bit of JAXP and while writing the example program I saw It was not needed explicitely ,things were done at the background by the tools.
Ans: It is good to have some knowledge on above mentioned APIs to understand JAX-WS.

Is there a way to create the services and generating clients be done in a vendor independent way?
Yes we can do it. From Java1.6 onwards to create webservices we dont require any webservice frameworks.JAX-WS is part of JDK it self.


Thanks,
Babaprakash


10 years ago
Hi,
I realised mistake. I created new Dynamic web project instead of Java Project in Eclipse. Now i am able to execute example mentioned.

Thanks for reply.
11 years ago
Hi,
I am new to Spring Framework. I am learning Spring by using Spring in Action Book 2nd Edition (Spring 2.0). While Executing example present in Chapter 01 in eclipse IDE i am getting Error as The requested resource is not available. I tried all the ways but i could not resolve it. Please help me.
I am using eclipse 3.4.2,JDK 1.5.

Things i did in eclipse:-
1.Created Dynamic web project with name "Hello"
2.Created package with name "com.springinaction.chapter01.hello", under this package i have created three .java files.

GreetingService.java


GreetingServiceImpl.java


HelloApp.java


3. Created file hello.xml with following content. I placed this file under the folder "war"

4.I have down loaded all spring related Jars and added to the classpath.

Attached Screen shot of Directory Structure for reference.

Please help me to resolve this issue.
Thanks in advance.

11 years ago
Thanks for your replies.
I realised my mistake.

I changed the form.Now it is working fine for me.
11 years ago
Hi all,
I am learning Servlets and JSP. I have tried following example.

MyJsp page:-

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form method="GET" action="/TestServlet2">
User Name:<input type="text" name="username"><br>
Pass Word:<input type="text" name="password"><br>
<input align="middle" type="button" value="Submit">
</form>
</body>
</html>

ServletCode:-
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out=response.getWriter();
String username=request.getParameter("username");
String password=request.getParameter("password");
out.println(username);
out.println("<br>");
out.println(password);
}

Web.xml:-
<servlet>
<description></description>
<display-name>TestServlet2</display-name>
<servlet-name>TestServlet2</servlet-name>
<servlet-class>org.baba.prakash.TestServlet2</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet2</servlet-name>
<url-pattern>/TestServlet2</url-pattern>
</servlet-mapping>

I tried running this code.But i am not able to print username and password.I tried all other examples.But did not work for me.Please help me to resolve the issue. I am able to see login page with User name and password. But when i click on Submit button i am not seeing any response.
11 years ago