on 06-22-2010 4:30 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
>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
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
.
-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.