Results 1 to 4 of 4
  1. #1
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    162
    Rep Power
    6

    Default iwant to create the webservice with notpad how not by the IDE how what all necessary

    i had created the java file
    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
    	}
    }
    and i use the axis2-1.5.1 is in my D:\
    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

  2. #2
    al_Marshy_1981 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Waterford, Ireland
    Posts
    748
    Rep Power
    5

    Default

    run hello world from notepad

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,873
    Rep Power
    25

    Default

    to start a webservices program
    That is a very large and general topic. You need to specify what part of it you want to do.
    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?

  4. #4
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    162
    Rep Power
    6

    Default

    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

  1. Error on consuming webservice
    By lzoratto in forum CLDC and MIDP
    Replies: 0
    Last Post: 06-08-2010, 02:51 PM
  2. servlet and webservice
    By fhenix44 in forum Java Servlet
    Replies: 1
    Last Post: 01-15-2009, 09:59 PM
  3. WebService Client
    By pravin2008 in forum NetBeans
    Replies: 3
    Last Post: 07-23-2008, 02:48 PM
  4. Webservice ain't working?
    By marcelman in forum Networking
    Replies: 0
    Last Post: 08-10-2007, 03:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •