Client http adapter wanted

Hi,
i am doing a HTTP scenario. Can somebody tell me HTTP client adapter code to use in my scenario.
sonali.

Hi,
refer this link.. u will find that in the following  thread
XI http-adapter; http-post test tool?
Cheers,
Siva Maranani.

Similar Messages

  • Where can i fing HTTP test tool/ client http adapter?

    Hi,
       Where can I find http test tool/ http adapter client tool? So that I can sedn messages to XI. Appreciate for your response.
    Thanks,
    Mallikarjun.M

    Hi,
    In XI You can go to RWB (from XI server homepage)->Comp Monitoring -> Display All ->Int Server-> Int Engine
    In the bottom, you find 3 tabs, select the test message tab to post messages.
    Pls note that, when you need to test, you should have created the scenario in IR/ID (and u can use the details of Recr Determination ID) to fill in the details.
    As Chandra Mentioned you can use Stephan's code.
    Hope this helps
    Regards
    Agasthuri Doss

  • 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

  • How to send the payload to a jsp using receiver Http adapter?

    Hi experts,
    I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
    service number : port no ,
    path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test=.I tried this but it doesnt work.
    Is there any way to check the URL that it forms after appending the querystring in the url ...?
    So please provide help on this or suggest a solution to [email protected] as soon as possible.....
    Thanx in advance.
    Akshata

    hey Shekhar,
    thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
    actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
    http://xx.xx.xx.xx:8080/abcdef/trial/    And it gives a proper response message after clicking on the submit button.
    now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
    addressing type: url
    target host : xx.xx.xx.xx
    service no:8080
    path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
    content type: text/xml; charset=iso-8859-1
    xml code: UTF-8
    Mask special characters (URL escaping) checked.
    now since the name of the inputfield is "test" in the prolog I gave test=
    But it doesnt work I get this error "http request parameter [test] is null" in the response message  which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
    Thanx ,
    Akshata

  • ASMA in HTTP adapter

    Hello All,
    I'm want to use the ASMA in http adapters.
    I tried in file adapters and  got the expected result but in HTTP couldn't get it.
    In file adapter:
    I have selected the ASMA option in sender communication channel and selected the filename so that filename is included in message header.
    When selected the ASMA in receiver communication channel and selected the filename so that the filename which is added in message header is getting reflected here by overwriting the constant file name given in filename schema.
    In HTTP adapter:
    In sender communication channel i'm selecting the ASMA. But i have doubt in using the
    HTTP Header Fields .
    Field 1, …, 6: (technical name: HeaderFieldOne, .... HeaderFieldSix)
    URL Parameters
    Parameter 1, …, 6: (technical name: URLParamOne, …, URLParamSix)
    here url parameters implies what? is it the optional parameters like msgguid, party....etc other than mandatory parameters namespace,interface,senderservice?
    What is this HTTP fields...? is it any additional fields other than above optional and mandatory fields, which are coming in HTTP reuest url.
    I have used the HTTP client tool to send payload to my PI system. I sent the xml payload to pi by providing the mandatory fields. it's fine. when i gave the optional parameters in the input filed, automatically it is including in xi message header(without selecting the option URL parameters).
    Also i have added two input fields  and entered value in them, they got added in fields in URL. But they are not reflecting in messgae header inspite of selecting HTTP Header Fields and gave that input field.
    Please give detail description. I have checked in several blogs but didn't get enough info.
    Please help me.
    Regards,
    Ch.Venkat

    Hi Venkat,
    Please refer the SAP Note 1386621 - Plain HTTP Adapter: Dynamic parameter.
    here url parameters implies what? is it the optional parameters like msgguid, party....etc other than mandatory parameters namespace,interface,senderservice?
    URL parameter is to create or retrieve URL. for receiver HTTP adapter you can set this parameter on UDF and create dynamic HTTP url at run time.
    What is this HTTP fields...? is it any additional fields other than above optional and mandatory fields, which are coming in HTTP reuest url.
    HTTP fileds is to create or retrieve HTTP header values (If present).
    Please check the SAP note for more detail.
    regards,
    Harish

  • SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPT

    Hi there,
    I am trying to publish a file from SAP as web service using XI and SOAP Adapter.
    I am using ABAP proxy to get the data into XI.
    Designing and Configuration in XI has no problems because when i use File adapter the data is trasmitted to FTP server.
    But when I used SOAP Reciever adapter I am getting following error in RWB
    Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Error during parsing of SOAP header.
    <b>Scenario</b>: SAP ABAP Proxy -> XI -> WebService. Asynchronous.
    <b>SOAP</b> Receiver adaptor.
    <b>Target URL</b> http://<host>:<port number >/sap/xi/engine?type=entry&version=3.0&Sender.Service=SAPDC2653&Interface=urn:bzttest:00:hsa:test%5EOB_MI_BZT_TEST&QualityOfService=ExactlyOnce
    Do not use SOAP Envelop is checked.
    <b>SOAP Action</b> http://sap.com/xi/WebService/soap1.1
    What i am missing here? How should I solve this problem?
    Any help is appreciated,
    Thx,
    Yogi

    Say there's a bapi/rfc that you want to call on an R/3 backend (e.g. 4.6c).  On it's own, the R/3 system cannot expose the rfc/bapi as a web service, but XI can.  So in this case, the scenario would be:
    WS client -> XI -> R/3
    When XI "exposes" a web service, it is exposing a service for a receiving system (in the above example, the R/3 system).  XI itself does not provide or contain the service implementation.  When XI exposes a web service, it is always done via the <b>sender</b> soap adapter (i.e. if soap adapter is used).   Receiver soap adapter is used to call or consume an actual web service from an external application.
    Regards,
    Jin

  • Configuration of http adapter to reach https-URL

    I want to configure a http Receiver Communication Channel that is supposed to call a web service with the following URL: https://api.sandbox.ebay.com/ws/api.dll.
    I did the following set-up in the http Adapter:
    Addressing Type: URL Address
    Target host: api.sandbox.ebay.com
    Service Number (Port):443 (-> Standard https Port)
    Path Prefix: /ws/api.dll
    I startet the process and received the following error message in XI:
    "ERROR: The requested URL could not be retrieved. While trying to retrieve the URL: "http://api.sandbox.ebay.com:443/ws/api.dll?"The following error was encountered: Zero Sized Reply. Squid did not receive any data for this request."
    It seems it is calling the URL via http, not with https.
    Can someone tell me how to change the configuration of the http Adapter that it uses https?
    Thanx in advance.
    Alex

    Hi Alexander,
    Create RFC Destination with Connection type ‘G’ using Tr. Code SM59 in XI System and enter all the parameters like TargetHost,(Target System), ServiceNo(external port)and path prefix. In the tab “Logon/Security” enter the login info and enable SSL. Run the transaction STRUST to setup client PSE.
    For more info on this refer to help.sap.com at the following <a href="http://help.sap.com/saphelp_nw04/helpdata/en/65/6a563cef658a06e10000000a11405a/content.htm">link</a>.
    In the HTTP Adapter communication channel config in XI ID, Select the “Addressing Type” as HTTP Destination and in the HTTP Destination field enter the HTTP Destination name you created in the above step.
    Hope this helps.
    Regards,
    Sam Raju

  • File fetch from external souce...  http adapter, file adapter, or...

    Hi - Hopefully this is a straight-forward question. I need to fetch a file from an external source (vendor) using a url that they provided us. Secondly, the url and file change each run. Here is the scenario:
    #1.
    - our side (PI 7.11) calls their webservice A to tell them to generate a report, and a report handle id is passed back to us (this part works)
    - our side (PI 7.11) calls their webservice B with that report id to get a https url string (this part works). E.g. return url is https://pvab70barp.companyb.com/reports/ODbsPPSBIQxPs/u1/u1_1307128013471215.csv
    - our side (PI 7.11) then needs to go fetch the contents of that file... again, the file is over at their site
    #2.
    The next time we run this we would get an entirely different url string
    So to solve #1, it seems to me that the HTTP adapter can be used (can it be used though given the url is https?). I don't think FILE adapter can be used as I believe it needs the file to reside on the local file system.
    To solve #2, it appears some dynamic configuration of the url is needed. Is their an easy way?
    If anyone has thoughts on these then I would appreciate hearing back from you with your comments. I have not worked with either of these adapters yet.
    Thanks,
    Keith

    1) You can use http or https connection to connect remote server.   HTTPS is not an issue. You create RFC destination of type H and there provide login credentials such as client certificates. Use that destination name in the http receiver adapter to use https.   Looks like to read the file that is on the http server, you might want to use Java proxy to achieve this. Simple HTTPS communication would not read the file. Or request the client to share it in the network shared drive. so that we can use File adapter to pulll the file.
    2) Yes you can use dynamic configuration in the mapping for the dynamic HTTPS URL.

  • Plain HTTP Adapter

    Hi All,
    I am working on a scenario ,
    ThirdyPartyDB(Oracle)  --> PI -->SAP.
    I am not using JDBC Sender between OracleDB and PI.
    As  client wants event based trigger from Thrid party system.When ever a event occurs,the third party system(DB) would send data to PI.So I suggested them to write a Stored procedure to convert their DB Table data to XML format and send it over HTTP .
    Now, I need to given them a HTTP URL where they need to send their data.So, in this case will I use Sender HTTP adapter or Receiver HTTP adapter?
    Please provide some heelp on the follwoing scenario DB(Stored Procedure) >HTTP Adapter->PI>Idoc->SAP.Could you please givea sample DB stored procedure as how to convert data in DB to XML and send that to HTTP URL.
    Venu

    >
    > 1. Should the URL which I need to provide the DB guys looks like this ,
    > http://hostname:port/sap/xi/adapter_plain?namespace=http%3A//svg.com/target&interface=mi_test&service=bs_sender_http&party=&agency=&scheme=&QOS=EO&sap-user=PIapplication user&sap-password=password&sap-client=001&sap-language=EN
    >
    Yes
    Do i need to register do setting XI for this URL , i mean exposing this URL etc...
    No need
    > 2.Assume that, the DB guy is sending two fields test1 and test2 , so would the XML look like
    >
    > <?xml version="1.0" encoding="UTF-8"?>
    > <ns0:mt_test xmlns:ns0="http://svg.com/target">
    >    <test1>value1</test1>
    >    <test2>value2</test2>
    >    <test3>value3</test3>
    > </ns0:mt_test>
    yes

  • Use of HTTP adapter

    Hi Folks,
       Can anyone give me the use of HTTP adapter, and in what case we go for HTTP adapter with an example.
    Their is SOAP  adapter which can communicate with the webservices then what is the use of HTTP adapter.
    Thanks,
    Srinivas Reddy.

    Hi Reddy,
    Simply if the security is not concern then use the HTTP adapter otherwise use the SOAP adapter. In the SOAP adapter security is available.
    The plain HTTP adapter gives application systems the option of communicating with the Integration Engine and exchanging business data using a plain HTTP connection. Depending on the receiver system, outbound messages can be enhanced with certain information.
    The SOAP adapter enables you to exchange SOAP messages between remote clients or Web service servers and the Integration Server or the PCK.
    In the SOAP adapter, you can specify security settings to be used to sign/verify the SOAP body. In addition, you can specify the standard to be used for signing/verifying the SOAP message.
    whenever Xi need to communicate with any sort of webservice i.e remote applications it uses SOAP adapter.. And XI uses HTTP adapter when you want to post a HTTP request message from a web application to XI.
    Regards
    Ramesh

  • HTTP Adapter Implementation

    Does anyone have some sort of how-to guide in using the HTTP Adapter ? From the point of having installed to HTTP Adapter - Once you have deployed the Servlet, and have tested that it loops.. I realize there are AQ's to be set up as well. Am not an Oracle expert by any means. I also could use some sample of how/what is posted to the servlet...I simply want to post some XML to the OAI thru the http adapter.. I'd appreciate all the help...
    THanks....

    Hi Alexander,
    Machanism for HTTP adaapter is different.There is no polling Schedule.You can Set the HTTP time out time.
    With transaction SXMB_ADM>  put RUNTIME and then display specific configuration
    there you can increase the TIMEOUT time and save.
    The plain HTTP adapter is used by external systems to connect to the integration engine using the native HTTP interface
    The adapter at the inbound channel is located before the integration engine pipeline and calls this pipeline
    The adapter at the outbound channel is called by the pipeline and can be regarded as part of pipeline
    Module processor not used
    HTTP client connects to integration server (ABAP) directly and the HTTP request should contain all relevant header information about sender.
    Regards,
    Sumit Gupta
    **PS: reward points if useful***

  • Http adapter -reading a http file stream

    Hi folks,
    Here is a requirement
    I need to read a file sent as an http object stream through XI and then updated the same in a database table in R/3?
    <b>How can i configure the http adapter so that it reads the file stream</b>
    regards
    krishna
    Message was edited by:
            Krishnamoorthy Ramakrishnan

    Thanks bhavesh
    Though your reply and reference did not directly answer my question, which i will explain below concisely, it did help me to get an idea about how to handle my requirement.
    Please read and give me your valuable advise.
    The sender is a distributor that wants to send some text file to a file server in XI.The sender will have to send the file as a http stream link. XI has to read the  file from the http stream and push it to a  file server in XI.  for this, i have identified that
    1. At outbound/sender side, there is an HTTP adapter in XI.
    2.The request to XI should be of the some think like
    <b>http://<host>:<port>/file stream.....</b>
    3. At inbound side , I have a java server proxy as suggested in the blog.
    4. The server proxy will use a http client connection to read the file stream and another ftp client to push it to the file server
    Do you think this would realize the requirement?
    I have also got a question here
    With the above mentioned URL, will the sender be able to communicate with XI, since the client is outside the network and has access to internet only. How can it communicate with XI?
    Also, Is there an better alternative to this approach?
    Thanks for your help
    Kind Regards
    krishna

  • HTTP adapter vs WCF-based adapter

    i have a requirement working with third party CRM system . Right now they are offering SOAP web service and saying HTTP adapter works, but I want to go for advanced technology like WCF based adapters. Which option is better? HTTP or WCF-based?? if it is
    WCF , what is the right WCF adapter to use. NOte: they are offering only SOAP.

    Hi,
    Off-course the WCF based option is better. And for your requirement you have to use WCF-BasicHttp adapter which is meant for ASMX-based
    Web services and clients that conform to the WS-I Basic Profile 1.1.
    SOAP VS WCF-BasicHttp Adapter points from MSDN article:
    WCF adapters documents per second rate is general be better than SOAP adapter. 
    SOAP adapter has the disadvantage of serializing and deserializing messages between .NET types and raw XML data which in some cases could result in unwanted data modification. WCF adapters take the approach of preserving the data stream. 
    WCF adapters publish what is essentially the same schema as will be used in the BizTalk runtime. In contrast, SOAP adapter returns metadata generated by reflecting on the .NET classes generated to represent the schemas. Since .NET does not preserve
    all the nuances of XSD schemas, the exposed WSDL may not accurately reflect the schemas used by the BizTalk runtime. 
    It is easier to migrate from WCF-BasicHttp to WCF-WSHttp if needed.
    Maheshkumar S Tiwari|User Page|Blog|BizTalk
    Server : How Map Works on Port Level

  • Any OOB Web Service or HTTP adapter in OIM for Recon?

    Is there any OOB, Web Service or HTTP adapter available in OIM using which, User account data can be reconciled from a SOA service?

    Ya web service is available. You can go through Design Console Guide chapter 12 for more. If you need any help for that just let me know.
    Depends on the OIM Installation, you have to run the following commans:
    For windows-
    OIM_HOME_Dir\setup\spml_AppServerName.cmd appserver_admin_password oim_db_user_password
    For unix:
    OIM_HOME_Dir/setup/spml_AppServerName.sh appserver_admin_password oim_db_user_password
    These are for non-clustered environment.
    If you want to create your won WS, then
    Create a dummy RO in OIM and your favorite java web service package (i.e. Apache Axis2) and create a small server app (i.e follow the example in the quick start (qs) guide in Axis2). Deploy the server side app on any app server that you happen to have handy (or follow the instructions Axis2 qs guide). Deploy the client side as provisioning process for your dummy object.
    Edited by: Struggler

  • Could someone help me to clearly distinguish between SOAP and HTTP adapter?

    In which scenarios we can go for HTTP adapter and when to go for SOAP adapter?

    Hi Lekshmi !!
    A SOAP message will be bundled inside the soap envelope.HTTP is not an adapter in adapter engine whereas soap is an adapter i.e, HTTP doesn't require a communication channel where as SOAP requires.You can send soap messages using some SOAP client.
    SOAP Adapter is used to xchange SOAP messages bw remote clients and webservices....
    check this link for more differences..
    SOAP and HTTP adapter
    When you need to Send Data to XI from a Webservice , your SOAP adapter is used.
    HTTP adapter is used when you want to post a HTTP request message from a web application to XI.
    How can i make use of SOAP Sender Adapter without using any tools like XML Spy etc....
    XML SPy is used as a TEST tool when you are sending SOAP information to XI. TO actually send data , you need to configure a webservice and construct a SOAP request message and post the data .
    we use SOAP adapter when we need to connect to remote system or use Webservices in these cases we use SOAP adapter.
    HTTP Adapter is used by extenal systems to connect to Intergartin server using native HTTP Interface.
    the http adapter is a service which is directly connected to integration engine. Adapter Framework (Java) isnt involved. It is much more performant than SOAP adapter.
    The SOAP adapter is written in Java and is responsible for the SOAP envelope around the real XML message. You can build/remove that envelope as well in the mapping and use instead http adapter. But standard for webservices is using SOAP adapter.
    Check this thread....
    Difference between SOAP and Http Sender
    HTTP Adatpter Vs Soap Adapter
    HTPP Adatpter Vs Soap Adapter ????
    Difference between SOAP and Http Sender
    Difference between SOAP and Http Sender
    Plain HTTP Adapter vs SOAP Adapter with regards to SSL
    Plain HTTP Adapter vs SOAP Adapter with regards to SSL
    Hope it clears your doubt !!!!
    Questions are welcome here!!
    <b>Also mark helpful answers by rewarding points </b>
    Thanks,
    Abhishek Agrahari

Maybe you are looking for

  • Error While Printing II

    Just wanted to supply a fix to a previously archived post concerning an error message while trying to print from any application and receiving the message "Error While Printing." I fixed this issue by rebooting into safe mode (without extensions - ho

  • Error message when sending mail

    I am using a G3 tower runnig OSX 10.3.9 with 768 megs of memory. I am using Mac Mail and had tried to send an email that I had accidentally attached the wrong file (12 megs). I realized my mistake after I hit send and I tried to delete it from the ou

  • How to include flash object in web page

    Hi, I am using the code below: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="626" height="159"> <param name="movie" value="menu_application.swf" /> <param name="wmode" value="transparent" /> <!--[if !IE]>--> <object type="applic

  • How to implement the pagination  in the entity bean?

    How to implement the pagination in the entity bean? could The rumnum and sub qurey be used in the ejb ql? Would you mind giving me some methods to implement it?

  • Archiving process for batch and handling unit

    Hi Guru,    Need your help in achiving process. I would like to achive batch and handling unit information in SAP. Is it possible that, I can just achive these information without archiving sales order, inbound delivery, outbound delivery and etc doc