Dynamic URL for Recv HTTP (Adapter spec attribute enabled)

Hi,
I need to have a dynamic URL for one of my cases been worked. the URL is
httlp://:<host>/perform/XTA?serv=*&action=start
the event "action" can accept either start/stop or restart. i wanna to control this dynamically and went for recv http enabled with adapter specific message attributes. here i had enabled the check box "URL" and in parameter 1 i had given the name as "action".
in my message payload the "action" will be start/stop or restart which is handled by UDF for which the code is below:l
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey trig = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "UrlParamOne");
conf.put(trig,action);
return "";
this udf is mapped to the root node of the target...but when execute the case i get the following error
"Dynamic Header - Missing Message Attributes: URL/HTTP Destination"
when i execute the url
httlp://:<host>/perform/XTA?serv=*&action=start
in browser it works fine and also with fully qualified name in http recv works fine but not with dynamic settings.
any help on it pls?

Hi Prabhu,
Enable Adapter-Specific Message Attributes(ASMA) in receiver HTTP channel.
Dont enable checkboxes for "URL or HTTP Destination".
Enable checkbox "Apply URL Parameters"
for parameter1 textbox give value action
Regards,
Praveen Gujjeti

Similar Messages

  • Dynamic URL for SOAP receiver adapter

    Hey!
    I've been looking all over the forum for this issue. What I have seen is many good suggestions, but no one seems to have made this work.
    I have tried with message mapping and TServerLocation, but when the scenario is executed, Target URL in the communication channel always overrides the suggested URL from the mapping.
    Is is possible to do this dynamic configuration? Do I have to use HTTP adapter and create envelope with mapping instead? Anyone in here actually got this dynamic URL working?
    Thanks a bunch!
    regards Ole

    Hello Cengiz Aytemir,
    I am stuck with a similar issue that you faced earlier. I've configured the scenario as you have suggested (Both the UDF and the CC settings). I've hard coded the Target URL as http://
    I can see the dynamic URL set correctly in the MONI but the request that I am sending is not reaching the web service.
    Below is the error that I am getting:
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>Server Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context>XIAdapter</context>
                   <code>RecoverableException</code>
                   <text>com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:453)
         at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:131)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:834)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)</text>
                </s:SystemError>
             </detail>
          </SOAP:Fault>
       </SOAP:Body>
    </SOAP:Envelope>
    When I hard code the Target URL as Test, the error that I get is different. (Detailed error shown below)
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>Server Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context>XIAdapter</context>
                   <code>RecoverableException</code>
                   <text>com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: no scheme
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:453)
         at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:131)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:834)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)</text>
                </s:SystemError>
             </detail>
          </SOAP:Fault>
       </SOAP:Body>
    </SOAP:Envelope>
    I am on PI 7.0.
    Any help in this regard is highly appreciated.
    Best Regards,
    Vijay

  • Dynamic URL for HTTP receiver adapter

    Hi all,
    when the XI send the http request to the target system, the format maybe like this:
    header + body the body is including: Prolog, payload and Epilog
    here is about the target system have a 'input' parameter(maybe string type)
    is it possible to pass the 'head + body' these value(or maybe the whole http request message) into input
    i mean is it possible to set the dynamic URL for http receiver adapter like this:
    http://host:port/path?input=<the header and body>
    i have searched the blog Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    Link:[/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping]
    and the similar threads in the forum
    please give me some advice
    thanks in advance

    When a HTTP server requests the whole message as URL parameters, then I assume that the server also requests an HTTP GET, which is not supported by XI.
    Could you check this?
    Regards
    Stefan

  • Dynamic URL for Exploration View

    Hi Experts,
    We know that we could create Dynamic URL for InfoSpace to get its facet value and chart type
    Would you kindly let me know whether it is possible to get dyanmic URL for Exploration View
    I know it's hard to set chart type but we just want to fitler value on facet
    Best regards
    Alex yang

    Hi Mallik,
    Thanks for your help
    But it looks like this kind of thing does not even for InfoSpace.
    According to the document from SAP, http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_exp_admin_en.pdf
    The strucutre will be as below for InfoSpace if you want to pass parameter value
    http://Test.com:8080/explorer/index.jsp?isna=Dynamic URL Test&fans=Year_:_2013
    We need to use isna to get infospace name or document id and using Fans to get facet value
    But we do not know what's the key word to get exploration view name
    Would you kindly let me know whether there is some document to use?
    Best regards
    Alex yang

  • How create  dynamic URL for every row  shown in the report?

    Hi,
    Iam new to this Application. I created one interactive report to find the number of bugs logged for every product and its sub component for past one year. The report will look like below structure in the application.
    Product Subcomponent Total
    P1 S1 10
    P2 S2 4
    P2 S21 15
    Now i want to pick the value of Prouct and sub component for every row dynamiaclly and want to generate the URL with the conditions and make it as hyperlink for the Total Column.
    Iam able to make hyperlink for the Total column using the edit options for the total attribute, but it is opening the same page for all the rows in the total column. I want to generate dynamic URL by picking the value prodcut and sub componenet dynamically from the report for every row and want to make it as hayperlink for every row individually.
    Please tell me how to do this?
    Please revert back if you are not clear. Appericiate for your quick help.

    Hello <unknown user>,
    So you already set the Column Link attributes for your Total column. Should all links go to the same page, but with different parameters (ProductID, SubcompID)? Or to another page? And how can you determine that page?
    Assuming you'll go to a sort of detail page or form:
    Target = [Page in this app]
    Page = <your target page no>
    Item1 = <ProductID field in target page>
    Value = #PRODUCTID#
    Item2 = <SubcompID field in target page>
    Value = #SUNCOMPID#
    (you can use the ' flashlight' for getting the correct values)
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Dynamic URL in SOAP Receiver adapter

    Hi all,
    I have a scenario where I am using a SOAP receiver adapter to send a cXML document to some vendors. I need to change the URL based on the vendor number (passed by sender SRM system). So I have created a user-defined function and used in message mapping to assign the right URL to the variable TServerLocation. But the communication channel still prompts for a static URL which appears to be a mandatory field. Even though the DynamicConfiguration tab in Message Monitoring shows that the TServerLocation was correctly assigned, the scenario does not work when I put some dummy in the static URL field like 'dummy' or '*'. Any ideas on how to make the communication channel go for the dynamic URL field and ignore the static URL field? I have already selected the'Use Adapter Specific Message attributes' and 'Variable Transport Binding' check boxes. Am I referring to the correct variable that references the target URL? Also other than the two checkboxes that I mentioned, I am not displayed anything else under "Adapter Specific Message Attributes" section in the comm. channel.
    Thanks

    James,
    I ve just been digging into SAP help, and have tried it too ... Looks like it doesnt work the way it is supposed to.
    Anotheer point i found was, in the FILE ADAPTER, when we say ADAPTER SPECIFI ATTRIBUTES , we can select the attirbutes.. This is not possible in a SOAP adapter...
    Maybe, we can only access the ADAPTER SPECIIFC ATTIRIBUTES of a SOAP adapter, but cannot set them dynamically.
    Let me know if you find something on this issue.
    Regards,
    Bhavesh

  • Building arguments of URL when using HTTP Adapter

    I am using the HTTP adapter in one of my interfaces and need to call an url that has arguments. For e.g.
    http://dpw6716.roseville.mycompany.com:8058/accelis/servlet/publish?type=create&ItemId=1018&Name=Harshad&Desc=FromXI
    In the above URL the <b>ItemID</b> and the <b>Description</b> are dynamic. Is it possible to build such dynamic urls and used in the http adapter configuration? if so how? Can context objects be used here for the dynamic part?
    Thanks,
    Harshad

    Hi Harshad,
    it is possible to build up dynamic URLs, but the way is quite complex. You have to configure a XI-mandant as "Application System" to use it as allocator. Your message will be received there in an inbound-proxy (ABAP), where you have to implement a dynamic WAS-Request (class CL_HTTP_CLIENT).
    Regards Udo

  • Set dynamic URL in SOAP receiver adapter

    Hi,
    Is this possible ? I have managed to do this with the HTTP adapter but the this time it is a Web service I am integrating to that requires SOAP 1.1 over HTTP to be used.
    Thx.
    Colin.

    Hi Stefan,
    Basically the full URL I want to send the message to via the SOAP receiver is within the payload.
    I can see the Target URL can be set in the communication channel but I want to override this with detail from the payload.
    I have managed to use dynamic URL setting with the HTTP adapter but am a little stumped on how/if this can be done on the SOAP adapter.
    Can you please expand on your comments a little please ?
    Kind regards
    Colin.

  • Biztalk 2010 : Dynamic send Port Block : HTTP Adapter

    Hi
    I have a customer who makes an intensive use of the DefaultServerApp host instance.
    All of his applications use this instance for dynamic send port ( HTTP send adapter)
    The problem is sometimes the messages accumulate in the message queue of the HTTP Send adapter and I have to restart the host instance to fix the problem until it appears again a month later.
    note: many messages are timed out , could this to be the root cause ?

    Secondary messagebox
     -why !!!!
    You have an issue in just one of the host instances. Where is this Secondary messagebox came into play? Is your database struggle with the load and does the message process
    affect “all your processing in BizTalk”?
    Or is this issue in host instance/design related. As you have many dynamic ports all of them will be using the default host instance. Some of these processes may have high
    volume or high size messages so your host instance may be struggling to process the message and could cause the memory/process usage related issue. Exactly for these reasons Microsoft has given an option to tweaking the host processing and throttling setting.
    Adding an additional messagebox database would be overdo for your issue.
    Consider tweaking the throttling settings. If the process memory was increasing
    continuously and if your investigation boils down to process memory usage for this issue, consider tweaking the
    Process memory usage and Physical memory usage throttling thresholds.
    Consider the suggestions from this MSDN article..
    http://support.microsoft.com/kb/918643
    Also consider about adding more RAM, physical memory.
    As I mentioned in my earlier post, run the messagebox viewer tool and review its reports for health of the server.
    Also ensure you have the latest version of Cumulative Update for your version of BizTalk installed. In some of the CUs, fix for memory leak has been included.
    Another suggestion, review the design where you have so many dynamic ports. May be some of these processes have high volume or high size messages and since all use the dynamic
    ports hence the same host instance you could have this issue. Consider to move away from dynamic port for some of the processes, if you find either high volume or high size message processing.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Alias for Sender Http adapter

    Is there a way to avoid a customer to send to xi the complete following URL in order to use Sender Plain HTTP adapter
    https://myserver:443/sap/xi/adapter_plain?namespace=http://mynamespace&interface=myInterface&service=SERV_B2b&Party=MyCustomer&qos=EO&sap-user=piappluser&sap-password=password&sap-client=310&sap-language=EN
    How can we hard code URL paramtres that are constant for process like Interface name... ?
    The goal is to provide a reduced URL to call.
    Thanks a lot for your help.
    Jean-Charle
    Message was edited by:
            Jean-Charles

    no its not possible to hard code HTTP URL somewhere.
    in order to reduce the length of URL what you can do is that you can shorten the names of all the objects like interface name,business system,party etc.
    for e.g instead of calling the interface as <i>myInterface</i>,you can call it <i>MI_1</i>,
    similarly you can shorten the length of all the objects thereby shrinking the whole URL length.
    its a dirty workaround but would shorten the URL length
    Thanx
    Aamir
    Message was edited by:
            Aamir Suhail

  • Step by step procedure for File &Http Adapter?

    Hi Friends,
    Could any one post the step by step procedure for File-Http Scenario.
    I wanted to pick the flat file and posted to html page, i.e. user input to the browser page.
    send across any documents to [email protected]
    thanks in advance.
    warm regards
    mc
    Message was edited by: John McCain
    Message was edited by: John McCain

    Hi John,
    check this post to find many file -> * weblogs
    Re: Interface
    you can find more on:
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16
    this should help you for a start
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Dynamic directory for Sender SFTP adapter

    Hi All,
      Hope everybody is doing fine.
      I need urgent help for below requirement for SFTP adapter ,client requirement is
      We have deployed the SAP security Add ons (PGP-SFTP) for one of the requirements in our PI system (PI 7.11 SPS 11).
      The SFTP adapter is configured to read files from the source system.As per the guidelines from the source system , we need to determine the source directory dynamically and then poll the files.
    The source folder structure looks something like this :
    \Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface1
    \Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface2
    That is we need to pick up the file every day from a new folder, say, for 24th July 2013 - \Archive\FROM_System\2013\07\24\Interface1
    25 July - \Archive\FROM_System\2013\07\25\Interface2
    Will the PI SFTP adapter support this kind of requirement? As this is sftp sender adapter Operating system level command option is also not available.
    Do we have any standard module/Bean to dynamically change directory name in the sender SFTP adapter?
    i will really appreciate your quick help.
    Thanks
    Monica

    Hi Monica,
    Yes it should work. Did you check this thread:
    http://scn.sap.com/thread/3376137
    Also refer to the following documentation link for the SFTP sender adapter (scroll down to the adapter specific message attributes):
    http://help.sap.com/saphelp_nwposc/helpdata/en/2e/99f0fb5a9e45b3b148c90e87fafcd1/content.htm?frameset=/en/c5/56eb8e7ec04435a0d54d96a18231e5/frameset.htm
    Best Regards
    Harald

  • Error in accesing the URL for Sender SOAP Adapter

    Hi Experts,
    I am wrkiing on SOAP-XI-Proxy Scenario. i have completed IR, ID and WSDL generation process.
    While Generating the WSDL File I used following URL. (No Party in my case)
    http://domain name:Port no/XISOAPAdapter/MessageServlet?channel=:SYS_BS1:CC_SOAPSender_Test1
    When i run this same URL on the browser, it asks me the username/password.
    After entering the username/password i am gettnig the Following Error.
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.adapter.soap.web.MessageServlet (Version $Id: //tc/xpi.adapters/NW07_06_REL/src/_soap_application_web_module/webm/api/com/sap/aii/adapter/soap/web/MessageServlet.java#4 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of $Proxy123_10000
    ModuleProcessorRemote not instantiated
    I have confimed that SOAP sender channel is active and configuration object is also tested in ID.
    I have searched the similar threads but not found proper solution.
    Please suggest.
    Regards
    Jagesh

    Hi Prateek,
    I am trying to access the Web service through the following URL and giving the same Error as mentioned above.
    http://Domain Name:Port No/XISOAPAdapter/MessageServlet?channel=:SYS_BS1:CC_SOAPSender_Test1
    I have also confirmed that my login id consist of all the roles of PIAPPLUSER.
    Is there any further settings required or WSDL file needs to be published first???
    Please suggest.
    Thanks & Regards

  • Dynamic URLs for the mx:HTTPService component

    I am looking to make the url property of an mx:HTTPService
    component dynamic.
    <mx:HTTPService
    id="srvDivision"
    url="
    http://prodserver/prod/get_division.jsp"
    useProxy="false" method="POST">
    </mx:HTTPService>
    I would just like to have an environment property or some
    other way where the value is not compiled into the code but derived
    at runtime. I am sure this quesiton has been asked before but I
    couldn't find a direct answer. I currently use a ResourceBundle
    (and properties file) but this is done at compile time. I would
    like to change the value of the "
    http://prodserver/prod" on the
    fly, depending on what environment I am working in...dev or test or
    whatever. I am not necessarily looking for the fastest way to do
    this, but the right way to do this. Is Data Services the way to
    go?

    How about when i wanted my HTTPService url to become dynamic
    that it gets from an external text file or xml file. Here is an
    exampl...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:remoting="com.oreilly.
    programmingflex.rpc.*" layout="absolute"
    initialize="initializeHandler(event)">
    <mx:Script>
    <![CDATA[
    private function initializeHandler(event:Event):void {
    textService.send( );
    private function resultHandler(event:Event):void {
    textArea.text = String(textService.lastResult);
    ]]>
    </mx:Script>
    <!--<mx:HTTPService id="feedRequest" url="ip.txt"
    result="resultHandler(event)" useProxy="false"/>-->
    <mx:HTTPService id="textService" url="
    http://123.136.72.41/mashupdemo/ip.xml"
    result="resultHandler(event)" />
    <mx:TextArea id="textArea" width="500"/>
    <mx:VideoDisplay id="vid"
    source="{textService.lastResult.subscribers.thevideo}" width="450"
    height="338" x="20" y="75" />
    </mx:Application>
    As you can see my HTTPService URL points to a file named
    ip.txt, the file includes my database URL where i will get my files
    to be played in my VideoDisplay. Is there anybody who can help me
    with this stuff. any reply would be very much appreciated.
    thanks!!!

  • How to shorten URL of Sender Http adapter?

    Hi,
    in a HTTP-BPM-R3 scenario I have given the below adress to a 3rd party application which is goiing to trigger BPM:
    http://<server>:<ABAP-port>/sap/xi/engine?type=entry&version=3.0&Sender.Service=<YourService>&Interface=<YourNamespace>%5E<YourInterface>&sap-user=XXXX&sap-password=XXXX&QualityOfService=ExactlyOnce
    However they say that their tools doesnt allow to enter more than 127 char as URL. So they asked me to shorten it. Is it possible?
    Of course I can shorten ns,interface, user, pass length (and by using synch interface the last part can be chopped off) but I wonder how to get rid of "&version=3.0" or user/password for a specific interface. Or is there any other solution inside PI like in ICM or somewhere defining a URL mapping/routing and converting a  tiny URL to URL above?
    PI: nw2004s SP20.
    Any help will be appreciated...
    Best Regards,
    Edited by: FIT CONSULTANT on Jul 17, 2010 9:31 AM

    Thanks guys,
    My problem is not resolved (I did not try the dispatch configuration) I shortened the URL by shortening the namespace. Now I have a different problem thread:
    Http sender without SOAPAction
    Regards,

Maybe you are looking for

  • Problem with Iphone 6 unlock

    Hi there. I have the iPhone NJ 6 (64Gb) I got (unlock). After returning home, I put the phone to the local operator's sim card. After the first attempt, however, was a problem on the phone screen. the screen was invisible. Scratches appeared. Improvi

  • Sync videos to Ipod

    I've recently downloaded some music videos from youtube to my Itunes account,they're in my RECENTLY ADDED and Movies, I can play them on my pc just fine, but they're not syncing to my Ipod touch.Pleeeeeese tell me what to do. Thank you all.

  • Gl balance inbound and outbound

    Hi sap gurus, We are having legacy systems that should interact with sap.I need to know the following for the GL balances through inbound and outbound 1.How data will flow parallely into sap.what steps i have to follow to do this. 2.what user exits o

  • Lightbox Image issue

    Good afternoon, I have DL and added to my website a gallery. Within the pop up image the Prev, Next and Close.gif images are missing when I click on a image.. I can see them within DW, but not on the pop up window. I do not have a host yet, so everyt

  • 10.8.4 Update - App Store - Waiting Problem?

    I checked for updates last night and the App Store opened and said 10.8.4 was available.  I clicked 'update' and it showed as 'waiting'.  This morning, fifteen hours later, the App Store still shows 'waiting'.  I am unable to log out or shut down.  I