Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

consuming stateful web service via ABAP proxy

andy_dingfelder3
Participant
0 Kudos

Hi all,

I´ve got the following scenario. I´ve a ABAP proxy generated based on a WSDL file. The provider is a WebService provided by a tomcat server. (no PI etc. as middleware). The problem i´ve now is that the webservice is stateful so I need a stateful communication between my ABAP report (client) and the Web Service.

I´ve already found the possibiliy to switch on the feature "Session-Oriented Communication" on "Preconfiguration Tab" of the ABAP Proxy Screen. But unfortunately it´s not working.

Anybody knows whether general system settings has to be changed for this. Or anybody has other tips.

I´m currentliy working on the SAP Discovery System v3 which is a Netweaver 7.0.

Many thanks in advance for your answers,

Andy

1 ACCEPTED SOLUTION

former_member193964
Active Participant
0 Kudos

You can use Logial port for it in LPCONFIG ( Transaction). See this examplo Below:

TRY.

CREATE OBJECT my_proxy

EXPORTING

logical_port_name = 'LP01'.

CATCH cx_ai_system_fault.

ENDTRY.

TRY.

input-airline_id = p_carrid.

input-connection_id = p_connid.

input-flight_date = p_fldate.

CALL METHOD my_proxy->flight_get_detail

EXPORTING

input = input

IMPORTING

output = output.

CATCH cx_ai_system_fault.

CATCH cx_ai_application_fault.

ENTRY.

Its necessary create a connection in SM59 (type H) and setting in the call parameters logical port (LPCONFIG).

2 REPLIES 2

former_member193964
Active Participant
0 Kudos

You can use Logial port for it in LPCONFIG ( Transaction). See this examplo Below:

TRY.

CREATE OBJECT my_proxy

EXPORTING

logical_port_name = 'LP01'.

CATCH cx_ai_system_fault.

ENDTRY.

TRY.

input-airline_id = p_carrid.

input-connection_id = p_connid.

input-flight_date = p_fldate.

CALL METHOD my_proxy->flight_get_detail

EXPORTING

input = input

IMPORTING

output = output.

CATCH cx_ai_system_fault.

CATCH cx_ai_application_fault.

ENTRY.

Its necessary create a connection in SM59 (type H) and setting in the call parameters logical port (LPCONFIG).

0 Kudos

> You can use Logial port for it in LPCONFIG ( Transaction). See this examplo Below:

>

> TRY.

>

> CREATE OBJECT my_proxy

> EXPORTING

> logical_port_name = 'LP01'.

> CATCH cx_ai_system_fault.

> ENDTRY.

>

> TRY.

> input-airline_id = p_carrid.

> input-connection_id = p_connid.

> input-flight_date = p_fldate.

>

> CALL METHOD my_proxy->flight_get_detail

> EXPORTING

> input = input

> IMPORTING

> output = output.

> CATCH cx_ai_system_fault.

> CATCH cx_ai_application_fault.

> ENTRY.

>

> Its necessary create a connection in SM59 (type H) and setting in the call parameters logical port (LPCONFIG).

Hi,

thanks for your answer. It´s working!

Cheers,

Andy