cancel
Showing results for 
Search instead for 
Did you mean: 

Types of Proxies

Former Member
0 Kudos

Hi Experts,

Could any one help me in giving the details of Proxies. Types of proxies and use of proxies.

It would be highly appreciated if anyone give reply asap.

Thanks,

Satheesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Satheesh,

<b>1.</b> 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.

<b>2.</b> One more thing proxies can be used if your <b>WAS &#8805; 6.2</b>.

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

<b>4.</b> To send the data from R/3 system we use <b>OUTBOUND PROXY</b>. 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.

*

<b>CREATE OBJECT</b> prxy.

<b>DATA</b> it TYPE zblogemp_profile_msg.

<b>TRY.</b>

it-emp_profile_msg-emp_name = 'Sarvesh'.

it-emp_profile_msg-empno = '01212'.

it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.

<b>CALL METHOD</b> prxy->execute_asynchronous

EXPORTING

<b>output</b> = it.

commit work.

<b>CATCH cx_ai_system_fault .</b>

DATA fault TYPE REF TO cx_ai_system_fault .

CREATE OBJECT fault.

WRITE 😕 fault->errortext.

<b>ENDTRY.</b>

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.

<b>5.</b> To receive data into R/3 system we use <b>INBOUND PROXY</b>. 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

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi satheesh reddy ,

These r the details regarding proxy :

Proxy Generation

Proxy generation converts non-language-specific interface descriptions in WSDL into executable interfaces known as Proxies. Depending on the target programming language, you choose one of the following:

· ABAP proxy generation is part of the SAP Web AS 6.40. ABAP proxy generation enables you to generate proxies to communicate by using the Web service infrastructure and by using SAP Exchange Infrastructure. ABAP proxies that were generated from message interfaces in the Integration Repository (IR) can be used in both infrastructures. This means that if none of the Integration Server services are required for a proxy-to-proxy communication scenario in ABAP, you can use a point-to-point connection using the Web service infrastructure instead.

· Java proxy generation in the Integration Builder (Design) generates proxies from message interfaces in the Integration Repository. Java proxy generation packs the proxy objects in a Jar file, which you can save locally. You use the generated classes in J2EE applications on the SAP J2EE Engine.

You create proxy objects in the development system by using the proxy generation functions. They are transported and shipped by using the tools in the development system. There are separate tools in the Integration Repository

Introductory Notes

ABAP proxy generation gets the WSDL description for message interfaces from the Integration Repository (WSDL Web Service Description Language) by using http. In WSDL, data that is transferred using messages is described using XSD (XML Schema Definition Language).

The Integration Builder does not support the full range of WSDL (for message interfaces) and XSD (for data types) commands; this is not the case for WSDL in the Web service infrastructure, however.

Use

You can generate client or server proxies in ABAP to send or receive messages. You generate client proxies from outbound message interfaces and server proxies from inbound message interfaces.

Procedure

Generating Proxies By Using Transaction SPROXY

1. Call transaction SPROXY in the system in which you want to generate a client or server proxy.

The system displays a navigation tree on the left-hand side of the screen; it has the same structure as the interface maintenance tree in the Integration Builder. The interface objects are ordered according to software component version, namespace and object type (also see: ABAP Proxy Generation).

If no connection to the Integration Repository exists, the system only displays interface objects in the tree structure for which a proxy exists in the system.

2. Choose an interface object for which no proxy already exists. To create a proxy for this interface object, double click the context menu Create Proxy.

3. In the dialog box, specify the name of the package where you want to create the proxy objects. You can also specify a prefix for the names of all objects to be created to avoid naming conflicts with names that already exist in the system.

Generating Proxies By Using the Object Navigator (Transaction SE80)

1. Call the Object Navigator (transaction SE80) in the system in which you want to generate a client or server proxy. Select a package and call the context menu. Choose Create ® Enterprise Service / Web Service ® Proxy Object.

2. In the subsequent dialog window, choose the source of the WSDL document (URL/http destination, local file, UDDI or XI Repository).

If you choose XI Repository as the source of the WSDL document, the hierarchy of the software component versions in the Integration Repository is displayed in the subsequent window. The interface objects are ordered according to software component version, namespace and object type (also see: ABAP Proxy Generation). Choose an interface object for which no proxy already exists and confirm by choosing Copy.

3. In the subsequent dialog window, enter the name of the package where you want to create the proxy objects. You can also specify a prefix for the names of all objects to be created to avoid naming conflicts with names that already exist in the system.

Result

To generate proxies, the WSDL description of the message interface is read using HTTP. If no naming conflicts occur during the conversion, you can call the hierarchy of the generated objects from the tab page Structure. The objects are only then saved in the system once you choose Activate. Up to the point of activation, you can save metadata that contains all information for generation and that is managed by the transaction, and continue with generation at a later date.

These r the web-sites which give a step-by-step solution using proxies :

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/c9/74246d8ad2447799063d39013e9a11/content.htm

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

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

These r the blogs from SDN which give a detailed solution using different proxies :

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

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

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

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

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

/people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi

**********Please reward points if u find this useful

cheers,

gyanaraj

Former Member
0 Kudos

Satheesh,

Just go through this blog. This very good to make a start in learning ABAP Proxies. You will get step by step info inside this.

<b>File to R/3 via ABAP Proxy</b>

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

Regards,

Sarvesh

VijayKonam
Active Contributor
0 Kudos

Satheesh,

Simply speaking, proxies are nothing but programs written on the business systems, which implement some business logic that takes data from XI or sends data to XI.

This means, the business system can be an SAP or Java or a .NET system.

For SAP - you write code in ABAP.

For JAVA you use Java Proxy classes which can be generated directly from IR.

For MS based systems, you write the code in any web enabled language like .NET by generating the proxy classes using the WSDL of the respective interface. THis is nothing but the SOAP adapter involved scenarios.

Hope it helps u understand.

VJ

Former Member
0 Kudos

Hi,

Generating abap proxies..

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

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

/people/bhanu.thirumala/blog/2006/02/07/abap-proxy--xml-to-abap-transformation

Generating java proxies..

/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy

/people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy

Let us know if you need more deails.

Nilesh

agasthuri_doss
Active Contributor
0 Kudos

Hi,

ABAP and JAVA Proxy

Proxy are used to send if the data is Huge and performance is much better .

JAVA Proxies:

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...

ABAP Proxies:

/people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2

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

/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

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

/people/sukumar.natarajan/blog/2007/01/07/how-to-raise-alerts-from-abap-proxy

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

ON SDN TV

https://www.sdn.sap.com/irj/sdn/advancedsearch?query=abap%20proxy%20xi&cat=sdn_all&start=11#

Proxies communicate with the XI server by means of native SOAP calls over HTTP.

Regards

Agasthuri Doss