<?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>Question Re: Using custom request handler. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834523#M1495101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This message indicates that the ICF directed the request to the J2EE stack rather than the ABAP stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check your URL to make sure it is correct. Test the service by right-clicking on the service node in the ICF hierachy and selecting "Test".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failing that get your system admin guys to check it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 13:26:21 GMT</pubDate>
    <dc:creator>GrahamRobbo</dc:creator>
    <dc:date>2008-05-20T13:26:21Z</dc:date>
    <item>
      <title>Using custom request handler.</title>
      <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaq-p/3834516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I craeted a request handler class by implementing the interface if_http_extension.&lt;/P&gt;&lt;P&gt;the code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method IF_HTTP_EXTENSION~HANDLE_REQUEST.

data: my_response type string ,
      itab_header_fields type tihttpnvp,
      wa_header_fields type ihttpnvp .

      server-&amp;gt;request-&amp;gt;get_header_fields( CHANGING FIELDS = itab_header_fields ).

      concatenate '&amp;lt;HTML&amp;gt;'
                  '&amp;lt;BODY&amp;gt;'
                  '&amp;lt;TABLE&amp;gt;'
                  into my_response .

      loop at itab_header_fields into wa_header_fields .
      concatenate
                 my_response
                 '&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;'
                 wa_header_fields-name
                 '&amp;lt;TD&amp;gt;&amp;lt;TD&amp;gt;'
                 wa_header_fields-value
                 '&amp;lt;/TD&amp;gt;&amp;lt;TR/&amp;gt;'
                 into my_response .

       concatenate
                  my_response
                  &lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;'&amp;lt;/H2&amp;gt;DEMO:Own Request Handler&amp;lt;/H2&amp;gt;'&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;                
                  '&amp;lt;/BODY&amp;gt;'
                  '&amp;lt;/HTML&amp;gt;'
                  into my_response .

                 server-&amp;gt;response-&amp;gt;set_header_field( name = 'Contentp-Type'
                                                     value = 'text/html'  ).

                  server-&amp;gt;response-&amp;gt;set_cdata( data = my_response  ) .

                  if_http_extension~flow_rc = if_http_extension=&amp;gt;co_flow_ok .
     endloop.

endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The calss is activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i test the handler that i have created?&lt;/P&gt;&lt;P&gt;I know i have to create a node in sicf txn and make an entery in the request handler table,but where to create the node and how to make entery in the request handler table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Anubhav.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anubhav Jain on May 15, 2008 11:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 21:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaq-p/3834516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T21:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom request handler.</title>
      <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834517#M1495095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create the ICF node anywhere in the service hierachy. There are some security aspects that might prevent you placing it in some SAP specific areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your organisation has a registered namespace you should create a new indepenedent service at the top level, the same level as default_host/sap, and give it the same name as your namespace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually create my test areas at this same level. Then create your service underneath this container service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 22:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834517#M1495095</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-05-15T22:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom request handler.</title>
      <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834518#M1495096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robinson,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Actually i am trying the example give in the book written by Fredric Heinemann and Christian Rau.&lt;/P&gt;&lt;P&gt;Here it is written that:&lt;/P&gt;&lt;P&gt;"To test the event handler that you have created , generate a service entery in the ICF tree.The service node ZMY_HANDLER was generated in the ICF path &lt;EM&gt;default_host/sap&lt;/EM&gt;" .&lt;/P&gt;&lt;P&gt;Till here its fine but nextt it says:&lt;/P&gt;&lt;P&gt;"For this example Enter the handler that you created in the request handler table and save your enteries.&lt;/P&gt;&lt;P&gt;If you now enter the URL of the service in the web browser, the handler you created is executed."&lt;/P&gt;&lt;P&gt;Now my question is how to make the entery in request handler table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Anubhav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 13:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834518#M1495096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T13:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom request handler.</title>
      <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834519#M1495097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;navigate to the service in the ICF hierachy (transaction SICF). Double-click on the service node. Click on the Handler List tab. Click the Change button, add your handler class and click Save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2008 03:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834519#M1495097</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-05-17T03:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom request handler.</title>
      <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834520#M1495098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Graham,&lt;/P&gt;&lt;P&gt;When i double click on the node &lt;STRONG&gt;SAPconnect&lt;/STRONG&gt; just below the node &lt;STRONG&gt;default_host&lt;/STRONG&gt; and enter my handler class name in the Handler List tab , i get an error that class Z_CL_HTTP_MY_US does not implements interface if_http_extension , eventhough i have implemented the interface in my class .&lt;/P&gt;&lt;P&gt;The node &lt;STRONG&gt;SAPconnect&lt;/STRONG&gt; is also greyed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on this error?&lt;/P&gt;&lt;P&gt;Thanks for the replies.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Anubhav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 12:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834520#M1495098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T12:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom request handler.</title>
      <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834521#M1495099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to create your entries hierachically under "default_host". Expand the tree under "default_host" and you will see a service node called "sap" and possibly others as well. This is where you need to create your HTP services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAPconnect service is the SMTP handler for email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have created the service node(s) you want you will need to activate them from the context menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 12:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834521#M1495099</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-05-20T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom request handler.</title>
      <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834522#M1495100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Created a node under default_host and added the custom class to handlers tab, activated the service and then tried to test..browser shows the message&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;404   Not Found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*		SAP J2EE Engine/7.00*&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;The requested resource does not exist.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  *Details: 	*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;Go to main page of this application!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Anubhav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 13:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834522#M1495100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T13:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom request handler.</title>
      <link>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834523#M1495101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This message indicates that the ICF directed the request to the J2EE stack rather than the ABAP stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check your URL to make sure it is correct. Test the service by right-clicking on the service node in the ICF hierachy and selecting "Test".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failing that get your system admin guys to check it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 13:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-custom-request-handler/qaa-p/3834523#M1495101</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-05-20T13:26:21Z</dc:date>
    </item>
  </channel>
</rss>

