<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Outbound proxy is not getting triggered in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341691#M1992178</link>
    <description>&lt;P&gt;I am able to trigger the outbound proxy by calling the method created by outbound proxy class as there was no method named  execute_asynchronous.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2021 14:47:36 GMT</pubDate>
    <dc:creator>former_member588480</dc:creator>
    <dc:date>2021-01-28T14:47:36Z</dc:date>
    <item>
      <title>Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341682#M1992169</link>
      <description>&lt;P&gt;I am triggering outbound proxy . It is getting triggered through Delivery output type .&lt;/P&gt;
  &lt;P&gt;Code related to proxy is getting executed but not sure why I do not see outboud proxy in SXMB_MONI.&lt;/P&gt;
  &lt;P&gt;I believe I am making some mistake while coding .&lt;/P&gt;
  &lt;P&gt;Since I am new to Proxy so need some guidance please .&lt;/P&gt;
  &lt;P&gt;I could not find particular solution in SCN how to debug this kind of proxy issue .&lt;/P&gt;
  &lt;P&gt;Please find the code below which is used to trigger proxy.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA: wa_pdf LIKE LINE OF li_pdf,
        g_output TYPE string,
        g_outputx TYPE xstring,
        g_attach_xstring TYPE xstring,
        attch_protocol TYPE REF TO if_wsprotocol_attachments,
        zco_pi_object TYPE REF TO zco_si_out_descartes_invoice,
        g_attachment     TYPE REF TO if_ai_attachment,
        g_attachments    TYPE prx_attach,
*          *Reference variables exception class
        lo_sys_exception   TYPE REF TO cx_ai_system_fault.       "Internal table for attachment.


*         * creating proxy object
        CREATE OBJECT zco_pi_object.
  IF  li_pdf[] IS NOT INITIAL.

   LOOP AT li_pdf INTO wa_pdf.
          CONCATENATE g_output wa_pdf INTO g_output.
        ENDLOOP.

ENDIF.

CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
  EXPORTING
    text           = g_output
*   MIMETYPE       = ' '
*   ENCODING       =
IMPORTING
   buffer         = g_outputx
* EXCEPTIONS
*   FAILED         = 1
*   OTHERS         = 2
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


CONCATENATE g_attach_xstring g_outputx INTO  g_attach_xstring IN BYTE MODE.


TRY.
      attch_protocol ?= zco_pi_object-&amp;gt;get_protocol( if_wsprotocol=&amp;gt;attachments ).
      g_attachment = attch_protocol-&amp;gt;get_attachment_from_binary(
      data = g_attach_xstring
      type = if_ai_attachment=&amp;gt;c_mimetype_pdf
      name = 'PDF Attachment' ).           " Name of PDF to be uploaded


      APPEND g_attachment TO g_attachments.
      attch_protocol-&amp;gt;set_attachments( g_attachments ).



          CATCH cx_ai_system_fault INTO lo_sys_exception.
            COMMIT WORK.
        ENDTRY.


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2021 15:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341682#M1992169</guid>
      <dc:creator>former_member588480</dc:creator>
      <dc:date>2021-01-19T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341683#M1992170</link>
      <description>&lt;P&gt;??&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CATCH cx_ai_system_fault INTO lo_sys_exception.
            COMMIT WORK.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Are you sure you have verified that there's no exception at your side?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 21:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341683#M1992170</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-19T21:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341684#M1992171</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;  During debugging I found that after the statement &lt;/P&gt;&lt;P&gt;attch_protocol-&amp;gt;set_attachments( g_attachments )&lt;/P&gt;&lt;P&gt;Program control skips below catch statement &lt;/P&gt;&lt;P&gt;CATCH cx_ai_system_fault INTO lo_sys_exception. &lt;/P&gt;&lt;P&gt;            COMMIT WORK.&lt;/P&gt;&lt;P&gt;I believe this is because there is no exception .&lt;/P&gt;&lt;P&gt;Not able to figure out if there is no exception then why proxy is not getting trigger .&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 05:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341684#M1992171</guid>
      <dc:creator>former_member588480</dc:creator>
      <dc:date>2021-01-20T05:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341685#M1992172</link>
      <description>&lt;P&gt;Okay. By the way, you didn't post the call to the Web Service, you posted only the part where you add an attachment.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 08:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341685#M1992172</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-20T08:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341686#M1992173</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; actually I have not used any web service to send pdf data throgh proxy .&lt;/P&gt;&lt;P&gt;I  have followed below link for the coding . Not sure if I am following the right way of coding for outbound proxy .&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/ABAP/Step+by+Step+guide+to+develop+Outbound+ABAP+Proxy+with+PDF+attachment.?original_fqdn=wiki.sdn.sap.com"&gt;outbound proxy ABAP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know if I need to make any correction in my code .&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 11:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341686#M1992173</guid>
      <dc:creator>former_member588480</dc:creator>
      <dc:date>2021-01-20T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341687#M1992174</link>
      <description>&lt;P&gt;Where is execute_asynchronous in your code?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 12:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341687#M1992174</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-20T12:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341688#M1992175</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I thought  EXECUTED_ASYNCHRONOUS is only required to send data  and since I was only sending PDF file so I did not use this method in my code.&lt;/P&gt;&lt;P&gt;Also while calling method EXECUTED_ASYNCHRONOUS, I am getting error saying "Method EXECUTED_ASYNCHRONOUS is unknown or PROTECTED or PRIVATE" . That means the method is not available in proxy class created by PI .&lt;/P&gt;&lt;P&gt;Is it mandatory to use method EXECUTED_ASYNCHRONOUS , while sending PDF file through proxy ?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 12:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341688#M1992175</guid>
      <dc:creator>former_member588480</dc:creator>
      <dc:date>2021-01-20T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341689#M1992176</link>
      <description>&lt;P&gt;All other methods are used to prepare the request, EXECUTE* is to execute the request.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341689#M1992176</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-20T13:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341690#M1992177</link>
      <description>&lt;P&gt;okay while calling the method I am getting below error so looks like Method EXECUTED_ASYNCHRONOUS  is not available in proxy class .&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1878651-capture.png" /&gt;&lt;/P&gt;&lt;P&gt;let me know if you want to cross check anything regarding the above issue. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341690#M1992177</guid>
      <dc:creator>former_member588480</dc:creator>
      <dc:date>2021-01-20T13:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound proxy is not getting triggered</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341691#M1992178</link>
      <description>&lt;P&gt;I am able to trigger the outbound proxy by calling the method created by outbound proxy class as there was no method named  execute_asynchronous.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 14:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-proxy-is-not-getting-triggered/m-p/12341691#M1992178</guid>
      <dc:creator>former_member588480</dc:creator>
      <dc:date>2021-01-28T14:47:36Z</dc:date>
    </item>
  </channel>
</rss>

