Skip to Content

You may have seen my previous blog on enterprise service consumption in Web Dynpro  () . It features a step-by-step demo of SAP NetWeaver CE  (https://www.sdn.sap.com/irj/sdn/ce) and ES Workplace  (https://www.sdn.sap.com/irj/sdn/esworkplace) . Here is the shortcut for all those who are anxious to see this demo running on their own PC or laptop: the sample code for download.  

Prerequisites

Download and install the sneak preview of SAP NetWeaver CE 7.1 SP1 from the SDN download area  (https://www.sdn.sap.com/irj/sdn/downloads).

The “Java EE only” version is sufficient (it has already Web Dynpro in it).The full-blown version is fine as well. No guarantee for other versions.0.1.

Apply for free access to the ES Workplace system landscape on the related registration page  (https://www.sdn.sap.com/irj/sdn/esareg) on SDN.

System HU2 is used as SAP ERP 2005 for the demo. You need a user to access and execute the enterprise service in this system. At the moment, only customers, partners and employees of SAP are eligible to request an account. Those of you who are neither one of these: you will not be able to access and execute the enterprise service in system HU2, but I hope that this little sample still provides some useful insights for you.h5. Steps to test-drive the application in your environment

1.

*Download the sample code from

here

.*

There is a Readme.pdf in the downloaded archive that replicates the information of this blog. This way you can run through the steps also “offline”.0.1.

0.2.

Import the sample code to your SAP NetWeaver Developer Studio.

(You can skip the following details, if you already know how to do this.) 1. Unzip the downloaded archive.

2.

Move or copy the resulting directory ConsumeESOAPurchaseOrderDemo to your workspace directory, e.g. C:Documents and SettingsmyWindowsUserNameworkspace.0.1.

In your SAP NetWeaver Developer Studio navigate to File -> Import -> General -> Existing Projects into Workspace.0.1. Select your workspace directory as root directory.

0.2.

Select the new project ConsumeESOAPurchaseOrderDemo and click on Finish0.1.

Open the Web Dynpro perspective from the menu Window -> Open Perspective -> Web Dynpro.0.1.

A project with name ConsumeESOAPurchaseOrderDemo has been created and can be edited in the Web Dynpro Explorer view.0.1.

0.2.

Repair and rebuild the project, create the archive and deploy it to your SAP NetWeaver CE server.

(Again, you can skip the following details, if you already know how to do this.) 1.

Right-click on the project name in the Web Dynpro Explorer and from the context menu choose Repair –> Project Structure and Classpath > Yes in pop-up ‘Confirm Repair of Project(s)’> OK in pop-up +’Repair Results’ +–> all errors should be gone in the Problems view0.1.

Right-click on the project name in the Web Dynpro Explorer and choose Rebuild Project.0.1.

Right-click on the project name in the Web Dynpro Explorer and choose Create Archive.0.1.

Right-click on the project name in the Web Dynpro Explorer and choose Deploy.0.1.

0.2.

Configure Web Service Destinations on your SAP NetWeaver CE Server.

(Don’t even think about skipping the details….) 1.

Open the SAP NetWeaver Administrator on http://<your host>:<your port>/nwa.0.1.

Go to SOA Management -> Technical Configuration0.1.

Configure the settings for your http proxy in System Global Settings:

!https://weblogs.sdn.sap.com/weblogs/images/132/System_Global_Settings.jpg|height=222|alt=System Global Settings|width=353|src=https://weblogs.sdn.sap.com/weblogs/images/132/System_Global_Settings.jpg|border=1!</body>

To report this post you need to login first.

11 Comments

You must be Logged on to comment or reply to a post.

  1. Swapnil Kulkarni
    Hi Rudolf,
    I am using CE 7.3 trial from SDN, but i am unable to do the settings mentioned in your blog regarding Web services (global proxy settings). Actually at the path mentioned i.e. Configuration Management -> Infrastructure -> Web Services Configuration there is no such “Web Services” tile on the page. The last one is the Trusted Systems.
    Please help.
    Thanking in anticipation,
    swapnil
    (0) 
    1. Rudolf Held Post author
      Hi Swapnil,

      thanks for pointing that out. The path has changed with support package 3. You will find the configurations in:
      SOA Management -> Technical Configuration -> System Global Settings
      and
      SOA Management -> Technical Configuration -> Destination Template Management

      I have updated the blog accordingly.

      Best regards,
      Rudi

      (0) 
  2. Vivek Mishra
    Dear Rudi
    I am following the steps as you said, but dont know why I am getting Null Pointer Exception and after some seconds the Null pointer Exception window goes off and blank page is visible.

    In NWA > SOA Management > System Global Settings > I am putting my Company Proxy and the port.
    In the exclude list I put *.sap.corp;localhost;*.sap-ag.de;sap.erp.esworkplace.sap.com;erp.esworkplace.sap.com
    and also tried by keeping this field empty but no answer is coming.
    Please help me out

    Thanks & regards
    Vivek Kumar

    (0) 
    1. Swapna Priya Neemkar
      Hi,

      Could you find any answer or solution for the Null Pointer exception?

      Even I am receiving the same error. Trying to resolve by looking at code however, things seem to be find coding wise.

      Any help would be great.

      Thanks in advance.

      Regards,
      Swapna Priya.

      (0) 
  3. Sai Krishna T
    Hi Rudolf, everyone,

    I am trying this example on CE7.1 SR5 [trial] & using NWDS 7.1 CE SP7

    I have configured the proxy and webservice destinations as said in the weblog accordingly.

    But, i still get this error:
    Exception on execution of web service on destination ESOA_PO_EXECUTION_DEST for operation PurchaseOrderByIDQueryResponse_In in interface {http://sap.com/xi/APPL/SE/Global}PurchaseOrderByIDQueryResponse_In

    Any idea why is this exception occuring.

    I see this in the WebServices Log Viewer:

    TimeStamp:::: 6/3/09 3:29:22 PM IST
    WSRole:::: CONSUMER
    Interface:::: 60d0fc57:121a4805dfe:-7fff_{http://sap.com/xi/APPL/SE/Global}PurchaseOrderByIDQueryResponse_In

    Thanks in advance,
    -SK

    (0) 
  4. Klaus Billig

    Hi Rudolf,

    I would like to execute the instructions given in your famous  blog 🙂 .

    Your blog is referenced from the book “Java Programming with SAP NetWeaver”.

    However, I have a problem which you might be able to help me overcome:

    The link https://www.sdn.sap.com/irj/sdn/esareg directs me only to the main page http://scn.sap.com/welcome . I have no clue how to get to the registration page.

    Is this page no longer available or can you tell me where it was moved so that I can access it?

    Kind regards,

    Klaus

    (0) 

Leave a Reply