Top down approach for creating the web services in NWDS 7.1

I am trying to develop a web service in top down approach.
1) I created a Dynamic web project.
2) Created a WSDL File using the WSDL Graphic editor.
3) Now i am trying to create the Webservice from the WSDL file ,  i am getting the following error
The SAP Netweaver Web service runtime does not support the service project type Dynamic Web Project.
How do i created the web service from here on.
Regards
ABS

In NWDS 7.1 i used to create webservice.I followed the process given in sap help.
steps:
1.      In the SAP NetWeaver Developer Studio, you create an EJB Project and an enterprise application project for the Web service.
2.      In the EJB Project, you create an EJB Session Bean 3.0 and implement the business logic of the Web service.
3.      You expose the EJB Session Bean 3.0 as a Web service, using the Web service wizard in the SAP NetWeaver Developer Studio.
4.    You deploy the Web service endpoint on the application server.
Thanks,
Murthy.

Similar Messages

  • Top down approach in developmet of Web services

    I am trying some initial development effort using Jdeveloper 11.1.1.1.0 version. I could successfully develop some samples using the bottom up method.
    Now thinking to go the top down approach.are there any risks/pitfalls in this approach. One question is that the team has a set of XSDs representing the objects we plan to pass as parameters to the web services methods. Is there some way in which we can sync up from XSDs to the generated java classes and if there are any changes done on the java classes can it be transparently reflected to the XSDs (using any of the capabilities of JDev)
    Also can we refer to the XSDs we generated, from the WSDL's so that both are separate and they are independently modifiable.
    It would be great if there is any documentation of the best practices approach for similar use cases.

    In NWDS 7.1 i used to create webservice.I followed the process given in sap help.
    steps:
    1.      In the SAP NetWeaver Developer Studio, you create an EJB Project and an enterprise application project for the Web service.
    2.      In the EJB Project, you create an EJB Session Bean 3.0 and implement the business logic of the Web service.
    3.      You expose the EJB Session Bean 3.0 as a Web service, using the Web service wizard in the SAP NetWeaver Developer Studio.
    4.    You deploy the Web service endpoint on the application server.
    Thanks,
    Murthy.

  • What is the transaction code for see the Web Services available in SAP

    Hi
    I came to know that SAP has provided its own webservices... I need some information on that... If any one has documentation on that can u please send it to me... My ID is <b>[email protected]</b>.
    What is the trasaction code for see the web services available in SAP.... Can any one help.. Please its  urgent
    Best Regards
    Ravi Shankar B
    Message was edited by:
            RaviShankar B

    Hi,
    you can find Web Services (Enterprise Services) in the Enterprise Services Workplace (ES Workplace). The ES Workplace allows you to explore, test, and use enterprise services to make enterprise SOA tangible. Here, you will find all of the currently productized enterprise services by SAP.
    Best Regards,
    Boris Mueller
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/esa/esapreview">ES Workplace at SDN</a>
    <a href="http://esapreview.sap.com:82/socoview(bD1kZSZjPTgwMCZkPW1pbg==)/flddisplay.asp">ES Workplace</a>

  • Error creating a web service in NWDS SP18.

    Hello,
      I created a web service DC. It works fine when I test this with Web Services Navigator. I get the output as expected. But when I test it with Enterprise Portal Web Services Checker in NWDS, I get this error:
    "The SOAP Message returned is not well formed
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Unable to create message from source"
    When I tried creating a web service using a simple J2EE-->EJB Module project, added to an EAR project and deployed, I see the same error. In both cases am able to successfully test on Web Services Navigator...
    Any body let me know how to create a web service in NWDS SP 18...
    Thanks
    Srinivas

    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/f272e75d-0501-0010-1786-ab6ed3496bb1&language=en

  • Altova for calling the web services

    Hi,
    I am trying the Web service to file scenario.
    When I used the proxy to call the Webservice it is working fine but when i use altova for the same it is throwing an error "500"+some msg when i press ok it says cannot send the soap request.
    Is it problem with altovaa?
    The path for defining the webservice given is
    "http://pitest.monet.local:50100/XISOAPAdapter/MessageServlet?channel=KCRS_3RDP_D:SOAP_IN_PublishLeaveStatus"
    Channel is:KCRS_3RDP_D
    Service is :SOAP_IN_PublishLeaveStatus
    Thanks,
    Srinivas

    hi,
    Please check this address:
    http://pitest.monet.local:50100/XISOAPAdapter/MessageServlet?channel=<b>:</b>KCRS_3RDP_D:SOAP_IN_PublishLeaveStatus
    Regards,
    Wojciech

  • What is the steps to create the web service client

    I'm quite new to web service and currently need to work on a web application that will call web service by passing the request data. Then will handle the response data. Following are questions that I would like to get your advice.
    First, should I manually develop a schema? The request data will be passed as some element type (I thought a class should be generated and put in the class path), which will be some class with set/get(). Then I will use the schema to get a jar that contains the class file by using the xmlbean? Any example or suggestion on this?
    Secondly, how does the java code in web application send/get the request/response data to/from the web service. Your example will greatly help.
    I read article about WSDL and Schema and Soap. Get very confused on what really should be to follow step by step. Thanks in advance for your help!

    I propose that you start with some introductory tutorials. At seekda you will find two tutorials for newbies:
    1) [Finding and Testing Web Services|http://seekda.com/blog/write-your-first-web-services-client-%e2%80%93-part-1-finding-and-testing-services/]
    2) [Using Web Services|http://seekda.com/blog/write-your-first-web-services-client-part-2-using-services/]
    The second tutorial actually addresses most of your questions.
    Greetings,
    Michal

  • Which is the best API for creating restful web services.

    Hi guys,
    I have tried a lot of apis to create a restful web service. But none of them has perfect documentation or examples. Which is the best one that has good support and future.

    "Best" automatically implies opinions and speculation; one I personally believe has a bright future is Jersey. Jersey is the reference implementation (RI) for [JSR-311|http://jcp.org/en/jsr/detail?id=311] ("The Java API for RESTful Web Services" or JAX-RS).

  • Approaches for Authentication through Web Services

    Hi All,
    I am calling a webservice through my portal service. This web service is on the (DI) Data Integration box which is not SAP.
    I need to know approaches with which I can authenticate users when they use this webservice call. I mean how do I authenticate users who will be using this application which will call a web service on the DI box.
    So when the user clicks on the submit button, this web service on the DI box is invoked, I want to authenticate users at this point, so that no unauthorized users are able to post data to DI box.
    Also, I do not want any kind of login window popping up. It should be something like a SSO.
    Please auggest approaches that I can use.
    Thanks

    HI Gopala,
    I have gone through the pdf. My requirement is a little different. Instead of authenticating the users on the portal, I wan to authenticate them on the Data Integration box.
    It will be something like this:
    Step 1. User logs on the portal.
    Step 2. User uses my custom applicatioon that calls a webservice.
    Step 3. When the webservice is being called (after the user clicks on the submit button), I want to ensure that authorized users are using this application and also that authorized users are posting the data to the Data Integration box, which is IBM data stage.
    Step 4. When the request reaches the datastage box, it authenticates the user before posting the data.
    Step 5. If the user is valid, the data is posted, if not, a message is returned saying "Unauthorized".
    I know that the authentication logic will be in IBM Datastage (Data Integration box) but what my question is that how do I pass the userid and password of the logged in user in the portal to Data Integration box through the webservice.
    Im calling the webservice exposed by the Data Integration box through my portal service.
    Are there any other way for authenticating the users? I read that I could use Public Key Infrastructure (PKI) or digital certificates, but again, how do I use this mechanism.
    Any suggestion or direction will be of great help.
    Thanks,
    S.B

  • While doing risk analysis for profiles the web service is taking 20 minutes

    Hi All
    Iam using SAP GRC 5.2 ( As per clients requirement)
    Iam using  VirsaCCRiskAnalysisService web service
    For roles it is working fine
    But when iam doing risk analysis for profiles( S_A.DEVELOP and  S_CUS_CMP)  it is taking upto 20 minutes to give results back
    Is there any way in which we can reduce the time taken to fetch the results
    Thanks

    Hello Mph,
    This is mainly bcz these profiles are a bit heavy and have huge number of authorizations in each of them. Also since these are critical, these would be having a large number of risks which explains the reason for the delay.
    Now, besides what Harleen mentioned, what I would also recommend to you is to check the number of threads etc in the config you have done. These are the parameters which you can often change and update as per your requirements and have a great impact on the performance as well, without the need to deploy extra hardware, which is usually a pain for most organizations.
    Regards,
    Hersh.
    http://www.linkedin.com/in/hersh13

  • Create a Web Service for Exchange with form based authentication ?

    I want to create a Web Service in Apex that can create appointments in my exchange calendar. Exchange is offering web services for that.
    When i try to create the web service reference in Apex i provide the URL and my Exchange login, but it is failing.
    The exchange guys told me, that there is a ISA Server running where i need to authenticate through a form.
    Does anyone know, how i can implement a webservice in Apex, when the access to the wsdl url needs login through a form ?
    Or : what other types of authentication does Apex know ? What possibilities do i have ?
    Thanks for answers.
    Bernd

    Hi
    Presume you've already found this information, but in case not ....
    Exchange 2007 provides out of the box web services, see
    http://msdn.microsoft.com/en-us/library/bb408417.aspx
    As a disclaimer - neither myself of the team I work with have tried to use these web services within APEX.
    Regards
    Chris

  • Really impossible to create a web service for JBoss using eclipse's WTP?

    I'm starting to get nuts!!!
    I'm an experienced J2SE and J2ME Java developer... but I have huge problems creating a web service using eclipse WTP!
    The tutorials I found are for tomcat... But I want to code for JBoss and not for tomcat...!!!
    There must be somebody out there with the same issues...
    This tutorial works fine for Tomcat...
    http://www.eclipse.org/webtools/community/tutorials/BottomUpWebService/BottomUpWebService.html
    But if I do the same with JBoss... it's not possible to incoke my web service method... ok, I thought... just need to check google... BUT I didn't find any solution in the whole WWW. Found a lot of questions of people with the same problems... but no solution! :(
    Still getting that:
    ERROR [EngineConfigurationFactoryServlet] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
    I know a little bit what a wsdd does... but isn't it the job of the WTP to create that file???
    I really hope you have some places for me to start, 'cause I don't know anymore places to ask for...
    Maybe this is a JBoss issue... I don't know...
    Or is there a tutorial on how to create a web Service using JBoss IDE?
    Sascha

    Hi Massimo,
    Quiet a few points here.
    1. Oracle Type objects do not map to XML Complex type
    2. Oracle Type objects do not map to Apex Page Item Types
    3. Apex Page Item types are substituted into the WS Request XML by a process which is part of the Web Service Reference creation through the Wizard in Apex.
    >
    After created the web service (without any errors), I click on test.
    - I can select the Operation --> CREATE_LINGUA
    - I can input data for Basic Authentication
    - I can't view Input Parameters --> Report returned no rows.
    I've tried with normal type like Varchar2 and all was ok.
    Is possible in Apex to use web services based on complex type, tipically an Array?
    >
    As you have guessed the Wizard driven Web Service Reference definition process cannot handle complex types of input parameters required by a Request. By definition the number of complex types possible are infinite, so they are not likely to come built in.
    Passing an array is no solution because finally the values passed have to be plugged into the right SimpleTypes inside a ComplexType in the Request.
    Based on your WSDL your Request will be
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cre="http://xmlns.oracle.com/orawsv/GRIMALDI/PKG_WEBSERVICES/CREATE_LINGUA">
       <soapenv:Header/>
       <soapenv:Body>
          <cre:SNUMBER-CREATE_LINGUAInput>
             <cre:PLINGUA-LINGUAT-CIN>
                <cre:LINGUAT>
                   <cre:CODICE>?</cre:CODICE>
                   <cre:DESCRIZIONE>?</cre:DESCRIZIONE>
                </cre:LINGUAT>
             </cre:PLINGUA-LINGUAT-CIN>
          </cre:SNUMBER-CREATE_LINGUAInput>
       </soapenv:Body>
    </soapenv:Envelope>However, all is not lost. You can always use the UTL_HTTP package API to construct your Request.
    Regards,

  • Changes to the Web Service publishing process (Operationalization)

    With the new release of Azure ML features, we are updating the web service publishing workflow. Below are the list of changes:
    Web Service Input / Output modules: these replace the input and output ports previously used to create web services. You can now drag and drop them on the experiment from the left pane under Web Services (instead of right-clicking on the module).
    Generation of Scoring experiment from Training experiment: We have automated the steps in creating a Scoring experiment by adding the Web service input and output modules, and automated the saving of the Trained model. With this feature, you no longer need
    to manually save a trained model and add it to a Scoring Experiment. The "Create Scoring Experiment" button will trigger these events and generate the Scoring Experiment for you. The resulting Scoring experiment can be published as a web service
    as is, or user can make modifications to the generated workflow including location of input/output modules.
    To use this feature:
      ○ Create a Training Experiment (includes an algorithm such as Boosted Decision Tree and a Train Module)
      ○ Click Run
      ○ Click Create Scoring Experiment
      ○ Review the resulting Experiment, then Click Run
      ○ Then click Publish Web Service
    A sample Training Experiment:
    Publishing a Training experiment as a web service:Similar to the Scoring experiment, we have now automated the steps to create a web service from the Training experiment using the "Prepare web service" command button. This action adds Web service
    input and output modules to the training experiment. The experiment can then be published as a web service. This  approach to creating a web service is needed for setting up the Trained model for retraining using the Retraining APIs. But is not the recommended
    approach for creating web services - Scoring experiment should be used for that purpose.
    Publishing an experiment as a web service: in cases where the experiment does not involve training, such as when processing, transforming and cleaning up data, it can also be published as a web service using the "Prepare web service" button.
    We will publish more detailed documentation for this and other features shortly. Please let us know if you have any questions.
    Thanks,
    The Azure ML Team

    Hey Freppas, can you give some more information about your first ask? For classifiers, we already output the scored probability along with the scored label. You can limit the output to just the probability using the Project Columns module to exclude unwanted
    columns. The web service is not concerned with domain-specific functionality - it will output exactly what you see being output in Studio when you set up the web service ports
    The second ask is something we're working on bringing to our product - feature importance. Again, you would have to make it happen in the Studio before you publish the web service for the web service to have that functionality

  • Can I  load Java classes generated by the Web Service Proxy Wizard?

    Hi gurus,
    I am very new to Oracle JDeveloper and I have mainly used it to create and debug PL/SQL procedures. My client app is written in PowerBuilder 11 (Sybase), which claims that it will create a datawindow from a web service. Well, it turned out that PB can only handle simple stuff (it works with a very simple wsdl from the internet) but can't handle more complex ones that we need to use. So I am thinking about using JDev to create the web service proxy for the web service and then load it into Oracle as a Java stored procedure so that PowerBuilder can call the procedure. JDev succsfully generated the proxy and a few Java classes. My question is, do I need to load all the classes into the database? If yes, will the reference to the package work? For example, in a JDev generated class (the soap client class), it has package MyJdev.proxy; at the top. Or, will it work if I load all the classes included in package /MyJdev/proxy into the database?
    Thank you very much for any help.
    Ben

    Thanks again, Bruce.
    What I meant by SOAPElement is that one genereated Java class has this and this class also has the setter for this like this,
    public void setSelection(javax.xml.soap.SOAPElement selection) {
    this.selection = selection;
    And here is the whole class,
    public class CaseSearchByPartyRequest implements java.io.Serializable {
    protected java.lang.String schemaVersion;
    protected java.util.Calendar messageProducedDateTime;
    protected javax.xml.soap.SOAPElement selection;
    protected Restriction restriction;
    public CaseSearchByPartyRequest() {
    public java.lang.String getSchemaVersion() {
    return schemaVersion;
    public void setSchemaVersion(java.lang.String schemaVersion) {
    this.schemaVersion = schemaVersion;
    public java.util.Calendar getMessageProducedDateTime() {
    return messageProducedDateTime;
    public void setMessageProducedDateTime(java.util.Calendar messageProducedDateTime) {
    this.messageProducedDateTime = messageProducedDateTime;
    public javax.xml.soap.SOAPElement getSelection() {
    return selection;
    public void setSelection(javax.xml.soap.SOAPElement selection) {
    this.selection = selection;
    public Restriction getRestriction() {
    return restriction;
    public void setRestriction(Restriction restriction) {
    this.restriction = restriction;
    this.selection is the request that I think I need. And here is the static main method of the soap client class genereated.
    public static void main(String[] args) {
    try {
    MyJdev.proxy.SoapClient myPort = new MyJdev.proxy.SoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    So, if I need to send the request to the web service, do I need to create the request, correct? I have done it through AQ and Messaging Gateway and works fine by manually creating the request xml in PL/SQL, but now I need to get it to work sychronously from the UI. I believe that I need the request (SOAPElement) because that is the only way that I can supply the parameters. I have not see any setters for the parameters other than some setters for user name and password.
    Did I get something wrong here? If I don't supply the "selection", will JDev do it?
    Thanks.
    Ben

  • Error while creating a web service

    Hi all,
    I am trying to create a webservice for doing SOAP to JDBC scenario. I created a WSDL file in Configuration. I am using NWDS for developing a web service using this WSDL file.
    While creating a web service, I am getting 2 errors after creation of Custum controllers. The errors are as follows:
    1. Request_SOAP2RFC_MI_SOAP2RFC_MI cannot be resolved or is not a type
    2. WDMessageManager cannot be resolved or is not a type
    I am making use of the following pdf file to create the web service.
    <a href="https://">www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555</a>
    Please help in this regard
    Regards,
    Pavani

    Hi
    Check this thread
    WD Message Manager
    Reward opints if usefull....

  • Any difference in creating a web service from a java class or session bean?

    Hi,
    The JDeveloper tutorial at http://www.oracle.com/technology/obe/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm demonstrates creating a web service from a plain java class. I'm wondering:
    - Is it possible to create a web service from a stateless session bean instead of a java class? If so, what's the proper way to do this in JDeveloper? When I tried doing so in JDeveloper 10.1.3.0.4 (SU5) using the J2EE Web Service wizard, the wizard did not list the session bean in the Component To Publish dropdown (it does list any java classes available in the project). I can proceed by manually typing in the name of the session bean. After the wizard completes though, the @Stateless annotation that had been in my session bean class code is removed and replaced by a @WebService annotation. The end result is that it looks like it made no difference whether I had tried to create the web service from a session bean or plain java class as the annotations in the resulting web service code are the same (although if I had started from a session bean, the class for the web service still implements the Local/Remote EJB interface that the session bean originally implemented).
    - Assuming it's possible to create a web service from a stateless session bean, is there any advantage/disadvantage creating a web service from a java class vs a stateless session bean? I'm creating the web service from scratch so I also need to either build the java class or stateless session bean the web service would be based on from scratch too.
    Thanks for any ideas about this.

    Hi,
    EJB Session beans (EJB 3.0) are deployed as WebServices by annotating the class with @WebService and the methds with @WebMethod (both tags require you to add the JSR-181 library to your project (available in the JDeveloper list of libraries)). Unlike the J2E WebService, the EJB session bean service is turned into a WebService upon deployment. This means you obtain teh WSDL file after deployment
    - Assuming it's possible to create a web service from a stateless session bean, is there any advantage/disadvantage creating a web service from a java class vs a stateless session bean?
    The difference is that EJB Session bean based web services are integrated with the J2EE container, which means that they can leverage container services like transaction handling, data sources, security, JMS etc.
    Frank

Maybe you are looking for