How to Use apt to Generate Artifacts

Hi,
I am new to Web Services and I got stuck trying to follow a simple tutorial. I'd very much appreciate your help. I am following a quick-and-dirty Java web service tutorial (http://www.artima.com/lejava/articles/threeminutes.html, in case you are interested. No need to look at it for my question).
On page 1 we create a java class with 1 method, which accepts a String name and then returns a String "Hello" + name. (full class below)
On page 2, we are asked to "run apt on the Java code" that we created, and that's supposed to generate these artifacts:
HelloServiceImpl.wsdl, schema1.xsd, classes/server/HelloImpl.class, classes/server/jaxrpc/SayHello.class, classes/server/jaxrpc/SayHelloResponse.class, classes/server/jaxrpc/SayHello.java, classes/server/jaxrpc/SayHelloResponse.java
And I can't get that part to work. What I am trying to do in command line is apt smallserver.java. Even though apt is defined, this code doesn't work.
The error message I get is "smallserver.java:4: @javax.jws.Webservice annonated classes that do not belong to a package must have the @javax.jws.Webservice.targetNamespace element. Class: smallserver"
The class I wrote:
import javax.jws.*;
@WebService
public class smallserver{
public String sayHello(String name){
return "Hello " + name; }}Thank you very much for your time.
Edited by: Yasemin_Gokce on Jul 3, 2009 5:46 AM
Edited by: Yasemin_Gokce on Jul 3, 2009 5:48 AM
Edited by: Yasemin_Gokce on Jul 3, 2009 5:48 AM - minor changes

mjsu wrote:
I have an iphone 5 and I'm trying to use my apt entrance door intercom. When guests visit and call me using the intercom, I am meant to press 9 to let them in. It doesn't work though
You press 9 on the intercom, not your iPhone.

Similar Messages

  • How to use MRP for generate PO? any samlpe?

    I want to know how to using the MRP for generate purchase order.
    have any documents for showing the steps by using MRP?
    Thanks.
    On

    MRP will generate Order Recommendation only, not actual PO.  You may need to learn general knowledge about MRP first before actually run the MRP Wizard.  Actually, if you have clear knowledge about what MRP covers, many steps have self explained well on the online help.
    Thanks,
    Gordon

  • How to use the path generated by A star to guide the robot to move?

    I now know how to use A star path planning on Voronoi and I can run this program successfully.\  
    however, my problem now is how i can use the path data (generated by the A* path planning algorithm) to guide the robot to drive along this path?   well, i suppose i can get a series of dots (denoted by x and y coordinates) from the path, and use these dots to guide the robot ?  
    can anyone please help?  
     thank you very much
    Solved!
    Go to Solution.

    Ravens Fan wrote:
    You can't.
    My post above will point everyone to the other post so that we don't have people trying to assist you in two different places without knowledge of the other thread.
    thank you 

  • How to use wscompile to generate code using a WSDL file?

    I am working with JAX-RPC of Java Web Service ver: 1.1. I am intrested in making the WSDL file first and generating Java code from the WSDL file. On the following link:
    http://java.sun.com/webservices/docs/1.1/tutorial/doc/JAXRPC6.html#wp80094
    it says that wscompile can generate code using a WSDL file..:
    <quote>
    Table 11-3 wscompile Options
    -import : read a WSDL file, generate the service's RMI interface and a template of the class that implements the interface
    </quote>
    and the wscompile software says this:
    <quote>
    C:\>wscompile
    -import : generate interfaces and value types only
    </quote>
    can anyone tell me how to generated Java code from a WSDL file. As in, make the WSDL file (e.g. using XMLSpy) and then use that WSDL generate Java code.
    Thanks

    I'm trying to generate code using wscompile under the struction in JAXRPC_Tutorial.pdf.
    I issued the following command:
    wscompile.sh -keep -gen:client -f:wsi -verbose config.xml
    But I met with the following warning and I cann't find the produced java code, who know why? Thanks in advance!
    warning: ignoring SOAP port "EmployeeDBPort": unrecognized transport
    warning: Service "EmployeeDatabase" does not contain any usable ports
    the config.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
    xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl name="EmployeeDBService"
    location="EmployeeDB.wsdl"
    packageName="com.sun.xml.rpc.xml.EmployeeDB">
    </wsdl>
    </configuration>

  • How to use  Aggregations Method generated by WIZARD

    Hi All,
              I used ABAP wizard to develop I report.
    This wizard generated one class and method as below
      zcl_bt_alv_template=>factory(
                     exporting  im_syrepid = sy-repid
                                im_lheader = gv_title
                                im_allowls = abap_true  " Allow layout save
                     importing  ex_alvo    = r_alv_template
                     changing   ch_datatab = it_efficiency ).
    Inside this Factory Method there is one method for aggregations.
      ex_alvo->r_aggregations = ex_alvo->r_table->get_aggregations( ).
    How to use this Method for getting aggregations for some fields.
    Thanks,
    Prasad.

    Hi Patel,
                   I am getting DUMP for this.
    Its saying Access via 'NULL' object reference not possible.
    Patel when I am double clicking the 
    aggregation = if_salv_c_aggregation=>total
    This if_salv_c_aggregation is not having any methods.
    So may be the dump is coming.
    The dump is
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component (variable: "R_AGGREGATIONS").
    Thanks,
    Prasad.
    Edited by: Dheeru Prasad on Aug 6, 2009 3:36 PM
    Edited by: Dheeru Prasad on Aug 6, 2009 3:39 PM
    Edited by: Dheeru Prasad on Aug 6, 2009 3:40 PM

  • How to use orinda Software generated classess

    hai all,
    iam newly useing jdev any body tell me how to use orinda generated classes. can send me sample code for this & can u tell me what is use of this.

    OrindaBuild examines your data dictionary and generates Java source code to run your PL/SQL procedures and Functions.
    It can also generate Java to run any SQL statement you give it. The generated code does not require SQLJ.
    General documentation can be found here:
    http://www.orindasoft.com/public/Docstwo.php4
    An example can be found here:
    http://www.orindasoft.com/public/Exampletwo.php4
    Say you have a PL/SQL package you want to access using JDBC:
    CREATE OR REPLACE PACKAGE complex_example AS
    TYPE city_pair_plsql_record IS RECORD (from_city flights.departure_city%type
                                          ,to_city   flights.arrival_city%type);
    PROCEDURE flies_between_all (p_first_city_pair  in  city_pair_oracle_type
                                ,p_second_city_pair in  city_pair_plsql_record
                                ,p_third_city_from  in  airports%ROWTYPE
                                ,p_third_city_to    in  airports%ROWTYPE
                                ,p_airline_list     out simple_examples.airline_refcursor_type);
    PROCEDURE get_table_of_flights_from (p_city         in     flights.departure_city%TYPE
                                        ,p_flights_from    out flights_table);
    PROCEDURE add_bookings (p_customer       in     customers%ROWTYPE
                           ,p_booking_table  in     bookings_table
                           ,p_status_message    out varchar2);
    END;OrindaBuild would generate code like this:
    package com.mycompany.myproject.generated;
    import com.orindasoft.pub.CSException;
    import com.orindasoft.pub.OracleResourceUser;
    import com.mycompany.myproject.generated.plsql.*;
    * WSDL Compatible Web Services Interface used by classes generated by OrindaBuild
    * Generated by OrindaBuild 5.0 build 2342 at 2007/01/19 18:02:18 GMT
    public interface DAOFactoryServiceInterface
    public com.mycompany.myproject.generated.plsql.SimpleExamplesAirlineRefcursorTypeAttrs[]
    servicePlsqlComplexExampleFliesBetweenAll
        (CityPairOracleTypeAttrs paramPFirstCityPair
        ,ComplexExampleCityPairPlsqlRecordAttrs paramPSecondCityPair
        ,AirportsAttrs paramPThirdCityFrom
        ,AirportsAttrs paramPThirdCityTo) throws DAOFactoryServiceException;
    public FlightsTypeAttrs[] servicePlsqlComplexExampleGetTableOfFlightsFrom
        (String paramPCity) throws DAOFactoryServiceException;
    public String servicePlsqlComplexExampleAddBookings
        (CustomersAttrs paramPCustomer
        ,BookingsTypeAttrs[] paramPBookingTable) throws DAOFactoryServiceException;
    } // Generated by OrindaBuild 5.0                                                 The rest of the generated code for this example is available here:
    http://www.orindasoft.com/public/Java2HTML
    As you can see from the code above each procedure in the package is called by a method in the generated code. OrindaBuild is really useful is situations where the PL/SQL has complicated parameters.
    David Rolfe
    Orinda Software
    Dublin, Ireland
    null
    null

  • How to use iframe to generate a dynamic URL for error message

    Hi guys,
    I am new to web dynpro java and having my first webdynpro project. Just wondering how to acquire the host name, port number and error message info. dynamically in order to form the following URL format. The iframe is directed to this following URL address.
    http://<%host name%>:<%port number%>/portal/ErrorPage.all?MSGID=<%=SYMSGID%>&NO=<%=SYMSGNO%>&PROG=<%=SYREPID%>
    I need to replace the <%...%> part with the dynamic content. Any one could provide me with some ideas? What java classes I should use? Thanks very much.

    hi
    Not sure why to you need hostname and port.
    You can assign relative path to the Iframe.  (e.g. /test/error.html )
    You can use context to generate the dynamic path and assign it to IFrame.
    -Ashutosh

  • How to use Function module generated to update CDHDR CDPOS

    Hi,
    I have a Z-table, and I want to tracks the value changes in some fields,
    the data elements for those specific fields are marked for "Change document".
    I created a Change document object using the transaction SCDO and I got the function module.
    now can any one tell me how to use these function modules like ( what values need to be passed to function module. what value do we need to pass for   OBJECTID,..value for tables ...etc )
    I have a custom program to update/delete entries in the custom table so should I use the function module in my custom program to result an entry in CDHDR & CDPOS.
    how to display the old value and new values  for the fields specified to changes.
    Regards,
    Nagu.

    check in SE37
    RV_ORDER_FLOW_INFORMATION
    SD_SALES_DOCUMENT_READ
    SD_SALES_DOCUMENT_READ_POS
    SD_DOCUMENT_PARTNER_READ
    SD_DETERMINE_CONTRACT_TYPE
    SD_SALES_DOCUMENT_COPY
    SD_SALES_DOCUMENT_SAVE
    SD_SALES_DOCUMENT_ENQUEUE
    SD_PARTNER_READ
    RV_DELIVERY_PRINT_VIEW
    SD_PACKING_PRINT_VIEW
    SD_DELIVERY_VIEW
    RV_BILLING_PRINT_VIEW
    RV_PRICE_PRINT_HEAD
    RV_PRICE_PRINT_ITEM
    Rewards if useful...........
    Minal

  • How to use one ODSI project artifact as jar for other ODSI project?

    Hi,
    I am working on multiple ODSI proejcts in Same Server. My problem is how to call one projects resources in other ODSI project. I need this as Some of Data Services read the data from more then one database. The projects are in seprate Dataspace projects but they are deployed in same server. When I try to export artifacts from one projects and include them as Jar in other projects I am not able to see any Data service methods so unable to call any method of one project in other project. Please advise how to recsolve this problem.
    Thankyou in advance.
    Rahul

    If you already have a case open, it's polite if you mention that - so I don't have to answer the same questions to support and also to this forum. Likewise, when you get an answer to your question on this forum, you can tell support. So they don't keep looking for something you already have the answer to. Cuts down on the duplication of effort.
    You have one project. You add more files to it (regardless of how you add them - by creating files with the editor, by using a wizard or by importing files from another project), you still have only one project.
    If you had some other project that you exported the files from - that project is still there - but the original project does not know or care about it.
    Edited by: mikereiche on Jun 21, 2010 1:55 PM

  • How to use the random generator in java

    hey peeps, this is the class in which i am trying to implement the random generator in;
    public class Matchlist
        private studentdetails sd = new studentdetails();
        /** matchList StringBuilder stores the match list in progress */
        private StringBuilder matchList = new StringBuilder();
        private int loop = 0;
        private int matches = 0;
        public Matchlist()
            sd.createstudentdetails();
        /** Method to create the actual match list, returns the list as a string */
        public String CreateMatch()
            int g;
            int y;
                for (g = 0; g < 4; g++)//g = game
                    for (y = 17; y > -1; y--)//y = green house
                        /** Check to see if the game is empty */
                        if (sd.getgh(y).getGame(g).equalsIgnoreCase(""))
                            for (int x = 0; x < 18; x++) //x = yellow house
                                if (sd.getyh(x).getGame(g).equalsIgnoreCase(""))
                                    if (sd.getgh(y).getC_lass() != sd.getyh(x).getC_lass())
                                        /** Check to see if the person has played the other person */
                                        if (sd.getgh(y).checkPlayed(sd.getyh(x).getName()) == false)
                                            /** Set the game to the name of the opponent played */
                                            sd.getyh(x).changeGame(g, sd.getgh(y).getName());
                                            sd.getgh(y).changeGame(g, sd.getyh(x).getName());
                                            /** Build the match list step by step using append with \n at the end to create a new line */
                                            matchList.append(sd.getyh(x).getName() + " vs " + sd.getgh(y).getName() + "\n");
                                            matches++;
                                            break;
                /** Convert the stringbuilder into an actual string, then return it */
                String completeMatchList = matchList.toString();
                System.out.println(matches);
                for (int i = 0; i <18; i++)
                    sd.getyh(i).getEmptyMatches();
                    sd.getgh(i).getEmptyMatches();
                return completeMatchList;
        }what i dont understand is how to implement it to pick my matches at random using the http://java.sun.com/j2se/1.4.2/docs/api/java/util/Random.html java tutorials from here
    regards

    How to use Random ?
    First you open API then you read it, then you use it.
    You mention you try to use it but i just see a horrible nested for for for if if if loop.
    Restructure code and question and maybe it makes more sense.
    Edited by: pgeuens on 10-mrt-2008 22:58

  • How to use the program "Generate test data for BAI bank statement" ?

    Hi all,
    I use the program RFEBKAT5 to create an Electronic Bank Statement file in BAI format ,but it doesn't generate the file .
    I don't know how to generate the file.
    Please help me !
    Thanks all !

    You need to suitably adjust your GL accounts for "Posting Offset Account" (Whisch is defaulted as ++++++++19" and Checkout/Funds Out/Funds IN GL accounts to your configuration.
    Once you do this try generating the file again.

  • How to use client.jar generated by deploytool for a EJB web service

    Hello!
    Could anyone help me?
    I use Sun Application Server to deploy my EJB module and expose it as a web service. Then I open deploytool tree and select localhost under Server branch. In the right panel it shows a list of web services deployed. I chose recently deployed service and press "Client Jar..." button to get generated client stubs.
    Good.
    Could anyone tell me how I should use this jar file? It does not contain ..._Service_Impl.class that is usually used to get service port and call service methods.
    Please, explain me.
    Thank you much

    try
    jar tf Client.jar and look at what is inside.
    Usually you run the client to connect to the server -- (java -classpath blah pack.age.name.Client)
    Dont know how its being done over there.

  • How to use table maintance generator

    Hi Friends,
    I wanted to add more data in predefined table. For that  table maintance is allowed with restriction. So anybody will tell me how to proceed for adding more data in table.
    Regards,
    Salil

    Hi Ajay,
    Thanks for ur valuable reply. But i m unable to make entry by both ways. Suppose i m going through se11. How i can judge authorization group & function group.
    I m using crm table. I dont know the authorization group for that table as well as function group. May i choose any thing by F4 & then create entries???
    Regards,
    Salil

  • How to use Jaxws to generate stubs instead of using jaxrpc?

    Hi All,
    In our code we have been using jax-rpc with JDK 4 to generate stubs. Now we have been told to switch to Jax-ws using JDK 5. Can jax-ws be used to generate stubs? Does jax-ws comes in package with jwsdk/jwsdp? If yes, then which version of jwsdp is to be used? Any pointers on this will be helpful!

    Hi,
    See the below Program:
    REPORT demo_select_cursor_1.
    DATA: c1 TYPE cursor,
          c2 TYPE cursor.
    DATA: wa1 TYPE spfli,
          wa2 TYPE spfli.
    DATA: flag1(1) TYPE c,
          flag2(1) TYPE c.
    OPEN CURSOR: c1 FOR SELECT  carrid connid
                          FROM  spfli
                          WHERE carrid = 'LH',
                 c2 FOR SELECT  carrid connid cityfrom cityto
                          FROM  spfli
                          WHERE carrid = 'AZ'.
    DO.
      IF flag1 NE 'X'.
        FETCH NEXT CURSOR c1 INTO CORRESPONDING FIELDS OF wa1.
        IF sy-subrc <> 0.
          CLOSE CURSOR c1.
          flag1 = 'X'.
    ELSE.
          WRITE: / wa1-carrid, wa1-connid.
    ENDIF.
    ENDIF.
      IF flag2 NE 'X'.
        FETCH NEXT CURSOR c2 INTO CORRESPONDING FIELDS OF wa2.
        IF sy-subrc <> 0.
          CLOSE CURSOR c2.
          flag2 = 'X'.
    ELSE.
          WRITE: / wa2-carrid, wa2-connid,
                   wa2-cityfrom, wa2-cityto.
    ENDIF.
    ENDIF.
      IF flag1 = 'X' AND flag2 = 'X'.
    EXIT.
    ENDIF.
    ENDDO.
    Regards
    Sudheer

  • How to use the result from a taglib?

    Hi people.
    I've been looking arround for some feedback on how to use the output generated by a taglib on jsp code but I haven't been able to find any.
    Could somebody tell me how to do that please?

    It works something like this:
    The tab library consists of a class library and a tag libraray descriptor file. In your jsp header you include a taglib directive which associated athe TLD with a particular name prefix. Then you can include XML tags with that prefix and the tag library class to which they are connected will be invoked from the servlet that is generated from the JSP. This tag code can do pretty much anything, but usually what it mostly does is write HTML to the response stream. Opening tags and closing tags can both add whatever text they like to the stream which is sent to the client.
    So including the tag in you JSP will usually suffice to cause generated output, it's up to the taglib.

Maybe you are looking for

  • MS Office 2010 Home & Student 2010 on Window 8.1

    Hi All, I recently purchased a new laptop that comes with Window 8.1 as well as a complimentary Office 2010 Home and Student. I have followed the instruction to download via www.office.com/productkeycard and saved on my desktop. However, upon complet

  • HP Sleep Issues

    For some reason my computer frooze when I tried to sleep it. Image of what screen looked like: http://img411.imageshack.us/img411/8371/dsc02843s.jpg I think I may know whats causing this. It seems that im unable to sleep my computer after using my HP

  • BSP page was terminated due

    Hello Experts, I have setup the solaris sever system monitoring (Solman with ECC).. I folled the simulator tool and configured sytstem monitoring.. Now when i click Operation- > System monitoring - >  receive an below eror message.. =================

  • How to pass Dataset to Oracle Procedue from C#

    Hi. Im using oracle 9i database,i want 2 send data collection(Dataset or XML) by once to the oracle stored procedure. i tried using RefCursors,but it doesnt work on 9i.is there any way to do this ? can any one give me a help ? Regard. Amila

  • MS Office Web component

    I want to know how to use a Mac in order to use this service. Can you gelp me ? Thanks