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

Similar Messages

  • How to use POST method in PI 7.11 when using HTTP adapter

    Hi
    I need to use the POST method when using the http receiver adapter in PI 7.11. Now the GET method is used. I am using the Addressing Type = "HTTP Destination" where you create an RFC of type 3 in SM59 and reference this in your HTTP receiver adapter.
    What do I do?
    BR
    MIkael

    Hi Patrick
    I need to use the POST method, not the GET method. The external partner, which is receiving our message, says, that we are using GET.
    This is from their log where we are DongEnergy:
    From DongEnergy:
    2010-01-14 09:46:11 W3SVC1 10.1.2.37 GET /DongEnergy/xxxxxxxxx.dll - 443 - 193.162.91.1 SAPNetWeaverApplicationServer(1.0;711) 500 0 0 214 172
    From Danisco:
    2010-01-14 07:54:13 W3SVC1 10.1.2.37 POST /Danisco/xxxxxxxxxx.dll - 443 - 193.XXX.191.1 SAPWebApplicationServer(1.0;640) 202 0 0 380 5984
    Could it be our firewall which vonverts the method from POST to GET?
    MIkael

  • Problem translating servlet name from an encoded URL when using HTTPS

    Hello:
    I am experiencing a wierd issue when using WLS 5.1 with HTTPS and am hoping someone might
    be able to shed some light...
    I have deployed a web application and am using HTTPS.
    So, a typical call to a servlet is
    https://foo.com/web_app_context/servlet_name/servlet_arguments
    The servlet is used to upload files from disk to a database and to also download the same.
    Therefore, the servlet_arguments string contains the file name among other things.
    The problem seems to arise when the file name contains either a space or an
    underscore e.g. "file_name" or "file name". It is then typically encoded as
    "file%20name" in
    the URL.
    So a call then looks like:
    https://foo.com/web_app_context/servlet_name/file%20name
    When this request is sent to WLS, it seems to truncate the servlet_name by a couple
    of characters causing the request to fail.
    This works fine using HTTP.
    Any thoughts would be much appreciated.
    Thanks in advance.
    Prashant

    The JNDI call is different when you call an EJB from inside the J2EE.
    ctx = new InitialContext();
    ref = ctx.lookup("java:comp/env/<JNDI-Name>");
    Regards
    Stefan

  • Can I get a response back when I use HTTP adapter

    Hi ,
    I am doing a integration between SAP and ThirdParty Product using PI 7.1.
    The scenario is ThirdParty -> PI -> SAP ,using HTTP adapter between ThirdParty and PI , and IDoc adapter between SAP and PI.
    So,its a HTTP sender and IDoc receiver.
    So I was just curious to know if the IDoc posting failed in SAP ,can I send a response from SAP to Thirdparty regarding the failure along with some error message.
    Thanks for your responses.
    Venu

    Hi,
         It may lead to some timeout problems if you design your scenario as synchronous i.e sending response back to HTTP..
    as SAP may take time to process idoc and need to provide response back to PI ..by that time the connection may become invalid and thirdparty may receive response as timeout error...
    As anyway PI has the option of Alert managements..you can trigger the error mail to the third party recipients for letting them the status...
    HTH
    Rajesh

  • Is it possible to use HTTP adapter?

    Hi All,
    interface will be trigged by ECC to run once a day. The purpose of this interface is to update ECC exchange rates with the exchange rates file provided by the Central Bank of Brazil.
    The file is available in the web site: http://www. XXXX and  its name changes depending on the date.
    The format is YYYYMMDD.csv. Example: 20100419.csv
    The scenario will be Abap proxy <-> PI <-> website (Http / soapu2026 whatever) (Syncronous as the date must be sent to build the correct filename).
    My main question is: how can I pick up this csv file from the website? Is it possible to use HTTP adapter?
    Thanks,
    Satya Kumar

    Hi ,
    i am not sure about this,i wolukd prefer developing JAVA Proxy or File Adapter . try this code it read the data from website, try in you stand alone application,it is able to read or not.
    you will face two problems,you have to convert CSC file to XML it is not possible in HTTP Adapter,
    import java.lang.*;
    import java.util.*;
    import java.net.*;
    import java.io.*;
    class URL2AC
            public static void main(String args[]) {
           try {        
              URL url = new URL("http://www.XXXXXXX.com/raj.txt");
              URLConnection uc = url.openConnection();
              BufferedReader in = new BufferedReader(new InputStreamReader(uc.getInputStream()));
              while (in.readLine()!=null)
                   System.out.println(in.readLine());
           catch(Exception e) {
              e.printStackTrace();
    Regards,
    Raj

  • Using HTTP adapter with no namespaces

    Hi,
    Is there anyway to use HTTP adapter when the provider does not accept the namespaces. The HTTP binding wizard requires a targetnamespace to be defined in the request and response xsds that we have to use.
    Thanks & Regards
    Siva

    Bernd we are trying to do the same thing only with the soap adapter.  I'm convinced that no one really knows how to do it.  We can't even find an SAP CONSULTANT that has done it .. at any cost!
    If you hear anything good .. please let me know - my email is [email protected]
    I think the nightmare is coming in because when SAP bought the j2ee ( application server ) they never really have integrated it so it's very confusing if the settings need to be done on the ABAP side or the J2EE side via visual administrator.  In addition most Basis guys are only experienced in the ABAP side and not the J2EE.

  • XI message with Attachment using Http Adapter

    Hi ,
    We are using XI/PI 7.0 with Sp09 and Sender Application is SRM and Receiver is Ariba MarketPlace.
    We are trying to Send PO with Attachments like Word, PDF etc from SRM to Ariba using Https adapter and from SRM we are using ABAP Proxy. When I did the testing with out any special config, I was able to send the attachments (I can see word doc as part of the payload-attachment) to XI from SRM but this attachment is not going through https adapter from XI to Ariba?
    I have read some posts on this but I could not find the answer for my situation. One of the solution is that we can use SOAP adapter but we don't want to use Soap for some reasons.
    Please give your thoughts.
    Thanks in Advance.
    -Laxman

    > Thanks for your replies, I am little confused, based
    > on your references http can't support attachments.
    That is true.
    > Also sap help link says Http adapter doesn't support
    > attachments and XI adapter also doesn't support.
    That is not true. XI adapter (in fact we do not talk of an adapter) supports attachments.
    > It means Proxy also shouldn't support because proxy is
    > nothing but XI adapter.
    This is true, ABAP or Java Proxy are like XI adapter. Therefore it supports attachments.
    > But When I send PO with attachments from SRM using
    > Proxy connection I was able to pass through XI. So
    > how proxy was able to send the attachments and this
    > is contradicts to the help documentation.
    The online help is wrong.
    > We don't want to use SOAP because we are already
    > using https adapter and this scenario is in
    > production also if we go with SOAP then we have to
    > re-import the digital certificate in Java Engine for
    > SSL. Attachments are the new enhancement only.  
    I do not see another solution besides using SOAP adapter in so-called non-SOAP mode. Yes you have to reimport the certificates to J2EE stack.
    Regards
    Stefan

  • 3rd party to sap using HTTP adapter

    Hi Folks,
        I'm sending some IDOC to sap from the 3rd party. I have to use HTTP adapter as sender and IDOC as receiver adapter.
    Can you please suggest me how to configure teh sender side. As I know there will be no such configuration for the sender adapter as it is HTTP then how the HTTP adapter will get the data sent by the 3rd party and how it will pass it on to the idoc adapter ?
    Regards....

    If you like to have more details about the http url
    then refer the below link
    http://help.sap.com/saphelp_nw70/helpdata/en/c9/775b3b82646c3ae10000000a114084/frameset.htm
    Rajesh

  • Scheduling of message using HTTP Adapter.

    Hi All,
    The scenario is SAP ECC to SAP PI to SAP MII, and we are using HTTP adapter on the receiver side.
    The requirement is that, the messages should be sent to MII in the order in which ECC sends it to PI.
    Can anyone please help me on how this can be achieved.
    Thanks and Regards,
    NehaSingh

    Hi Neha,
    If it is IDOC to HTTP scenario and you use EOIO also you will face a big problem.
    It will not work. I have faced the same problem.
    Suppose at a same time ECC genaretes 100 IDOC then then in intregration engine it may not reach at same sequecnce as IDOC no.
    You can go with IDOC packageing in this case in ECC.
    In ECC send the IDOCs as packages.
    Also in PI create one Sender IDOC channel with package size.
    then before your actual mappinng create a simple mapping program to sort the IDOC based on IDOC number. Then do the actual mapping.
    Dont forget to create an Unbounded IDOC structure as source side in Mapping,
    Edited by: Debashish on Jul 1, 2011 2:29 PM

  • Want to send information in Header dynamically using HTTP adapter using post method

    Hi ,
    I have a requirement to send below information in http Adapter header dynamically using post method. which will be authenticated by third party system.
    Authorization : WSSE realm="SDP", profile="UsernameToken", type="AppKey" X-WSSE : UsernameToken Username="XXXX", PasswordDigest="Qd0QnQn0eaAHpOiuk/0QhV+Bzdc=", Nonce="eUZZZXpSczFycXJCNVhCWU1mS3ZScldOYg==", Created="2013-09-05T02:12:21Z"
    I have followed below link to create UDF
    http://scn.sap.com/thread/3241568
    As if now my third party system is not available while sending request I am getting 504 gateway error. is there any approach I can validate my request is working fine?
    Regards,

    Hi Abhay,
    Correct me if I'm wrong but I think WSSE requires a SOAP Envelope. If that is the case, there are two approaches: the first one is to use SOAP Axis and the second one is just to build SOAP Envelope via Java mapping.
    You also need to test it successfully externally, capture the request and replicate it in XI.
    Hope this helps,
    Mark

  • JSession cookie dropping cause DuplicateSessionDetected exception when use https rather than http

    I developing Grails+BlazeDS server and Flex AIR client and stucked with this error: Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly
    Google searches didn't successfully, as I see some difference in situations. The issue I got only when Flex client interact with server via https.
    Flex client:
    <s:ChannelSet id="userChannel">
               <s:SecureAMFChannel uri="https://localhost:8443/Con/messagebroker/amfpolling" />
    </s:ChannelSet>
    button click in UI triggered login method:
    loginResult.token = channelSet.login(usernameInput.text, passwordInput.text);
    And finished with DuplicateSessionDetected exception.
    After investigating network monitor logs, I found that a jsession cookie received from server not set in next requests to a server:
    Response from server (operation: client_ping):
    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Set-Cookie: JSESSIONID=F58F1ADA97E70915EF9E6E4EE1AEBE00; Path=/; Secure
    Content-Type: application/x-amf
    Content-Length: 173
    Date: Sun, 23 Feb 2014 10:17:00 GMT
    Flex Message (flex.messaging.messages.AcknowledgeMessageExt)     clientId = EA18E8B9-951F-6F87-7B47-48B8B202EE75    correlationId = 7D2782C1-C8A5-41A3-2055-5E3F771424C8    destination = null    messageId = EA18E8F6-9E0E-1FE4-0D26-6F0E602F5C5E    timestamp = 1393150620542    timeToLive = 0    body = null    hdr(DSMessagingVersion) = 1.0    hdr(DSId) = EA18E8B9-950B-4B42-EF70-369D656BA3F2
    And next request to server (login operation) without jsession cookie:
    POST /Conn/messagebroker/amfsecure HTTP/1.1
    Referer: app:/BlazeDSClient.swf
    Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, text/plain;q=0.8, text/css, image/png, image/jpeg, image/gif;q=0.8, application/x-shockwave-flash, video/mp4;q=0.9, flv-application/octet-stream;q=0.8, video/x-flv;q=0.7, audio/mp4, application/futuresplash, */*;q=0.5
    x-flash-version: 12,0,0,68
    Content-Type: application/x-amf
    Accept-Encoding: gzip,deflate
    User-Agent: Mozilla/5.0 (Windows; U; en) AppleWebKit/533.19.4 (KHTML, like Gecko) AdobeAIR/4.0
    Host: localhost
    Content-Length: 299
    Flex Message (flex.messaging.messages.CommandMessage)     operation = login    clientId =  null    destination =  auth    messageId =  7B47BBF2-08C0-0E41-5D88-5E3F76FA4882    timestamp =  0    timeToLive =  0    ***not printing credentials***
    and server answering with new session cookie:
    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Set-Cookie: JSESSIONID=03BD8347F9E9511C299B717DD55625C9; Path=/; Secure
    Content-Type: application/x-amf
    Content-Length: 535
    Date: Sun, 23 Feb 2014 10:17:01 GMT
    Flex Message (flex.messaging.messages.ErrorMessage)     clientId = null    correlationId = 7B47BBF2-08C0-0E41-5D88-5E3F76FA4882    destination = auth    messageId = EA18F4A7-C80D-103B-F8D0-58B6F148F142    timestamp = 1393150621768    timeToLive = 0    body = null    code =  Server.Processing.DuplicateSessionDetected    message =  Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly.    details =  null    rootCause =  null    body =  null    extendedData =  null
    And again - when used non-secure protocol everything ok - session cookie sevt to server in login operation as expected.
    I have a little experience in Flex development and didn't find any method to set session cookie when triggered channel login request. Could you help to resolve this issue, please?
    Thanks.

    Finnaly resolved it. I meet similar questions in the web, so I hope this solution will be helpfull for somebody.
    The  cause of DuplicateSessionDetected exception has been a Network Monitor tool of Flash Builder. After switching it off no any exception has been occurred. I think there issues  when Monitor acting as proxy when used with secure protocol.

  • How to set fetchsize of sql Query when using Database Adapter.

    Hi All,
    I am using DatabaseAdapter to connect to database and retriving huge amount of data.For improvement in the performance I want to set the "fetchsize" of sql query. I know fetchsize can be preset in Java using Jdbc 2.0 API.Please let me know how to set this value in BPEL when using DBAdapter?
    Thanks
    Chandra

    I talked to the developer of the db adapter - and he told me this feature will be available in BPEL PM 10.1.3 (which is supposed to be production later this year, and a public beta soon). If this is an emergency I would recommend going throug Oracle support and have them file an enhancement for 10.1.2.0.2
    hth clemens

  • Issue with " " in file when using file adapter

    Hi,
    Iam using FIle adapter to load the data from file to a table.
    Every thing is working fine, but when ever the record in the file has " " in the data it fails.
    Eg:
    12|"LOG" logo|Y
    I am using file adapter with delimiter | and empty in enclosed by.
    When I intiate the process it throws saying expected delimited | but could not be found . But I am not using any enclosed by clause so it should not check for | after ".
    Any one have any ideas or face this kind of problem.
    Thanks

    Hi,
    Even i faced this issue before...the problem with file adapter is the attribute nxsd:quotedBy takes &quot; as default even if u dont mention it takes the same and now after the quotes it immediately expects | wch is not there in the data and it throws the error...now the fix for the problem is put some symbol for nxsd:quotedBy wch u never expect in the data some thing like less than or greater than symbol ....some thing like below
    <element name="FieldTwo" type="string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy="<"/>

  • Loss of support for Tascam iU2 when using lightning adapter

    Does anyone know why when using an iPod Touch 5g using the lightning adapter the Tascam audio/MIDI interface isn't recognized while using an iPod Touch 4g with iOS6 installed it is totally useable?
    Thanks

    https://www.apple.com/feedback/
    apple only fixes if we complain

  • Req/Reply message using HTTP adapter

    I am using a HTTP Adapter to receive a request message from a client application and sending a response back to the client. The response is being sent by the adapter is XML with a HTML wrapper. However, the client application can't accept HTML; we have to send pure XML.
    Is there any easy way to change this in adapter.ini? Can we do something using ReceiverCustomizer? or we have to do something in the TransportServlet?
    -----------------------------------------Current Response message-------------------------
    <html><head><title>TransportServlet </title></head>
    <body><h1>TransportServlet</h1>
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <ns1:response userId=""
    xmlns:ns1="http://quikpayasp.com/namespace/activity">
    <account type="StanfordCardPlan">
    <currentBalance></currentBalance>
    <accountActivityDate></accountActivityDate>
    </account>
    </ns1:response>
    </body></html>
    --------------------Expected----------------------------------------------
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <ns1:response userId=""
    xmlns:ns1="http://quikpayasp.com/namespace/activity">
    <account type="StanfordCardPlan">
    <currentBalance></currentBalance>
    <accountActivityDate></accountActivityDate>
    </account>
    </ns1:response>
    Appreciate your response.

    Try using D3L mode.
    babu

Maybe you are looking for