cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy

Former Member
0 Kudos

hi all,

i am a beginner in xi.can anyone plz expain what are proxies ? when do we use it?can anyone plz give me step by step explanation of a proxy scenario?

Full points are guaranteed.

Regards

Bhasker

Accepted Solutions (1)

Accepted Solutions (1)

former_member859847
Active Contributor
0 Kudos

Hi

Proxy generation enables you to create proxies in application systems. Proxies encapsulate the creation or parsing of XML messages and the communication with the relevant runtime components required to send or receive the messages. The proxy runtime controls these processes and can itself be controlled in application programs by means of additional methods.

Since the communication between the sender and receiver is decoupled, you can use proxies to exchange messages with various different communication parties, and also by using adapters. However, this section of the documentation only discusses the programming model for the proxy runtime.

There are two types of Proxies.

Java Proxies and ABAP Proxies.

Java proxies are used when java applications needs to send and receive data and ABAP proxies are used when ABAP applications needs to send and receive data.

Please go through below docs

XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments

/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments

/people/siva.maranani/blog/2005/04/03/abap-server-proxies - ABAP Server Proxy

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Client Proxy

ABAP Proxy Runtime

http://help.sap.com/saphelp_nw04s/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm

Setting Up Point-to-Point Connections with proxy

http://help.sap.com/saphelp_nw04s/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm

Reliable Messaging ? EOIO in ABAP Proxies

/people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies

/people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d4900e81...

Java Proxies and SAP Exchange Infrastructure - The Inside Story, Part 1

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

Java Proxies and SAP Exchange Infrastructure - The Inside Story, Part 2

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903...

SAP Exchange Infrastructure 3.0: Java Proxy Runtime 3.0 - J2EE Integration

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30572c6a-d311-2a10-99ab-f646ec3b...

How to Work with Java Proxies

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd2...

Java Proxies in XI

https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+proxy&adv=false&sortby=cm_rnd_...

Java Proxies in XI

https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+proxy&adv=false&sortby=cm_rnd_...

SAP Network Blog: Pre requisites for Client Java Proxies

/people/yugapreetha.t/blog/2007/12/03/pre-requisites-for-client-java-proxies

warm regards

mahesh.

Answers (7)

Answers (7)

former_member193376
Active Contributor
0 Kudos

Proxies basically avoids the usage of adapters in the XI, so basically u dont need to separtely do configuration when a scenario is designed by using proxies,

Based on the requirement u must choose which proxie to use.

Proxies can be categorized in to 2 types

1. ABAP Proxy 2. JAVA Proxy

ABAP proxies are used when u need to interact with the R/3 system,

and in other means to interact with the webservices we may use the java proxy,

Again proxies can be categorized based on the usage i.e if u use the proxy in sender side then we call such proxies as an client proxy , and if we use it in other side we call it as server proxy

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

This link will give you better understanding of proxies.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

Proxies Help file

http://help.sap.com/saphelp_nw04/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm

How to create proxy.

http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm

How to Activate Proxy.

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

ABAP Server Proxies (Inbound Proxy)

/people/siva.maranani/blog/2005/04/03/abap-server-proxies

OutBound Proxy (Client Proxy)

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

File to R/3 via ABAP Proxy with good example

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm

Synchronous Proxies:

Outbound Synchronous Proxy

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bp...

Inbound Synchronous Proxy

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsa...

Thanks,

Saiyog Gonsalves

(Reward Points)

Former Member
0 Kudos

HI

The literal definition of a proxy is an object / process authorized to act for another; an agent or a substitute. In simpler terms, proxies in the XI context are objects used to encapsulate the creation (from a sender system) or parsing of XML (at a receiver system) as well as the communication with the relevant runtime components required to send or receive those messages. The Proxy Runtime controls these objects / processes, and can itself be controlled by the applications it communicates with.

The Proxy Runtime currently has the following components available:

1. ABAP Proxy Runtime – Communication using XI or Web Services

a. Web Service Runtime

2. Java Proxy Runtime – Communication using XI (J2EE)

The objects that the Proxy Runtime then controls are created via Proxy Generation, for both ABAP and Java. In the following sections a ‘client’ proxy is used by an application to send messages outside of the system it resides in (normally to the IS in this context). Conversely, a ‘server’ proxy is used by an application to receive messages from sources outside itself (again, normally the IS in this context).

ABAP Proxy Runtime:

The ABAP Proxy Runtime is used within SAP Web AS 6.40 environments. It provides a uniform programming model for the following types of communication scenarios:

1. From / To an ABAP Application: This method is used by ABAP Applications (in a Web AS 6.4 or greater system) for exchanging messages with the IS using ABAP Proxies. Both synchronous and asynchronous exchanges are supported.

In an ABAP Proxy client scenario, an ABAP application utilizes an ABAP Proxy to send a message from itself to the IS in XI Protocol (XML) format. Conversely in a server scenario, the ABAP Proxy receives a XML message from the IS and converts it to be received by the ABAP Application.

ABAP Proxies are created via ABAP Proxy generation.

2. From / To an ABAP Web Service:The Web Service side enables the following scenarios:

1. Client Proxy only: Allows calling a Web Service on the Internet (synchronous only). This does not require XI services or the IS

2. Server Proxy only: Allows using an inbound Message Interface as a Web Service (synchronous only). Generating the server proxy requires a Message Interface within XI (Repository)

3. Point to Point: If none of the XI services are required (mapping, routing, multiple receivers, etc) then messages can be sent directly using the Web Services Framework from one SAP Web AS 6.40 system to another

As the focus of this training is XI specific, no further attention will be given to this area in subsequent sections.

JAVA Proxy :

java Proxy Runtime enables and manages connectivity between Java Proxies and the IS. It can be installed on SAP J2EE Engine Release 6.30 SP3 or higher, and currently this J2EE engine is the only one supported by the Java Proxy Runtime. As of SAP NetWeaver 2004 the Java Proxy Runtime is installed with and integrated into the J2EE Adapter Engine. This Adapter Engine implements queuing, persistence and monitoring services required to guarantee asynchronous communications. However, both synchronous and asynchronous communications are supported.

In a Java Proxy client scenario, an Java application utilizes Proxy Beans to connect to the Java Proxy to send a message from itself to the IS in XI Protocol (XML) format. Conversely in a server scenario, the Java Proxy (consisting of a EJB bean for message handling) receives a XML message from the IS. This bean in turn calls the application bean (Java Proxy Bean in the diagram above) registered for that inbound interface. Beans are used in sending and receiving messages from a J2EE application.

Java Proxies are created via Java Proxy Generation.

Proxy Generation:

Proxy Generation converts non-language-specific interface descriptions in WSDL into Proxies. In WSDL, messages that are transferred are described using XSD. Remember that Message Interfaces created in the Repository are WSDL / XSD.

Proxy Generation is based upon these Message Interfaces, and is created differently based on:

1. Synchronous vs. Asynchronous transfer

2. Inbound vs. Outbound direction

3. ABAP vs. Java target language

This generation creates classes and structures for the data types and interfaces written in WSDL. Client proxies are created from outbound Message Interfaces, server proxies from inbound Message Interfaces. A single Message Interface can be used to generate both Java and ABAP proxies to be used in multiple, disparate systems

Proxy Generation is available on applications based as early on SAP Web AS 6.20

Refer the following links for furtehr information

/people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation

Client Proxy - /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Server Proxy - /people/siva.maranani/blog/2005/04/03/abap-server-proxies

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies - Activate Proxy

/people/siva.maranani/blog/2005/04/03/abap-server-proxies - ABAP Server Proxy

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Client Proxy

/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - ABAP Proxy

http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41e08c90-0201-0010-9197-d8774336...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd...

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

http://help.sap.com/saphelp_nw2004s/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm

Reward points if found useful

regards

Edited by: vemuganti naga phalguna on Apr 23, 2008 6:03 PM

Edited by: vemuganti naga phalguna on Apr 23, 2008 6:06 PM

Former Member
0 Kudos
Former Member
0 Kudos

hey,

These links will really help you to configure the proxy on your R3 server and then to create proxies.

Proxy configuration: First time you need to configure the proxy in order to access the inerfaces that you hav made in XI(from R3). This blog will help you to do this configuration.

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

These two blogs will help you once you are done with the configuration of the proxy.As know you would be able to access the objects that you have created in XI from the R3 system you can create your proxies. Go through these blogs will really help you to configure and create Abap proxy.

ABAP Proxy

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Enhanced ABAP procy

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

former_member556603
Active Contributor
0 Kudos

Hello Bhaskar,

Two types of Proxy's:

1) ABAP proxy

Outbound SAP R/3 or ECC to XI

INbound Xi to SAP ECC or SAPR/3)

2) Java proxy.

Fallow the fallowing Blogs..

How to create proxy.

http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm

How to Activate Proxy.

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

ABAP Server Proxies (Inbound Proxy)

/people/siva.maranani/blog/2005/04/03/abap-server-proxies

OutBound Proxy (Client Proxy)

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

File to R/3 via ABAP Proxy with good example

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm

Synchronous Proxies:

Outbound Synchronous Proxy

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bp...

Inbound Synchronous Proxy

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsa...

Thanks,

Satya Kumar..

Reward points if it is useful..

Former Member
0 Kudos

Hi,

In addition to above replies i would like to include few points from my side too.

1. Proxies can be a server proxy or client proxy. In our scenarios we require proxies to send or upload the data from/into SAP system.

2. One more thing proxies can be used if your WAS ≥ 6.2.

3. Use Tcode SPROXY into R/3 system for proxy use.

4. To send the data from R/3 system we use OUTBOUND PROXY. In Outbound proxy you will simply write an abap code to fetch the data from R/3 tables and then send it to XI. Below is the sample code to send the data from R/3 to XI.

REPORT zblog_abap_proxy.

DATA prxy TYPE REF TO zblogco_proxy_interface_ob.

*

CREATE OBJECT prxy.

DATA it TYPE zblogemp_profile_msg.

TRY.

it-emp_profile_msg-emp_name = 'Sarvesh'.

it-emp_profile_msg-empno = '01212'.

it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.

CALL METHOD prxy->execute_asynchronous

EXPORTING

output = it.

commit work.

CATCH cx_ai_system_fault .

DATA fault TYPE REF TO cx_ai_system_fault .

CREATE OBJECT fault.

WRITE 😕 fault->errortext.

ENDTRY.

Receiver adapter configurations should be done in the integration directory and the necessary sender/receiver binding should be appropriately configured. We need not do any sender adapter configurations as we are using proxies.

5. To receive data into R/3 system we use INBOUND PROXY. In this case data is picked up by XI and send it to R/3 system via XI adapter into proxy class. Inside the inbound proxy we careate an internal table to take the data from XI and then simply by using the ABAP code we update the data inot R/3 table. BAPI can also be used inside the proxy to update the data into r/3.

I hope this will clear few doubts in proxy.

Regards,

Sarvesh

Former Member
0 Kudos

check the links (given above)

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903...

Apart from those, u might also want to check these out

SAP Network Blog: XI/PI: ABAP Proxies - keep them clean

/people/michal.krawczyk2/blog/2007/04/29/xipi-abap-proxies--keep-them-clean

SAP Network Blog: Pre requisites for Client Java Proxies

/people/yugapreetha.t/blog/2007/12/03/pre-requisites-for-client-java-proxies

SAP Network Blog: Dynamic Proxies in ABAP-Part I

/people/achim.bangert/blog/2006/08/02/dynamic-proxies-in-abap

SAP Network Blog: Dynamic Proxies in ABAP-Part III

/people/achim.bangert/blog/2006/08/24/dynamic-proxies-in-abap-part-3-code-generation

SAP Network Blog: Concept of proxy generation

/people/srinivas.gv/blog/2005/09/27/concept-of-proxy-generation

Kind regards

krishna

Former Member
0 Kudos

Hi,

Proxy is one of the way by which R3 system can interact with XI.

Example is:

if u wanted to send some data from R3 table to some legacy system through XI then proxy is the best way by which u can send data. in reverse case from legascy sytem to R3 system.

Prxy are of two types:

ABAP proxy -Outbound(R3 to XI) and INbound (Xi-R3)

Java proxy.

Refer the below weblog for more details:

First step is to ABAP Proxy configuration:

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

Client Proxy -

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

In this case you can define you scenario as a proxy to File. The blog explains the proxy part. Map the structure to a file and complete the scenario.

Please chekc this PDF :

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d49...

Server Proxy -

/people/siva.maranani/blog/2005/04/03/abap-server-proxies

File to Inbound Proxy:

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

Debugging Inbound Proxy:

/people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation

SPROXY not working:

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

Java proxy:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903...

chirag