<?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 Problem  Accessing Protocol Classes in INBOUND PROXY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-accessing-protocol-classes-in-inbound-proxy/m-p/6995888#M1494504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys.&lt;/P&gt;&lt;P&gt;Im having problems accessing Protocol Classes in a inbound proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code that is copied from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 DATA:  lo_server_context   TYPE REF TO if_ws_server_context,
             lo_payload_protocol TYPE REF TO if_wsprotocol_payload.

lo_server_context   = cl_proxy_access=&amp;gt;get_server_context( ).
lo_payload_protocol =
     lo_server_context-&amp;gt;get_protocol( if_wsprotocol=&amp;gt;payload ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Im getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The result type of the function method cannot be converted into the type lo_payload_protocol&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to get the attachment protocol with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
DATA: lo_server_context TYPE REF TO if_ws_server_context,
lo_attachment_prtcl TYPE REF TO IF_WSPROTOCOL_ATTACHMENTS.
lo_server_context = cl_proxy_access=&amp;gt;get_server_context( ).
lo_attachment_prtcl = lo_server_context-&amp;gt;get_protocol( if_wsprotocol=&amp;gt;ATTACHMENTS ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting the same error.&lt;/P&gt;&lt;P&gt;What am I doing wrong? It' s code copied fror SAP Library!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jun 2010 08:43:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-11T08:43:21Z</dc:date>
    <item>
      <title>Problem  Accessing Protocol Classes in INBOUND PROXY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-accessing-protocol-classes-in-inbound-proxy/m-p/6995888#M1494504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys.&lt;/P&gt;&lt;P&gt;Im having problems accessing Protocol Classes in a inbound proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code that is copied from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 DATA:  lo_server_context   TYPE REF TO if_ws_server_context,
             lo_payload_protocol TYPE REF TO if_wsprotocol_payload.

lo_server_context   = cl_proxy_access=&amp;gt;get_server_context( ).
lo_payload_protocol =
     lo_server_context-&amp;gt;get_protocol( if_wsprotocol=&amp;gt;payload ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Im getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The result type of the function method cannot be converted into the type lo_payload_protocol&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to get the attachment protocol with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
DATA: lo_server_context TYPE REF TO if_ws_server_context,
lo_attachment_prtcl TYPE REF TO IF_WSPROTOCOL_ATTACHMENTS.
lo_server_context = cl_proxy_access=&amp;gt;get_server_context( ).
lo_attachment_prtcl = lo_server_context-&amp;gt;get_protocol( if_wsprotocol=&amp;gt;ATTACHMENTS ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting the same error.&lt;/P&gt;&lt;P&gt;What am I doing wrong? It' s code copied fror SAP Library!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 08:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-accessing-protocol-classes-in-inbound-proxy/m-p/6995888#M1494504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-11T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem  Accessing Protocol Classes in INBOUND PROXY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-accessing-protocol-classes-in-inbound-proxy/m-p/6995889#M1494505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are choosing wrong type for lo_payload_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you must change like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lo_payload_protocol TYPE REF TO IF_WSPROTOCOL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 11:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-accessing-protocol-classes-in-inbound-proxy/m-p/6995889#M1494505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-11T11:30:28Z</dc:date>
    </item>
  </channel>
</rss>

