02-04-2009 3:49 PM
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
02-05-2009 5:01 PM
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).
02-05-2009 5:01 PM
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).
02-06-2009 7:11 AM
> 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