Access/set dynamic configuration in client/server abap proxy

Hi,
I have 2 question regarding reading/setting dynamic configuration in ABAP proxies:
1) Is it possible to set dynamic configuration objects in a server abap proxy (SAP --> XI)?
When looking at the class CL_PROXY_FRAMEWORK is looks as if it is possible. This class has en attribute IF_XMS_MAIN~DY which is a reference to the class CL_XMS_MSGHDR30_DYNAMIC.
I'm not sure if I'm supposed to try and access the dynamic configuration objects via this class or if I'm supposed to use the GET_PROTOCOL method in some manner as suggested by:
http://help.sap.com/saphelp_nw04s/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm
Above link is for client proxies not server, and I've been unable to find any documentation on this for server proxies.
2) The same question goes for server proxies (XI --> SAP), though now I would like to set some dynamic configuration data.
This I believe should be done using get_protocol( if_wsprotocol=>ws_header ) as indicated by before mentioned link.
However in both cases I'm not sure of if it is indeed possible and which road to choose for sure. So a hint or 2 would be really nice.
Best Regards,
Daniel
ps. maybe I should just mention that I am pretty new to the ABAP world, so bear with me.

The link that you gave does give you an example for both server and client proxies:
Accessing Protocol Classes for Client Proxies
In client proxies, you access the protocol class by using the GET_PROTOCOL method. Below is an example for the IF_WSPROTOCOL_PAYLOAD protocol:
DATA:
lo_clientProxy      TYPE REF TO co_clientProxy,
lo_payload_protocol TYPE REF TO if_wsprotocol_payload
lo_payload          TYPE REF TO if_ws_payload.
CREATE OBJECT lo_clientProxy.
Get Protocol Class Using Method GET_PROTOCOL
lo_payload_protocol ?=
       lo_clientProxy->get_protocol( if_wsprotocol=>payload ).
CALL METHOD lo_clientProxy->execute_synchronous
            EXPORTING output  = ls_request
            IMPORTING input   = ls_response.
Use Protocol Methods
lo_payload = lo_payload->get_sent_request_payload( ).
Accessing Protocol Classes for Server Proxies (XI Only)
Within the implementation of a server proxy, you get the protocol class by using the CL_PROXY_ACCESS=>GET_SERVER_CONTEXT( ) method:
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=>get_server_context( ).
lo_payload_protocol =
     lo_server_context->get_protocol( if_wsprotocol=>payload ).

Similar Messages

  • Dynamic Configuration from Client ABAP Proxy

    Hello Experts,
    Is it possible somehow to set Dynamic Configuration values to Message Header when calling Client ABAP Proxy from SAP system?
    Best Regards

    I managed to get the dynamic header configuration at least with inbound proxies:
        DATA:
            server_context TYPE REF TO if_ws_server_context,
            proxy_framework TYPE REF TO if_proxy_framework,
            internal_protocol TYPE REF TO if_wsprotocol_internal,
            lo_inb_pxy TYPE REF TO cl_xms_inbound_proxy_plsrv,
            lo_dyn_header TYPE REF TO if_xms_msghdr30_dynamic.
          server_context = cl_proxy_access=>get_server_context( ).
          internal_protocol ?= server_context->get_protocol( 'INTERNAL' ).
          lo_inb_pxy ?= internal_protocol->get_framework( ).
          lo_dyn_header ?= lo_inb_pxy->xmb_message->get_dynamic_header( ).

  • PI 7.1 Access to Dynamic Configuration through Java Class

    My Current scenario involves IDCO -> FILE communications in PI 7.1 using XSL where the file name is dynamic.
    I have attempted calling a Java Class from XSL with the use SAPXMLTOOL kit option set in the adaptor and it works but I need to be able to call the transform method
    public void transform(TransformationInput arg0, TransformationOutput arg1)
    from XSL so I can access the message and update the File Name via Dynamic Configuration.
    Whilst I can call a static class with in the object I can not call transform with the correct arguments (arg0, arg1). I need access to arg0 (payload) to set/figure out the filename. I can calculate the filename in XSL and pass it to the Java but in a static method it is useless as it need to access the arg0 which is a object and obviously non-static context.
    Is this possible ? How do I get access to Dynamic Configuration from XSL through Java in 7.1 ?
    I have successfully called a static method but that is no help.
    Thanks in advance.

    Suraj,
       Unfortunately you link isnt operational but thankyou anyway, I have managed to call as Java class as per my original post, but a static method does not allow me to get a handle to the Dynamic Configuration Variables in the message.
    It seems importing the 7.0 LIBS may be an option and Im not entirely sure I have that option.
    It certainly isnt possible to use the JDK5 XML implementation to even call a static method on an Java OBJ from XSL (obviously the USE SAPXMLTOOLKIT option is there for a reason).
    I think and again I could be wrong but direct access via XSLT..
    LINK:http://help.sap.com/saphelp_nwpi71/helpdata/EN/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    Is what Im looking for, I shall report back success or failure but the doco seems to fit the bill. Im not sure why I wanted to instatiate a sperate Java class when it can all exist in the XSLT.

  • File to server abap proxy

    in my file to server abap proxy scenario,<b>filexisap .</b>
    i have some doubt in configuration part.
    i have to create one http destination but not clear where it should be created?in xi or in sap system??

    Hi
    you can either key in the Details of the R3 system in the XI adapter directly or you can maintain a HTTP destination on your XI in SM59 and use this in the XI adaper.
    regards
    krishna

  • How has access.log file configured in WebLogic server 10.0?

    1.) I am using BEA Weblogic 10.0 and my access.log is not getting updated.
    2.) I also need any information as to how this Webblogic server forms chunks (ex....access00011.log,access00012.log) because i have a software called AWStats which merges all these chunks into 1 single access.log file under its subdirectory.
    3.) I also need information as to how and where the user can specify/ form his own fields which gets displayed in the access.log
    FYI i have 2 servers and i checked under Logging->HTTP->advanced, in both the servers options and configurations are same but in 1 it works fine and access.log is updating but not in the other one.
    Kindly let me know i you have any leads into this issue!
    Thanks,
    Varun

    Hi Ravish,
    Firstly thanks for the reply.
    1.) -----
    What you can do is to set the buffer-size-kb parameter value to "0" in config.xml so that it can start logging once the server starts coming up rather then waiting for the default size which is 8kb to pass.
    Something like below:
    <web-server-log>
    <buffer-size-kb>0</buffer-size-kb>
    <web-server-log>
    For more details check the below link:
    Search for: CR302493
    http://download.oracle.com/docs/cd/E11035_01/wls100/issues/known_resolved.html
    --- for this issue i had browsed throught the forum before posting but in my conf file i have something like this instead of <buffer-size-kb>0</buffer-size-kb>
    <web-server>
    <web-server-log>
    <number-of-files-limited>false</number-of-files-limited>
    <log-file-format>extended</log-file-format>
    </web-server-log>
    </web-server>
    So how do i go about the path of debugging now??
    2.) -------
    If you do not want rotation of access.log then you can just disable it from the below console path just by putting Rotation type as None
    Server -> <YOUR_SERVER_NAME> -> Logging (tab) -> HTTP (sub-tab) -> Rotation type: None
    ---- for this in both my servers i have the settings like this,
    Rotation type--> By Size
    Rotation File size 5000
    Begin rotation time 00:00
    rotation interval 24
    files to retain 7
    and Log file rotation directory is left blank (to get created in same directory)
    and also Rotate log file on startup is unchecked.
    so??? what do you suggest!?
    3.) ------
    I also need information as to how and where the user can specify/ form his own fields which gets displayed in the access.log
    ---- regarding this, in my main server the access.log is getting updated and after 4.8Mb its creating 5Mb chunks. So, for example if the entire log is of 15 Mb then access.log stops updating at 4.98Mb and accesslog.out0001 and accesslog.out0002 is created with 5Mb each but the latest entry will be stored in accesslog.out0002 file. I hope i didn't complicate this :)
    Regards,
    Varun

  • Dynamically configure different DNS server based on user login.

    I've got two young sons and I'm looking to reconfigure the 'Family' desktop to give the older son his own user account.
    I've only recently started with Arch on my personal netbook so the family desktop is still running Ubuntu.  That will likely change next clean install though.
    I'd like to set the DNS to OpenDNS 'family shield' for his usage but allow full access via a different DNS server such as google DNS (for example) for parental use without filtering.
    I'd like this to switch auto magically based on the user login credentials if possible.
    I understand the limitations of DNS filtering but my oldest son has never even heard of DNS much less being able to figure out how to circumvent it yet.  I'll deal with that in several years when it becomes an issue...
    Can anyone point me in the right direction?

    bergersau wrote:Thanks,
    It looks like I might have to set up a squid proxy with Dan's Guardian.  I was hoping for a simpler solution though.
    Dan's Guardian is going to be a whole lot simpler than hacking the system resolver to use different servers for different users.
    You MIGHT be able to hack something with iptables, the NAT table and a DNAT in conjunction with the 'owner' module... Something like:
    Set your "unrestricted" DNS server in /etc/resolv.conf and a rule like below...
    I'll assume you set the Google servers; 8.8.8.8 and 8.8.4.4 and your son's usernames are 'brad' and 'tony'
    iptables -t nat -A POSTROUTING -d 8.8.8.8 -m owner --uid-owner brad -j dnat --to 208.67.222.222
    iptables -t nat -A POSTROUTING -d 8.8.4.4 -m owner --uid-owner brad -j dnat --to 208.67.220.220
    iptables -t nat -A POSTROUTING -d 8.8.8.8 -m owner --uid-owner tony -j dnat --to 208.67.222.222
    iptables -t nat -A POSTROUTING -d 8.8.4.4 -m owner --uid-owner tony -j dnat --to 208.67.220.220
    Untested and I don't guarantee that will work. You could tidy it up and bit using subchains etc, but I'll leave that as an exercise for the reader.... And I'd still recommend a filtering proxy over the above....

  • Configure XI adapter for abap proxy scenario- plz help

    Hi,
    Pleas help me in configureing the XI adpater in abap server proxy scenario, answer the one in bold in below
    Scenario is asynchronous
    Http -> XI ->R/3(abap server proxy)
    sender: Through http client
    receiver is abap server proxy
    Repository objects:
    Sender: sender_DT, sender_MT, sender_MI(outbound asynchronous)
    Receiver: receiver_MI
    Interface mapping: source=sender_MI, receiver_MI.
    <u>Proxy generated on R/3 client 550 for receiver_MI.</u>
    this proxy internally calls an RFC which inturn updates a table.
    Configuartion objects:
    Sender: business service, no comm channel since http sender.
    receiver: R/3 business system
    Comm channel: receiver_cc type of XI.
    transport protocol: http
    message protocol : XI 3.0, since both XI and R/3 on webas 6.4
    <b>addressing type: URL
    target host: ??? where can I find this
    service number: ?? where can I find this
    path: /sap/xi/engine?type=entry</b> i guess the path is correct for XI 3.0
    <u>My system details: XI - client 400, R/3 client  550.</u>
    Authentiction data:
    <b>user name: this user suppossed to be from R/3 or XI?,</b>
    passwrod; proper password
    <b>logon client: the client supposed to be of R/3 or XI?</b>
    Recevr determinaion, interface determination and recevr agrrement looks fine.
    Please reply , your help is appreciated.
    Thanks
    KK

    Hi,
    <i>>>>target host: ??? where can I find this</i>
    Your R/3 host number you can find System->Status
    <i>>>>service number: ?? where can I find this</i>
    You can find in SMICM in services
    <i>>>>user name: this user suppossed to be from R/3 or XI?,
    passwrod; proper password
    logon client: the client supposed to be of R/3 or XI?</i>
    R/3 logon details.
    Thanks,
    Prakash

  • Invoking a specfic configuration in integration directory (abap proxy)

    Hello,
    I have a ABAP inbound and ABAP outbound proxy sitting on  different SAP Backends,both the abap inbound and outbound sit on multiple systems,but the message mapping  and interface mapping is 1.
    In the integration direction I have multiple configuration scenarios, corresponding to above mentioned scenario( business systems, communication channels,sender agreements etc).
    In the outbound proxy system,I have written a report to call the outbound proxy just by calling execute asynchronous. how to I make sure that a particular configuration in integration directory is executed.
    regards
    kaushik

    Hi ,
    When you generate a Proxy in SPROXY for a perticular Interface , few methods and Classes are generated.
    So in report, when you can this Outbound Proxy ... These generated methods are Used.
    Like : example
    CALL METHOD cl_ref->BWDATA_A_O
                        EXPORTING
                          output = WA_OUTPUT.
    Here BWDATA_A_O is a  method for a perticular Interface . .. SO it will call this interface only ....
    Regards
    Prabhat Sharma.

  • How to access application server 10g, if client machine is proxy settings.

    hi,
    i have installed oracle application server 10gR2, on vertual machine, windows2003
    my forms are stored in forms folder , i can access the application/forms
    throuhg client machines, if proxy setting is unchecked, but if proxy is chacked can't access application.
    as there with the user machine is required with proxy setting. how
    to access the application. i mean what is the configuration.
    in application server so that any computer (client machine)
    can access weather it is having proxy setting or not.

    now i enabled the java console to see the trace, there i found. if proxy is checked in client brouser with 8080 port which is required by organisation.
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\fresh
    Proxy Configuration: Manual Configuration
    Proxy: eproxy:8080
    Proxy Overrides:
    Jar cache disabled by user
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Where as if there if i remove proxy setting by uncheck. then application goes smoothly.

  • How do you set up your Configuration Manager client when Imaging?

    OK everyone we got an issue that we need to take care of sorry if this seems like a dumb question but we cant seem to make this work.  How do you set your configuration manager client when you deploy your image(s)?  I created package and pointed
    it right to the config manager install directory just like the recommended one for USMT but it does not seem to work.  I also tried to leave it blank but it appears to be mandatory.. So my question how do YOU get it to work for your areas?
    Thanks

    that might be the problem I dont see a "Microsoft Configuration Manager Client 5.0 All" anywhere. We threw something together that points to:
    \\Server.Domain.com\SCCM_Install\SMSSETUP\CLIENT
    What is happening is this.
    Have a task to deploy Windows natively to the workstation
    Drop applications to the workstation
    do updates
    capture back to server
    All it does is 
    Drop the OS down
    copy the Agent files
    join to the domain
    reboot
    sit
    sit 
    and sit

  • Use dynamic configurations inside an abap proxy

    Hi,
    is it possible to set dynamic configurations inside an abap proxy?
    Inside an abap-mapping I can use "CALL METHOD DYNAMIC_CONFIGURATION->SET_RECORD".
    What's up with an abap proxy?
    Regards
    Wolfgang Hummel

    Hi,
    Not Possible.
    Thanks!

  • Possible to set Dynamic Config from ABAP Proxy

    Hi,
    I know how to get and set Dynamic Config from Java/XSLT mappings and adapter modules. But I want to do this from an outbound ABAP Proxy Call (in the same way I can set the serialization context for EOIO), is that possible?
    The scenario is: I have an interface; Proxy -> Xi -> ftp, with no mapping. It seems unnecessary to introduce a mapping just to set some dynamic config values for the receiving adapter which are already known at the outbound proxy call...
    rgds Johan

    Hi Bhavesh,
    In the thread you mention it is shown that you can set Dynamic Config properties during an ABAP mapping. My question was if I can set these properties already in the proxy call? Or did I miss something?
    Of-course I can introduce a dummy mapping in Java/XSLT/ABAP which copies the source message to the result message and sets the dynamic config properties, but I would rather not introduce a mapping if not neccessary...
    rgds Johan

  • Is there any way to read to dynamic configuration using abap mappings?

    Hi,
      Is there any way to read dynamic configuration suppouse filename using abap mappings, I mean using abap code?
    Appreciate for your response.
    Regards,
    Daniel.LA

    Daniel,
    Yes it's possible. Please refer Henrique Pinto's reply in this thread -Re: Abap mapping and variable substitution in File adapter
    raj.

  • Outbound Client ABAP Proxy Timeout Error

    Hello everybody we have the next scenario:
    R/3 Client Synchronous ABAP Proxy->XI-> Synchronous RFC
    and we are having problems cause the Sender R/3 is not waiting for the RFC in the Receiver system to process so XI is in log  status fot this messages, is there a parameter to increase the time for R/3 Sender to wait for the Call method sentence to complete succesfully??????, thanks in advance.
    Regards,
    Raul Alvarado

    Hi,
    do changes as below
    In SXMB_ADM
    go to Configure Integration server
    in  change specific identifiers Set Runtime parameter: HTTP_TIMEOUT and then restart XI server, changes will be updated.
    Regards,
    Sukarna.

  • Dynamic configuration required in sender file - Adapter Module

    Hi Everybody,
    I am developing an Adapter Module in the file adapter (sender) using Adapter Specific Message Attributes.
    I am using Dynamic configuration inside the Module Process method in the adapter module.
    We are getting an error saying Dynamic Configuration cannot be resolved.
    Can anybody tell me the package to be used.
    Thanks,
    Zabiulla

    You can access the dynamic configuration in adapter module like this:
    Message msg = (Message) inputModuleData.getPrincipalData();
    String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File", "FileName");
    You do not need any addition library besides the adapter module API.
    Hope that helps
    Stefan

Maybe you are looking for