Results 1 to 4 of 4
- 07-29-2010, 07:05 AM #1
iwant to create the webservice with notpad how not by the IDE how what all necessary
i had created the java file
and i use the axis2-1.5.1 is in my D:\Java Code:package com.xxx; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class Webserver { @WebMethod(action="addNumbers") public int addNumbers(int number1, int number2) throws AddNumbersException { if (number1 < 0 || number2 < 0) { throw new AddNumbersException( "Negative number cant be added!", "Numbers: " + number1 + ", " + number2); } return number1 + number2; } } package com.xxx; public class AddNumbersException extends Exception { public AddNumbersException(String string, String string2) { // TODO Auto-generated constructor stub } }
so how the java2wsdl file creation has to done
by ur reply that part i had done like this
iwant to create the webservice with notpad how not by the IDE
what is the problem
mycomputer>>>properties>>> Environmental Variable
AXIS2_HOME====D:\axis2-1.5.1
JAVA_HOME=====C:\Program Files\Java\jdk1.6.0
what is the problem what i has to do
what are steps need for me to start a webservices program .what is the axis,what is cxf ,what is REStful webservices, where i has to put the files to work as a web services
I'm using eclipse in that the webservices project is making as a simple as but i want to do ti with the notepad free from IDE so from where i has to strart
sorry for these foolish question
but please help me
thanks in advance
- 07-30-2010, 12:38 AM #2
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4
run hello world from notepad
- 07-30-2010, 01:43 AM #3
That is a very large and general topic. You need to specify what part of it you want to do.to start a webservices program
What are the parts needed for a webservices program?
Do you have a server? What services does it provide? Is there a database?
Do you know HTML and either how to generate it on the server with jsp or servlets?
Or will you use static html pages?
- 07-30-2010, 05:50 AM #4
hi thanks for the reply
that was the code i done in the note pad and saved as per javac *.java
then how can i get the wsdl file i think wsdl file is necessary for the webservece to run so how can i make that i used axis2-1.5.1>bin and typed java2wsdl ..... but some errors came that i forget to copy then by eclipse i created the wsdl file then again i copy that wsdl to axis bin then typed wsdl2java -uri ....wsdl that created me only two javafile ..stub and -----ServiceCallbackHandler what are these files,if i created the same by eclipse it will crea 4 javafile ....proxy and ....ServiceLocator etc why i cant do that then i stoped working with notpad and done the same with eclipse by following Building a Simple Web Service – A Tutorial but i dont know what all files are creating is there any good sites for me to refer
i exprt the war file and put it in the tomcat's webapps folder and typed the project http://loca........
but i want to now what all classes are buiding and what is the need of each class
please help me if enyone knows these details in detail "sorry for bad english"
thank you
Similar Threads
-
Error on consuming webservice
By lzoratto in forum CLDC and MIDPReplies: 0Last Post: 06-08-2010, 01:51 PM -
servlet and webservice
By fhenix44 in forum Java ServletReplies: 1Last Post: 01-15-2009, 08:59 PM -
WebService Client
By pravin2008 in forum NetBeansReplies: 3Last Post: 07-23-2008, 01:48 PM -
Webservice ain't working?
By marcelman in forum NetworkingReplies: 0Last Post: 08-10-2007, 02:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks