Skip to Content
author's profile photo Former Member
Former Member

Converting a Java Class to a Webservice using NWDS

Hi all

I'm quite new to the creation and consuming of Webservice. I have an existing Java class (developed as a NWDS Java project) containing 3 static mehods that I have successfully tested in the Java perspective. I now want to convert to this class and it's methods to a Webservice in NWDS.

On SDN I've found "https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d053a531-be1c-2a10-5895-86e8c3f9806f" which appears to be exactly what I require. It points to the use of the Web Services Wizard in NWDS.

I've followed the steps and get to Selecting the methods to contain in the Web Service. I can see my 3 methods with an unticked checkbox...but I cannot make a selection i.e. I cannot select any of my methods.

I presume that not selecting any methods in this step will not generate a correct Web Service allowing me to consume my methods. Has anyone encountered a similar scenario?

My NWDS version is 2.0.9 and my NWDS is not currently connected to any WEB AS. Am I correct to assume that once I have an EAR file I can manually deploy onto the appropriate WEB AS?

Your replies will be much appreciated.

Regards

Malick

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 09:34 PM

    Hi All,

    I've resolved my issue and things are working fine. I was "throwing" exceptions in my Class method decarations. NWDS was not happy to include these methods when converting to a Webservice. I removed the "Throws" clause and have successfully deployed to the J2EE instance.

    Regards

    Malick

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.