Consuming SAP Enterprise Services with Microsoft.NET Framework 3.0 Take It ESE!

Similar documents
Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

Configuring Distribution List in Compliant User Provisioning

How To Configure MDM to Work with Oracle ASM-Based Products

Analyzing Sales Data for Choosing Forecast Strategies

SAP GRC Access Control: Background jobs for risk analysis and remediation (formerly Virsa Compliance Calibrator)

How to configure BusinessObjects Enterprise with Citrix Presentation Server 4.0

Methodology to Implement SAP Process Integration

Utilities for downloading and uploading OO ABAP classes in XML format

Posting Messages into XI

Developing Applications for Integration between PI and SAP ERP in Different Network Domains or Landscapes

Roster Configuration (Payroll) in SAP ECC 6.0 Tips & Tricks

CREATING A PURCHASE ORDER STORE RECORD WEB SERVICE

Extract Archived Data from SAP ERP

Backup & Restore with SAP BPC (MS SQL 2005)

3 rd party Service Desk interface

Implementing Outlook Integration for SAP Business One

Performance Best Practices Guide for SAP NetWeaver Portal 7.3

prioritize XI messages on integration server

SAP Master Data Governance- Hiding fields in the change request User Interface

How to Configure and Trouble Shoot Notification for Process Control 2.5

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

Ronald Bueck SBO Product Definition

Budget Control by Cost Center

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

Integrate Third Party Collaboration Tools in the SAP NetWeaver Portal. SAP NetWeaver Product Management

Debugging Portal Applications

E-Recruiting Job Board Integration using XI

Integrating Easy Document Management System in SAP DMS

Siteco Relies on SDN for its SAP CRM 5.0 Upgrade

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Understanding HR Schema and PCR with an Example

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

How To... Call BEx Web Applications from SAP BusinessObjects Dashboards (Xcelsius) and vice versa

User Experience in Custom Apps

Sales Rush Sales Order Processing S01- Lean Baseline Package. SAP Lean Baseline Package Version: V1.500 Country: UK Language: EN Date: February 2006

Data Archiving in CRM: a Brief Overview

Enabling Full-Text Search for Business Objects in mysap ERP

SAP NetWeaver MDM 5.5 SP3 SAP Portal iviews Installation & Configuration. Ron Hendrickx SAP NetWeaver RIG Americas Foundation Team

How To Balance In Sap Bw

How to Create Web Dynpro-Based iviews. Based on SAP NetWeaver 04 Stack 09. Jochen Guertler

USDL XG WP3 SAP use case. Kay Kadner

Enterprise Software - Applications, Technologies and Programming

Using SAP Logon Tickets for Single Sign on to Microsoft based web applications

Process Archiving using NetWeaver Business Process Management

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Problems with your Data Model in SAP NetWeaver MDM Do s and Don ts

Third Party Digital Asset Management Integration

ARCHIVING OF IDOCS IN SAP

HR400 SAP ERP HCM Payroll Configuration

Sending Additional Files from SAP Netweaver PI to third Party System

How To... Integrate Custom Formulas into the Formula Builder

How to Create a Support Message in SAP Service Marketplace

Log Analysis Tool for SAP NetWeaver AS Java

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

How to Schedule Report Execution and Mailing

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

Consume an External Web Service in a Nutshell with good old ABAP

OData in a Nutshell. August 2011 INTERNAL

Collaboration Technology Support Center - Microsoft - Collaboration Brief

Data Source Enhancement Using User Exit

Sample Universe on Microsoft OLAP Cube

Single Sign-On between SAP Portal and SuccessFactors

Intelligent Business Operations Chapter 1: Overview & Strategy

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

Accounts Receivable. SAP Best Practices

Monitoring and Management of Landscapes with SAP NetWeaver Administrator. Dieter Krieger, SAP AG

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

Workflow extended notifications

Integration of SAP Netweaver User Management with LDAP

Variable Exit in Sap BI How to Start

Global Transport Label - General Motors -

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

K in Identify the differences between the universe design tool and the information design tool

SAP CCMS Monitors Microsoft Windows Eventlog

SAP Central Process Scheduling (CPS) 8.0 by Redwood

Integration of Universal Worklist into Microsoft Office SharePoint

Integration of SAP central user administration with Microsoft Active Directory

RUN BETTER Become a Best-Run Business with Remote Support Platform for SAP Business One

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

DBA Cockpit for Oracle

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

Configuring Single Sign-on for SAP HANA

SAP Sales and Operations Planning Software Product (xsop)

Mass Maintenance of Procurement Data in SAP

SAP Service Tools for Performance Analysis

SAP NetWeaver BRM 7.3

BW Workspaces Use Cases

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

Using User Exit for Variables in BEx Reporting

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

mysap ERP Talent Management Dr. Christian Acosta-Flamma

Transcription:

Consuming SAP Enterprise Services with Microsoft.NET Framework 3.0 Take It ESE! Applies to: SAP Enterprise Services Explorer 1.1 for Microsoft.NET (ES Explorer 1.1 for.net, ESE 1.1 for.net) For more information, visit the Interoperability -.NET homepage. Summary This document demonstrates how easily SAP Enterprise Services could be consumed with Visual Studio 2005 and Microsoft.NET Framework 3.0 using ES Explorer 1.1 for.net. It includes an example of creating Windows Communication Foundation (WCF) client for SAP Enterprise Service. Author: Rima Rudnik-Sirich Company: SAP Created on: 12 January 2009 Author Bio Rima Rudnik-Sirich is a software engineer in the SAP NetWeaver R&D organization in SAP Labs Israel, where she is actively involved in the development of tools for the.net interoperability area (PDK for.net, ES Explorer for.net). Before joining SAP in 2003, she held software engineering positions in Israeli Defense Forces. Rima holds a B.A. degree in Mathematics and Computer Sciences from Israel Institute of Technology (Technion). 2009 SAP AG 1

Table of Content Requirements...3 Software...3 Connection and credentials...3 Configuring ES Explorer Settings...4 Developing an application...4 Discovering a service...4 Adding a Code...6 Setting App.config file...8 Testing Your Application...9 Related Content...9 Related Content...10 Copyright...11 2009 SAP AG 2

Requirements Software Microsoft Visual Studio 2005 Professional Edition Microsoft.NET Framework 3.0 Windows SDK v.6.0 SAP Enterprise Services Explorer 1.1 for.net Connection and credentials Connection and authentication parameters (user name and password) for the Services Registry from ES Workplace Configuration on SDN Credentials (user name and password) for HU2 ES Workplace back-end system. If you don t have credentials for HU2 obtain it by requesting a user account 2009 SAP AG 3

Configuring ES Explorer Settings Open Visual Studio, choose Tools -> Options -> SAP ES Explorer -> Services Registry Settings, and configure the ES Explorer properties as follows: TASK Services Registry URL Authentication type User name Proxy Service discovery mode SERVICE DISCOVERY http://sr.esworkplace.sap.com/servicesregistrysiservice/servicesregistrysiport Basic sruser Use default proxy server Search Developing an application Discovering a service 1. In Visual Studio, create a Console Application project. 2. In the project context menu, choose Add SAP Enterprise Service... 3. In the logon screen of SAP Enterprise Services Explorer for Microsoft.NET wizard, enter the ES Workplace password and click Next. 4. In the Search Services Registry screen, enter the following search parameters and click Next: PROPERTY VALUE PROPERTY VALUE Search by Porttype name Service state Configured Search for *customer*by*address* Physical system HU2 2009 SAP AG 4

5. From the table in the Select Service screen, choose CustomerSimpleByNameAndAddressQueryResponse_In and click Next. 6. In the Connect to <server> dialog box, enter your credentials (user name and password) for HU2 back-end system. 7. In the Add Service Reference screen, change the Service reference name to CustomerByName, in Reference Type group choose WCF Reference and click Finish. 2009 SAP AG 5

Adding a Code Add the following code to your Program module: static CustomerSimpleByNameAndAddressQueryMessage_sync BuildQuery(string name) CustomerSimpleByNameAndAddressQueryMessage_sync query = new CustomerSimpleByNameAndAddressQueryMessage_sync(); CustomerSimpleByNameAndAddressQueryMessage_syncCustomerSimpleSelectionByNameAndAddres s querydata = new CustomerSimpleByNameAndAddressQueryMessage_syncCustomerSimpleSelectionByNameAndAddres s(); OrganisationName oname = new OrganisationName(); oname.firstlinename = name; querydata.customername = oname; querydata.customeraddresscountrycode = "DE"; query.customersimpleselectionbynameandaddress = querydata; return query; static void PrintResults(CustomerSimpleByNameAndAddressResponseMessage_syncCustomer[] customers) if (customers!= null) Console.WriteLine("Customers found: " + customers.length.tostring() + "\n"); Console.WriteLine("CustomerID" + "\t" + "FirstLineName"); Console.WriteLine("----------" + "\t" + "-------------"); foreach (CustomerSimpleByNameAndAddressResponseMessage_syncCustomer customer in customers) Console.WriteLine(customer.ID.Value + "\t" + customer.basicdata.common.name.firstlinename); else Console.WriteLine("Customers found: 0"); static void Main(string[] args) try CustomerSimpleByNameAndAddressQueryResponse_InClient service = new CustomerSimpleByNameAndAddressQueryResponse_InClient(); service.clientcredentials.username.username = "Your_HU2_user_name"; service.clientcredentials.username.password = "Your_HU2_password"; CustomerSimpleByNameAndAddressQueryMessage_sync query = BuildQuery("Ju*"); CustomerSimpleByNameAndAddressResponseMessage_sync results = service.customersimplebynameandaddressqueryresponse_in(query); 2009 SAP AG 6

PrintResults(results.Customer); Console.Read(); catch (Exception e) Console.WriteLine(e.ToString()); Console.Read(); 2009 SAP AG 7

Setting App.config file Set the app.config file to following security settings: <security mode="transportcredentialonly"> <transport clientcredentialtype="basic" proxycredentialtype="none" realm="" /> <message clientcredentialtype="username" algorithmsuite="default" /> </security> 2009 SAP AG 8

Testing Your Application Build and start your application. The search results are displayed on the console: 2009 SAP AG 9

Related Content Download SAP Enterprise Services Explorer 1.1 for Microsoft.NET Introducing SAP Enterprise Services Explorer for Microsoft.NET How to Consume Enterprise Services with Microsoft.NET 3.0 and Visual Studio 2005 For more information, visit the Interoperability -.NET homepage. 2009 SAP AG 10

Copyright 2008 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iseries, pseries, xseries, zseries, System i, System i5, System p, System p5, System x, System z, System z9, z/os, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix, i5/os, POWER, POWER5, POWER5+, OpenPower and PowerPC are trademarks or registered trademarks of IBM Corporation. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mysap, mysap.com, xapps, xapp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. These materials are provided as is without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. Any software coding and/or code lines/strings ( Code ) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent. 2009 SAP AG 11