How to implement an independent static stub client ? Please, help

Hi everybody!
I'm using the jwsdp1.2 and i got the static stub tutorial client to test my webservice. It works fine! However, i tried to compile the client code separately and it didn't worked. The jvm can't find the webservice class. So, the questions are:
- How to implement an independent static stub whithout the ant help?
- How can the client get the endpoint to create the proxy?
- Must I use any javax.xml.rpc interface (call or service maybe) to do the job?
- Could anybody show me some sample code?
Well, that's it. I'm waiting for some answer. Please, help me.
Tks in advance,
Rodrigo.

Can you explain what you mean by "independent static stub" ?
JWSDP Tutorial explains all the steps required to create a static stubs client and invoke the service. In addition, https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html#Scenario2 explains the detailed steps to achieve the same from command line.
Hope that helps.
Post your JAX-RPC related questions to [email protected] for a quicker resolution.
Send an email to [email protected] to subscribe to the alias.
Send an mail to [email protected] for a complete list of help commands.
-Arun

Similar Messages

  • How to implement "press any key to continue",please help

    my problem is when the "press any key to close the dos" has displayed in the dos , how can realize to close the dos when i press any button.
    i have try to use system.in.read();but this method doesn't end until i press the "enter"button.

    public class P {
         public static void main(String[] args){
              System.out.println("XXX");
              System.out.println("press any key to close!");
    //want to System.exit(0) when user type the any key.
              BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
              try {
                   int ch = stdin.read();
                   if(ch !=-1){
                        System.exit(0);
              } catch( Exception e ){
    i run this programe by wrote "java P" in the XXX.bat
    Edited by: azhi on Mar 4, 2008 5:23 AM
    Edited by: azhi on Mar 4, 2008 5:29 AM

  • Static Stub Client

    Hi everyone
    I am using  Static Stub.
    The add(2,3) method works  but not the getName() 
    when String  getName() invoked  Null value is returned.
    ----------------------- my  Static Stub Client -----------------------------
    public class Tester
      public static void main(String [] args) throws Exception {
        // Make a service
       EmployeeRecordServiceLocator service = new EmployeeRecordServiceLocator();
        // Now use the service to get a stub .
       EmployeeRecord  port = service.getEmployeeRecord();
        // Make the actual call
    int adding = port.add(2,3);
       System.out.println("Show adding -->" + adding );
       port.setName("reza");
       String myName = port.getName();
       System.out.println("Show my name -->" +  myName  );
    ------------------------ my Java class which is being used ------------------------------------
    package bankStaff;
    import java.io.*;
    public class EmployeeRecord
      private String name ;
       public String getName()
         return name;
    public void setName(String name)
        this.name = name;
    public int add(int a, int b)
       return a+b;
    The only way that will return a value is when I modify it as the following but don't think is correct.
    Because it behaves as setter & getter at the same time!!!!!!!!!!
    public String setName(String name)
       return (this.name = name);
    But When I use the EmployeeRecord class in  standalone application  (Non Web service) the String getName() works! It returns  String value.
    EmployeeRecord class used in  standalone application
    EmployeeRecord myVar = new EmployeeRecord():
    myVar.setName(String name);
    myVar.getName();
    (Obivosualy the class EmployeeRecord has to be instantiated)
    Q2 - Also How can we instantiate a class  in the Web services or do we have to?
    e.g. EmployeeRecord myVar = new EmployeeRecord():  
    BTW: I am using Eclipse 3.1
    Any clues please?
    Kind regards

    Hi
    Find the build.properties located in the same directory of targets.xml
    Add the j2ee.home location, in my case
    j2ee.home= C:/Sun/AppServer
    Good Luck
    Marlene

  • Problem in Static Stub Client

    Hello...!!!
    I am trying to learn web services using j2ee.
    when I try to build the static stub client, using 'asant build', build always failed. I've already built the service n can see its wsdl in ie.
    I have given all the process below after typing 'asant build'
    (I also donn understand 1 thing, I have set all environment variables on D drive though it shows C drive[see ** below], o/s:win xp)
    Plz. help asap.
    Thanks in advance.
    .Mohit
    /*process after asant build command*/
    Buildfile: build.xml
    clean:
    [delete] Deleting directory D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\build
    generate-stubs:
    j2ee-home-test:
    init:
    prepare:
    [echo] Creating the required directories....
    [mkdir] Created dir: D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\build
    set-wscompile:
    run-wscompile:
    [echo] Running wscompile:
    [echo] ** c:\sun\appserver/bin/wscompile.bat -gen:client -d build -classpath build ${config.wsdl.file}
    [exec] error: error: file not found: ${config.wsdl.file}
    [exec] Usage: wscompile [options] configuration_file
    [exec] Use "wscompile -help" for a detailed description of options.
    j2ee-home-test:
    init:
    prepare:
    [echo] Creating the required directories....
    compile-client:
    [echo] Compiling the client source code....
    [javac] Compiling 1 source file to D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\build
    [javac] D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\src\HelloClient.java:46: cannot find symbol
    [javac] symbol : class HelloIF
    [javac] location: class staticstub.HelloClient
    [javac] HelloIF hello = (HelloIF) stub;
    [javac] ^
    [javac] D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\src\HelloClient.java:46: cannot find symbol
    [javac] symbol : class HelloIF
    [javac] location: class staticstub.HelloClient
    [javac] HelloIF hello = (HelloIF) stub;
    [javac] ^
    [javac] D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\src\HelloClient.java:56: cannot find symbol
    [javac] symbol : class MyHelloService_Impl
    [javac] location: class staticstub.HelloClient
    [javac] return (Stub) (new MyHelloService_Impl().getHelloIFPort());
    [javac] ^
    [javac] 3 errors

    i think these 2 lines are needed in <home>/examples/jaxrpc/common/build.properties to build jaxrpc examples
    config.wsdl.file=config-wsdl.xml
    config.interface.file=config-interface.xml

  • How to Implement BW in IT Service Desk/IT Help Desk /IT Complain Surveillance Dept/IT Customer Support Dept?

    Hi
    If a organization have 200 to 300 daily complains of there IT equipment/Software/Network e.t.c.
    How to Implement BW in IT Service Desk/IT Help Desk /IT Complain Surveillance Dept/IT Customer Support Dept?
    Is there any standard DataSources/InfoObjects/DSOs/InfoCubes etc. available in SAP BI Content?

    Imran,
    The point I think was to ensure that you knew exactly what was required. A customer service desk can have many interpretations from a BI perspective.
    You could have :
    1. Operational reports - calls attended per shift , Average number of calls per person , Seasonality in the calls coming in etc
    2. Analytic views - Utilization of resources , Average call time and trending , customer satisfaction , average wait time
    3. Strategic - Call volumes corresponding to campaigns etc , Employee churn and related call times
    Based on these you would then have to construct your models which would be populated by data from the MySQL instance for you to report.
    Else if you have BWA you could have data discovery instead or if you have HANA - you could do even more and if you have a HANA sidecar - you technically dont need BW. The possibilities are virtually endless - it depends on how you want to drive it and how the end user ( client ) sees value in the same.

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • HT204053 I have two Apple ID's. How do I delete one of them? Please help. Thank you. Dru

    I have two Apple ID's. How do I delete one of them? Please help. Thank you. Dru

    To add to the above...
    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • I down loaded about 100 cds to my library and I can no longer view the downloaded artwork it's shows a black picture or blank. How can I get the artwork back? Please help! Thank you

    I downloaded about 100 cds to my library and I can no longer view the downloaded artwork it's shows a black picture or blank. How can I get the artwork back? Please help! Thank you.

    Hi- apparently I also had a similar moment of madness and thought that 'freeride games' would be fun. Well, so much for that! It added a ton of things to my tool bar, I would like to uninstall it, any suggestions for this one?
    thanks :)

  • After upgrading my software i have seem to have lost all my contacts and photos, i did a back up but i have no idea how to get them back on? maybe im illiterate but i dont know how to find it in my itunes? please help!!

    After upgrading my software i have seem to have lost all my contacts and photos, i did a back up but i have no idea how to get them back on? maybe im illiterate but i dont know how to find it in my itunes? please help!!

    http://support.apple.com/kb/HT5824?viewlocale=en_US&locale=en_US

  • I have iOS 6 on my iPhone. i have linked my contacts with facebook and yahoo, which has doubled or triplicated some of the contacts. how can i integrate them into one? please help. it is getting on my nerves. thanks :)

    I have iOS 6 on my iPhone. i have linked my contacts with facebook and yahoo, which has doubled or triplicated some of the contacts. how can i integrate them into one? please help. it is getting on my nerves. thanks

    click on the contact which you want to integrate, click the edit button scroll down u will find a option called link contacts use it to link it to the duplicate contact

  • HT201363 Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help  ?

    Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help  ?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104569)

  • My I phone 4 fall from my hand and screen broke. Can I replace my I phone 4 from Apple Store ? How much it will cost in Dubai ? Please help with information.

    My I phone 4 fall from my hand and screen broke. Can I replace my I phone 4 from Apple Store ? How much it will cost in Dubai ? Please help me with the information.

    I'm assuming you can..now I don't know the prices for your area, you'll have to check around, I just did a quick web search and I'm pulling all sorts of prices up, I'd look into a repair facility near you and see what they can do for you :-) shouldn't be too expensive though! Good luck!

  • Please help...I was downloading my pics from the SD card. I then I highlighted 5 pics and selected erase, once I selected erase 20 other pics was also erase. I need to know how can those erase pics be recovered? Please Help!

    Please help...I was downloading my pics from the SD card. I then I highlighted 5 pics and selected erase, once I selected erase 20 other pics was also erase. I need to know how can those erase pics be recovered? Please Help!

    You will need data recovery software. See this post:
                                                                                       Re: I accidentally lost 3 weeks of photos, how do I recover them?                                            
    And please send feedback to Apple: This is a bug. Only the imported photos should have been deleted, not all photos on the card. You can use this form: Apple - iPhoto - Feedback

  • Hi. installed mountain lion. Not Happy. How do i revert to Lion. thanks. Please Help., Hi. installed mountain lion. Not Happy. How do i revert to Lion. thanks. Please Help.

    Hi. installed mountain lion. Not Happy. How do i revert to Lion. thanks. Please Help., Hi. installed mountain lion. Not Happy. How do i revert to Lion. thanks. Please Help.

    Only way is if you made a backup of your system before you installed Mt Lion.
    Or if your system came with Lion Pre-Installed you boot to the online recovery system, Hold down Command+option+r at startup until you see a spinning globe in the center of the screen.

  • As an elderly rookie, I don't know how to download, install, & activate this software. Please help!

    I bought this but do not know how to download, install, and activate it. Please help!

    Let's start with the basics. Adobe have a baffling number of choices.
    1. What is your computer system? For example, Windows 7, Mac OS Yosemite
    2. What exactly are you trying to download and install? If you paid for it, check your receipt for the exact name.
    3. Did you pay for it already? If so did you subscribe or get a one time purchase?

Maybe you are looking for

  • AR Open/Closed Invoices Migration Help

    Hello Experts, We have a data migration requirement for AR invoices from a legacy system to Oracle. We have both open and closed invoices. Can anyone of you help in giving the steps to be followed? This is for India AR Invoices. Expecting a quick res

  • Internet Sharing: Must Reset Every So Often

    I'm sharing my ethernet connection with my father using Internet Sharing. However, it is extremely unreliable. Every five to thirty minutes, it "dies" on his end and the Internet stops working - although it still is fine on my laptop. I have to turn

  • Rendering problems, trying to get render done before film fest deadline!:)

    I have two computers and I still am having trouble getting them to properly render a 2.5 hour clip. My desktop takes the space where some of the titles are, and turns that space into a frozen clip of the footage preceding it, then shows the title for

  • Artifacts in Bridge Output that don't show in Photoshop CS4

    Hello, I'm new to using Adobe Bridge and I used the output function to check on the resolution/condition of an image.  I am seeing artifacts in Bridge that are not visible in Photoshop.  Likewise the image looks very poor in Bridge but is crisp and c

  • N73 Firmware update error

    When updatiing my phone, i accidentally disconnected the USB cable from the phone. Now i can't turn it on or do anything to it. I tried continuing the update but it didn't work. So what should i do?