cancel
Showing results for 
Search instead for 
Did you mean: 

How to instantiate an outbound proxy for Webservice or XI?

0 Kudos

Dear all,

I have got a question for you. How do I instantiate an outbound proxy for webservice or XI use provided that it is not possible to use the class CL_BS_SOA_ASYNCPRX_OUT (method CREATE_PROXIES). Is there any alternative class or should I program like this:

  • 1. If a Service Group was passed or determined, instantiate through

  • the Service Group Handler

otherwise

  • 2. Create the Proxy Class instace 'directly' as in the good old times...

CREATE OBJECT lr_proxy.

Thanks,

Paul

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi,

how do I create a default logical port for XI runtime? Is it SOAMANAGER->Single Service Configuration->Consumer Proxy->Create Logical Port->Process Integration Runtime?

Thanks,

Paul

Former Member
0 Kudos

Hi Paul,

You can use the blog below as a reference (see section on setting up logical port):

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17964%3Futm_campaign%3DFeed%253A%2520SAPNetworkWeblogs%2520%28SAP%2520Network%2520Weblogs%29%26utm_source%3Dtwitterfeed%26page%3Dlast%26utm_medium%3Dtwitter] [original link is broken] [original link is broken] [original link is broken];

While setting up the logical port you'll see a tick box to enable the port as a default for the consumer proxy.

Regards, Trevor

0 Kudos

Hi,

fine, but how do I make sure that the default logical port will point to XI?

Thanks,

Paul

Former Member
0 Kudos

You would first model you Service Interface/s (outbound & inbound depending on your scenario) in XI/PI ESR. Do mapping/s. Do additional runtime config in integration directory for receiver/s.

In the Abap backend you would generate a consumer proxy from the outbout Service Interface you've designed in XI/PI ESR (that's the link). Go to SOAMANAGER & config the logical port for the consumer proxy. When you initiate the consumer proxy from Abap it now knows which logical port & outbound service interface the call needs to go to. From there PI does the necessary mapping/routing etc...

Regards, Trevor

Former Member
0 Kudos

>but how do I make sure that the default logical port will point to XI?

Select XI runtime while creating logical port (default behavior is always XI runtime).

Regards,

Gourav

0 Kudos

Hi,

let´s assume I do not configure logical port for XI runtime in SOAMANAGER and call my proxy without logical port. Does the proxy call XI runtime by default?

Thanks,

Paul

Former Member
0 Kudos

>Does the proxy call XI runtime by default?

Yes

from SAP help:

>Client proxies that use the XI runtime do not require a logical port. However, you may still want to create a logical port because, for example, a customer wants to be able to switch between the XI runtime and the Web service runtime as required. To set the XI runtime for a port, choose Exchange Infrastructure on the Runtime tab page source: http://help.sap.com/saphelp_nw04/helpdata/en/a8/b5222e29e44e6190eb8892655b97fd/content.htm

Proxy call: http://help.sap.com/saphelp_nw04/helpdata/en/3e/a35c3cff8ca92be10000000a114084/content.htm

Regards,

Gourav

0 Kudos

Thanks a lot.

former_member186158
Active Participant
0 Kudos

What's your ABAP SP level. the followingexample is SP09.

DATA prxy TYPE REF TO ZDCO_CUSTOMER_OUT.

CREATE OBJECT prxy.

......

CALL METHOD prxy->EXECUTE_ASYNCHRONOUS

EXPORTING

OUTPUT = it.

commit work

.

-


0 Kudos

Hi,

the system status is SAP_BASIS 702 0004. How do I control to call XI or Webservice proxy (logical port)? What if I use Service Groups and logical receiver determination so that my outbound proxy could possibly have multiple receiver/provider?

Thanks,

Paul

Former Member
0 Kudos

>What if I use Service Groups and logical receiver determination so that my outbound proxy could possibly have multiple receiver/provider?

Dynamic reciever determination will happen inside XI (if you are calling XI proxy), you just need to call proxy in usual way. In case of of multiple webservice receiver then create multiple logical port and include them while calling proxy.

Regards,

Gourav

0 Kudos

Hi,

so does it mean do following steps:

1. CREATE OBJECT proxy (without logical port for XI)

2. If proxy was not instantiated then

2 a. Instantiate service group handler

2 b. Get web service

2 c. Instantiate proxy

Is that correct?

Thanks,

Paul

Former Member
0 Kudos

Hi,

You can also create default logical port for XI runtime, since it is default when you do not specify any LP in proxy call then XI will be called by default.

I am doubtful why proxy wont instantiate but if you want to use SOAP runtime then you need to specify LP.

Regards,

Gourav

Former Member
0 Kudos

Hi Paul,

I'm struggling a bit to understand your question.

If you want to instantiate an outbound proxy for a webservice you would need to do it around a specific provider WSDL or a service interface contract modeled in SAP PI/XI.

Why are you trying to do it manually when everything will be created for you when you generate an outbound proxy from a provider WSDL or a SAP PI Service Interface?

Regards, Trevor

0 Kudos

Hi,

well it is not about generation/creation of proxies as you do with inside out / outside in (ESR/SPROXY). The point is how to call a proxy method in case it should be webservice or xi?

Thanks,

Paul