Application Development and Automation 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: 
Read only

ABAP Proxy consumer

maciej_jarecki
Contributor
0 Likes
1,082

Hi Abap experts,

I created FM in system X. Than based on this function module service definition. After endpoint configuration in soamanager (without autentication) i created consumer proxy based on binding point wsdl and than logical port definition. All scenerio is asynch and from SOAP UI works perfect but from abap program that call consumer proxy not. What can be the reason ?

Regards

M.

9 REPLIES 9
Read only

brad_bohn
Active Contributor
0 Likes
1,012

What is the error? You have a number of tools/logs at your disposal if you aren't getting a good error message/response but you should have some indicator from the proxy call result.

Read only

alex_cook
Active Participant
0 Likes
1,012

Howdy,

Let us know what the error is - also check that you have set the Logical Port is default flag so that the abap program will use the logical port without having to specify it.

Cheers

Alex

Read only

maciej_jarecki
Contributor
0 Likes
1,012

HI

thanks for replay. I do not receive any error but webservice is not called. I specify logical port explicit during proxy object creation. Can you give what kinf of tools and logs should i use.

Regards

M.

Read only

0 Likes
1,012

Use internal/external debugging as a starter. Use the SICF recorder and trace tools in the destination system. Use the trace and log in the ICM monitor as well. It sounds like your logical port config is not correct - make sure it's set to trace and log errors as well. Are you catching any system errors? It might help if you posted some of your code...

Read only

0 Likes
1,012

Hi

when i try to test it (client proxy->test(f8)) i receive following code

SoapFaultCode:1

Exception of class CX_AI_SYSTEM_FAULT

Regards

M.

Read only

0 Likes
1,012

Your code should look something like the below code and you should be able to view the actual message. You should also find the message/error in the system log.


  TRY.

      CREATE OBJECT GV_CLIENT_PROXY.

* Populate request fields here...

      CALL METHOD GV_CLIENT_PROXY->YOUR_WEBSERVICE_METHOD_NAME
        EXPORTING
          INPUT  = GS_REQUEST
        IMPORTING
          OUTPUT = GS_RESPONSE.

    CATCH CX_AI_SYSTEM_FAULT INTO GV_SYS_EXCEPTION.

      CALL METHOD GV_SYS_EXCEPTION->IF_MESSAGE~GET_TEXT
        RECEIVING
          RESULT = LV_MESSAGE.

* Handle the message here ...

  ENDTRY.

Read only

0 Likes
1,012

Hi Brad

thank you for your replay, i discovered i little bit more. sync communication works ok. but problem occur in async, when i do "commit work" i receive following error "CX_BGRFC_INVALID_DESTINATION". after half night of googling, now iknow that i have to configurate some bgQueue Can you help me with this ?

Regards

M.

Read only

0 Likes
1,012

Did you search OSS? I don't know what release you're on but the first note in the list for that exception seems valid...

Read only

0 Likes
1,012

Hi All,

I found note 1529377

BR

M.