cancel
Showing results for 
Search instead for 
Did you mean: 

difference b/w server Proxy and Client Proxy.

Former Member
0 Kudos

Hi experts,

What is the difference b/w server Proxy and Client Proxy. when we will use client proxy and when we will use sever proxy?

Could anybody help me ?

Thanks in advance.....

Manoj

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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 ( CLIENT 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 ( SERVER 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.

Just go through these links:

How to create proxy.

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

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

Outbound Proxy (Client Proxy)

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

How to Activate Proxy.

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

File to R/3 via ABAP Proxy with good example

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

Regards,

Sarvesh

Former Member
0 Kudos

Thank you very much for you all ..

Manoj

Former Member
0 Kudos

Hi,

Please reward points to all and please close all your ans threads

Regards

Bopanna

Former Member
0 Kudos

My pleasure. Can you assign the points for our effort.

Former Member
0 Kudos

Hi,

Client proxy which is an OUTBOUND proxy,sending data from SAP system,Server proxy id INBOUND proxy which receive data from Legacy side to SAP.

Client Proxy

You can use a client proxy to do the following:

· To call a service using the SAP XI Integration Server

· To call a Web service

How the server proxy is used depends on the runtime configuration.

Customers that do not have SAP XI Release 3.0 or higher installed cannot access the Integration Repository or exchange messages directly using XI.

The general programming model of the ABAP proxy runtime supports synchronous communication. The XI runtime also supports asynchronous communication.

Procedure

To send a message using the ABAP proxy runtime, call the corresponding client proxy in your application program.

You can select a client proxy in the Object Navigator and drag it to the editor by using Drag&Drop.

...

1. Declare the following variables:

DATA:

  • Reference variables for proxy and exception class

lo_clientProxy TYPE REF TO ,

lo_sys_exception TYPE REF TO cx_ai_system_fault,

  • Structures to set and get message content

ls_request TYPE ,

ls_response TYPE .

2. Complete the structure ls_request for the request message.

3. Instantiate your client proxy.

TRY.

  • create proxy client

CREATE OBJECT lo_clientProxy( ‘LOGICAL_PORT_NAME’ ).

LOGICAL_PORT_NAME is the name of the logical port that you want to use, which is used to define the receiver. You can omit this parameter if you are using a default port or the XI runtime (see runtime configuration).

4. To send a message, call the corresponding client proxy method. WSDL allows several such methods (specified by the element ). In XI, there is only one method, with the default name EXECUTE_SYNCHRONOUS or EXECUTE_ASYNCHRONOUS. Catch at least the exception cx_ai_system_fault:

  • do synchronous client proxy call

CALL METHOD lo_clientProxy->execute_synchronous

EXPORTING output = ls_request

IMPORTING input = ls_response.

CATCH cx_ai_system_fault INTO lo_sys_exception.

  • Error handling

ENDTRY.

Server Proxy

Web services are primarily used to publish an implemented service already existing in a system so that it can be called by other users (for example, by using a client proxy on the SAP Web AS). However, it is also possible to describe a service interface in WSDL independently of the system, and then implement it later in an application system.

The ABAP proxy runtime supports this scenario, with the limitation that you can only generate server proxies using the message interfaces of the XI Integration Repository. You can use a server proxy to do the following:

· To implement a service that can be addressed by the SAP XI Integration Server

· To implement a service that can be called as a Web service

How the server proxy is used depends on the runtime configuration.

Customers that do not have SAP XI Release 3.0 or higher installed cannot access the Integration Repository or exchange messages directly using XI.

Procedure

..

Server proxies are ABAP object interfaces. Implement a class for your generated ABAP object interface and enter it on the Properties tab page of the server proxy by calling transaction SE80 or transaction SPROXY. Upon receipt of a message, the ABAP proxy runtime calls the method EXECUTE_SYNCHRONOUS of the implementing class (in asynchronous communication: EXECUTE_ASYNCHRONOUS).

Therefore, the application must simply implement the class for the server proxy. Proxy generation automatically creates a class with an appropriate signature and empty method. The name of this class is located on the tab page Properties. The application can, however, also enter any class with a suitable signature

Regards,

Phani

Reward points if Helpful

Former Member
0 Kudos

Hi

Manoj

Client proxy means proxy in Sender System, and Server Proxy means proxy in Receiver System.

Have a look to the following links:

ABAP Proxy Runtime

Programming with Client and Server Proxies

ABAP Proxies in XI(Client Proxy)

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

ABAP Server Proxies

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

Thanks

Abhishek

Former Member
0 Kudos

Hi,

When ever you are Using the Proxy in Sender Side i.e Outbound means , we will call it as Client Proxy

Inbound Proxies are called as Server Proxies.

Please look into these BLOGS to get more clarity

ABAp Server Proxies

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

ABAP Client Proxies

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

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

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3022-- [original link is broken] [original link is broken] [original link is broken]

How do you activate ABAP Proxies?

/people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems

Use of proxies

Regards

Seshagiri

Former Member
0 Kudos

hi

Proxies are essentially the APIs, or the programming lines of code, that are generated for the target application language like ABAP/JAVA/.Net.

These application languages use "executable interfaces" to exchange messages in SOAP/XML with external applications.

As we know, the role of SAP XI’s integration broker is basically to integrate SAP and non-SAP systems, as in the integration of an SAP R/3 system with a database using adapters. SAP XI provides various adapters to integrate different types of systems.

But in some of real-time scenarios, it’s not always a particular type of business system that has to send/receive messages with SAPXI; it can also be an application like ABAP or Java. To cater to these needs, SAP XI provides different ways to generate interfaces in ABAP and JAVA – and these interfaces are known as proxies.

ABAP proxies are generated using the transaction SPROXY (in SAP Web AS 6.20 and above); for Java proxies, the Integration Builder tool is used.

1.outbound proxy knowns as client proxy,

2. and inbound proxy is knowing as server proxy. in client proxy client is sending data to XI and in server proxy Xi is passing the data to any aplication/server. .

Thanks

Kunaal abhijit masih

Former Member
0 Kudos

Hi,

Difference is:

Cleint proxy is called as Outbound proxy as u r sending data from R3 to XI. and Server proxy is called as Inbound proxy as U r sending data from XI to R3.

Client proxy:

U fetch the data from R3 table and sent to Xi where as the data is inserted in R3 table in Server proxy.

Thnx

Chirag