HTTP Request to Integration Server through ABAP Mapping

Hi Experts,
I need to send HTTP Request to Integration Server through ABAP Mapping.
Could you please provide me ABAP code which will post data to Integration Server.
Thanks,
Abdur

Hi Abdur,
   Can you explain your requierement more clearly?
Abap mapping is purely to convert the data in source structure to data in target structure.
It is not the job of Mapping to send data.
Regards,
ravi

Similar Messages

  • Unexpected error during HTTP request to voucher server The operation timed out

    I read books from my library through a system called READS. I have successfully used DE 1.0 without any problems, however, when I tried to use it recently it required me to upgrade to 1.5. Well I did so and now the books won't authorize. Here is the error message I am getting:
    Adobe DRM Error System: 5 State: 4 Class: 600 Code: 106 Message: Error on request or response from server. Please check your network connection and try again. Scroll below or view error.log for more details.
    Adobe DRM client Error: 706 Unexpected error during HTTP request to voucher server The operation timed out
    Requested URL: http://207.54.136.76/fulfill/ebx.etd?action=lend&orderid=939605378082105&bookid=ContentRe serveID:B91CC494-23AF-4C6A-9B0C-7DA050C05722-50
    Requested URL: http://207.54.136.76/fulfill/ebx.etd ?action=lend &orderid=939605378082105 &bookid=ContentReserveID:B91CC494-23AF-4C6A-9B0C-7DA050C05722-50
    --- end ---
    I have tried this multiple times with more than one book. Again, they worked just fine before I did the upgrade. I am running Vista SP1.

    Never mind, they obviously post the message on the ticket, but it doesn't send an e-mail. I will try what they indicated. Here is their response...
    Thank you for contacting Adobe Technical Support.
    I understand that you are getting "Adobe DRM Error" in Digital Editions.
    We have documented the steps to resolve this error message. Please do
    refer to this TechNote:
    Error: "Adobe DRM Error" when you activate Digital Editions or access an
    eBook
    http://www.adobe.com/go/kb402747

  • Problem in sending HTTP request to the server.

    Hi,
    i dveloped an ant script for sar deployment.
    i deployed a sar to my local soa server with ant script. it got deployed succesfully..
    but when i try to deploy to a remote server, getting the below error..
    "Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404"
    but the server is up and runnig and i am able to ping it from my machine and also access the console...
    below is my script
    build.properties
    wn.bea.home=C:/Oracle/Middleware
    all.needed.jars.path=D:/SourceCode/neededJAR
    oracle.soa.home=C:/Oracle/Middleware/Oracle_SOA1
    java.passed.home=C:/Oracle/Middleware/jdk160_24
    #Deployment environment
    deployment.plan.environment=DEV
    #Deploy Action
    deployAction =redeploy
    #credentials
    user=weblogic
    password=welcome1
    #For Composite deployment
    serverURL=http://10.177.154.6:7001
    forceDefault=true
    server=10.177.154.6
    port=7001
    sarLocation=D:/SourceCode/JAR
    build.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <project name="soaDeployAll" default="deployAll">
         <echo>basedir ${basedir}</echo>
         <property environment="env"/>
    <echo>current folder ${basedir}</echo>
         <property file="${basedir}/build.properties"/>
         <taskdef resource="net/sf/antcontrib/antlib.xml">
         <classpath>
              <pathelement location="${all.needed.jars.path}/ant-contrib.jar"/>           
         </classpath>
         </taskdef>
         <target name="init">
              <tstamp>
                   <format property="timestamp" pattern="yyyy-MM-dd_HH-mm-ss"/>
              </tstamp>
              <property name="build.log.dir" location="${basedir}/buildlogs"/>
              <mkdir dir="${build.log.dir}"/> <property name="build.log.filename" value="build_${timestamp}.log"/>
              <record name="${build.log.dir}/${build.log.filename}" loglevel="verbose" append="false"/>
              <echo message="Build logged to ${build.log.filename}"/>
         </target>
         <target name="deployAll" depends="init">
         <echo>Deploy for environment ${deployment.plan.environment}</echo>
         <antcall target="deployAllComposites"/>
    </target>
    <!-- Following Actions are performed for Composite files in Managed Server - Deploy,Redeploy -->
         <target name="deployAllComposites" depends="init">
         <foreach target="deployComposites" param="Files">
              <fileset dir="${sarLocation}" casesensitive="no" includes="*.jar"/>
         </foreach>
         </target>
         <target name="deployComposites" depends="init">
         <basename file="${Files}" property="basename"/>
    <echo>Deploy Project ${basename} for environment ${deployment.plan.environment}</echo>
              <if>
                   <equals arg1="${deployAction}" arg2="deploy" />
                   <then>
                        <echo message="Deploying composites in Managed server........." />
                        <ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
                             <property name="serverURL" value="${serverURL}"/>
                             <property name="user" value="${user}"/>
                             <property name="password" value="${password}"/>
                             <property name="overwrite" value="false"/>
                             <property name="forceDefault" value="${forceDefault}"/>
                             <property name="sarLocation" value="${sarLocation}/${basename}"/>
                        </ant>
                   </then>
                   <else>
                        <echo message="ReDeploying composites in Managed server........." />
                        <ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
                             <property name="serverURL" value="${serverURL}"/>
                             <property name="user" value="${user}"/>
                             <property name="password" value="${password}"/>
                             <property name="overwrite" value="true"/>
                             <property name="forceDefault" value="${forceDefault}"/>
                             <property name="sarLocation" value="${sarLocation}/${basename}"/>                         
                        </ant>
                   </else>
              </if>
    </target>
    </project>
    please help....

    Hi,
    Give the serverURL as http://<host>:<managed.server.port>/soa-infra/deployer and try.
    e.g . http://10.177.154.6:8001/soa-infra/deployer
    Regards,
    Neeraj Sehgal

  • Dynamic configuration in integration process using abap mapping

    Hi everybody,
    i have the following scenario:
    file adapter -> integration process -> file adapter
    The integration process uses an ABAP mapping and sets the filename in dynamic configuration as follows:
    *-- Set Parameter
        clear ls_dyn_record.
        ls_dyn_record-name      = gc_dyn_config_name.
        ls_dyn_record-namespace = gc_dyn_config_ns.
        ls_dyn_record-value     = <new_file_name>
    *-- Write configuration
        ir_dyn_config->add_record( ls_dyn_record ).
    But now the new filename is not reflected in the file adapter (receiver). In the integration monitor (SXMB_MONI) i still find the old filename.
    Whats wrong?
    Elko

    The ABAP mapping is more complex, setting filename in Dyn. Conf. is just one step in mapping.
    If I check the Workflow protocol of the Integration Process, I find the following in the Trace of the ABAP-Mapping:
    The filename has been set to 3233340.SWNF00HW.P10I. The Suffix P10I has been added in the ABAP mapping.
    When I check the subsequent message in SXMB_MONI I find:
    The added suffix is missing in the filename !!
    Elko

  • How to Intercept Http requests by Application Server plugin ?

    Hi all,
    My requirement of "Application Server plugin/filter" is to intercept all Httprequests coming to an
    Application Server instance (and not webserver), get the related information from the request, do whatever
    i want to do and then forward the request based on the info available in the request header to any webapplication or EAR deployed in the application server.
    I do not want to implement as a Servlet filter in a webapp. which is intrusive to the webapp.
    as we are aware, Servlet Filters can be attached to resources in a Web application and are configured in the web.xml file.
    I have tried out my requirements in Tomcat as follows, it works:
    In Tomcat, Valves are attached to a Tomcat container and are configured using a <Valve> element in the server.xml file.
    We have modified RequestDumperValve Filter ( source available) class extending Valve to intercept Http requests.
    I perform whatever i want to do in this custom Filter and then able to forward to the next valve in the valve chain of Tomcat container. I have Configured this valve in server.xml and it works fine.
    My queries are:
    1. Can i do it the same thing in SunONe application server or other IBM Websphere application server ?
    2. Do the commercial appservers expose their APIs ( e.g. like Valve in Tomcat ) such that i can implement an application server plugin ?
    i.e. Are there any such Filter classes available which will intercept the Http request processing pipleine
    in application server ( precisely, its web container )
    If so, can you pls provide pointers for SunONE application server and IBM Webpshere application server
    3. Is this against J2ee specs ?
    Appreciate if you can provide me any clues, tips, solutions, pointers regarding this problem.
    thanks and regards
    rajesh

    Thanks for the info, vbk.
    Actually we are looking filers not at the servlet level in a web application.
    We are looking ways for the filter to work at web container level across different web applications... That is whatever comes to the application server, should hit at this filter ,then we perform some processing, analysis and then continue for the correspnding web application
    thanks
    rajesh

  • Problems issuing continuous requests to a server through URLConnection

    Hi ,
    I have a URLConnection object 'uc' obtained from a URL object tied to a server URL.
    i m issuing HTTP requests continously to this server by calling ' uc = u.openConnection()' everytime
    Hence this will return me a new URL Connection object everytime.
    After some 300-400 requests, the program ends abruptly , this may be due to shortage of resources to be allocated to the I/O streams of the URL connection.
    My question is -is there some way to issue multiple requests from the same URL Connection object ? or is there some other method of issuing multiple requests which does not consume a lot of resources ?
    Note: The server accepts only GET method, so i cant write the contents to the output stream of the connection to translate it to a new request every time .
    Thanx

    My question is -is there some way to issue multiple
    requests from the same URL Connection object ? or is
    there some other method of issuing multiple requests
    which does not consume a lot of resources ?
    A HttpURLConnection instance can only be used to issue one http request. What can be re-used is the underlying TCP connection, with the keep-alive header (HTTP 1.1 persistent connections). But that should be handled transparently and by default by the servlet engine.
    The later is able to manipulate the stream to increase performance, if you do not close the stream, i.e you don't call conn.disconnect() or by specify the "Connection: close" request property
    ( conn.setRequestProperty("Connection", "close") )
    So, you shouldn't actually close the steam, just flush it (if you close it, the physical socket connection will be terminated).
    All the http persistent connection/keep-alive issues were apparently fixed in J2SE 1.4.1 ....(are you using 1.4 ?)
    To optimize further, you could take a look at :
    http://jakarta.apache.org/commons/httpclient/

  • IDOC conevrsion through ABAP mapping

    Hi,
    I am trying to map to an IDOC MATMAS05 with an extension ZMATMAS05, using ABAP mapping. The source and target structures are external definition formats(xsd) of the IDOC.(I did this because I am using a BPM and used the xsds as abstract interfaces)
    When I run the Map I get an error "Extension ZMATMAS05 Unknown". I have hardcoded the EDI_DC40 values in the map. So I have set CIMTYP to ZMATMAS05.
    I have loaded the metadata using idx2. Still I am getting this error. Would need help on this.
    reagards,
    Saswata

    Hi,
    Have a look into this SAP note- 751839
    Is all the segments of idoc is released ?
    Delete the IDX2 entry and reload it, And reimport into Repository
    Regards,
    moorthy

  • Air application throws security alert every time 'HTTPS' request made to server.

    Have a look at the following screenshot.
    On click of next button, application internally sends an https request. Appliction throws Security Alert dialog. The text can also be seen clearly.
    Strange thing about this alert dialog is that, it appears every time when application send a request in given session.
    If I run the same thing in flex (i.e. in browser), it asks for SSL handshake and that is also only once. So why it is happening here in case of Air.
    Regards,
    Prithvee Zankat.

    Back up all data. From the Safari menu bar, select
    Safari ▹ Reset Safari...
    Check these boxes:
    Clear history
    Remove all website data
    Uncheck all other boxes. Press return. Test.
    If Safari crashes immediately on launch and you can't do as above, hold down the shift key and launch it by clicking its icon in the Dock, then try. Failing that, ask for guidance.

  • HTTP request handling at server

    I am in the process of developing a backend component that analyses the http requests. I have a few doubts:
    - If http POST method can have multiple entity-bodies, what is the value of top level Content-Length header ?
    - Is Content-Length header allowed with GET request ?

    These questions are not really in the scope of this forum. This isn't a "how does HTTP work" forum.
    That being said [_here's the spec,_|ftp://ftp.isi.edu/in-notes/rfc2616.txt] enjoy.

  • How can I send request to the server through XML using JSP

    How can I send XML request to the server using JSP and servlets

    Ajax may be the one way.

  • Http-RFC Lookup-Integration Server -  Synchronous

    Hello Experts,
    I am creating a scenario in which data comes from http and RFC call is made in the R/3 system and then repsonse plus some  values from source side are sent back to http.
    For this scenario i had thought of RFC lookup...but i am not very clear with configuration....
    Here i have created one Sender as Business Service and other reciever as Intergration server.
    Can you provide inputs on this.
    Thanks,
    Vishal

    Hi Vishal,
                       For HTTP to RFC Synch Scenario, check out the following link...
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit  -- HTTP to RFC Starter kit...
    for RFC lookup, if it needs to connect to an SAP System, u need to configure a receiver RFC Adapter in a separate communication channel through which you will connect to the SAP System. You will access the SAP System using the communication channel through an API..you need to create an UDF and import the following api...
    java.io.*
    com.sap.aii.mapping.lookup.*
    and for further info, kindly check out the following links..
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439 -- Mapping Lookups function calls API by Michal Krawczyk,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14 -- Easy RFC Lookup From XSLT Mappings Using a Java Helper Class by Thorsten Nordholm Søbirk
    Thanks,
    N.Jayanth Kumar

  • How do I send HTTP request to a server via a proxy server in JDK 1.4?

    JDK 1.5 's URL class provides an overloaded version of openConnection() which accepts an object of type Proxy using which we can establish connection with a remote server via a proxy server, but JDK 1.4 doesn't provide any such overloaded version. How do I do that in JDK 1.4? Even if I had a class that can create HTTP packets for me, then I could have established Socket connection with the proxy server and sent the HTTP packet to it. Is there a way to do that also?

    There are some system properties, which can be set with System.setProperty [http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html]

  • Can we run a java class in a external server through abap program?

    Dear Experts,
    Can we run a java class in an external server ( other than application server and client system )?
    I have tried running it in the client system through a program and it works.
    But i have the requirement of running it in another system. Can it be done?

    Hi,
    If this is the case I think you can call this web service from SAP and triger the execution of the application on the "external server".
    SAP is behaving as a client in this case.
    Another alternative:
    "have tried running it in the client system through a program and it works." please elaborate.
    Regards.

  • File.upload on Air SDK for iOS devices failed to send http request to server.

    I am trying to use ActionScript's File.upload to upload a file on Air SDK for iOS8 environment, but the File.upload does not work properly. No handler about the file upload is executed after File.upload is invoked, and no exception is caught. When I check the network traffic of the server side, I found that no http request even hit the server after File.upload is executed. The code snippet here is very simple.
      private var file:File;
      private var dir:File;
      //This method is executed to create a file and upload it when the Upload Button is pressed.
      protected function OnUploadButtonPressed(event:MouseEvent):void{
      var str:String = 'This is test';
      var imageBytes:ByteArray = new ByteArray();
      for ( var i:int = 0; i < str.length; i++ ) {
      imageBytes.writeByte( str.charCodeAt(i) );
      try{
      dir = File.applicationStorageDirectory
      var now:Date = new Date();
      var filename:String = "test" + now.seconds + now.milliseconds + ".txt";
      file = dir.resolvePath( filename );
      var stream:FileStream = new FileStream();
      stream.open( file, FileMode.WRITE );
      stream.writeBytes( imageBytes );
      stream.close();
      file.addEventListener( Event.COMPLETE, uploadComplete );
      file.addEventListener( IOErrorEvent.IO_ERROR, ioError );
      file.addEventListener( SecurityErrorEvent.SECURITY_ERROR, securityError );
      file.addEventListener(ErrorEvent.ERROR, someError);
      file.addEventListener(ProgressEvent.PROGRESS, onProgress);
      file.upload( new URLRequest("http://10.60.99.31/MyPath/fileUploadTest.do"));//This line does not work. No handler is executed. No http request hit the server side.
      } catch( e:Error ) {
      trace( e );
      //Complete Handler
      private function uploadComplete( event:Event ):void
      trace( "Upload successful." );
      //IOError handler
      private function ioError( error:IOErrorEvent ):void
      trace( "Upload failed: " + error.text );
      //SecurityError handler
      private function securityError(error:SecurityErrorEvent):void{
      trace( "Security error:" + error.text );
      //Other handler
      private function someError(error:ErrorEvent):void{
      trace("some error" + error.text);
      //Progress handler
      private function onProgress(event:ProgressEvent):void{
      trace("progressHandler");
    When executed on Air Simulator, it works fine as expected, and the file is successfully uploaded to the server. But When executed on iOS devices(in my case, iPad), as I explain early, no handler about the file upload is executed, and no the http request even hit the server. So I think the problem may be in the client side. It seems that the Air SDK for iOS just failed to send the http request for some reason.
    To make my problem more clear, I list my environment below:
    Development Environment:  Windows7 (64bit)  / Mac os 10.9.4 (Tested on  OS platforms.)
    IDE: Flash Builder 4.7
    Air SDK:  3.8 / 16.0.0 (After I updated to the lastest Air SDK 16.0.0 , the problem still exists.)
    Application Server:  Tomcat7 + Spring
    Target OS: iOS 8
    I have been struggling for this for days. So I really appreciate it if anyone has any idea about this.
    Thanks in advance.

    Hi bluewindice ,
    As you have quoted ( ActionScript's File.upload does not work on Air SDK for iOS devices ) , this issue has been replicated at our end, and our team will be working on it.
    Thanks,
    Tushar

  • Server keeps refusing HTTP request while uploading file

    Hello, I have written an applet that uses sockets to communicate with HTTP server. I use following string to send a HTTP request to a server:
    req = "POST /!pages/upload.php HTTP/1.1\r\n";
        req += "Host: www.austyn.sk\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sk; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6\r\n";
        req += "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n";
        req += "Accept-Language: sk,cs;q=0.8,en-us;q=0.5,en;q=0.3\r\n";
        req += "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n";
        req += "Keep-Alive: 300\r\n";
        req += "Connection: keep-alive\r\n";
        req += "Referer: http://www.upnito.sk/\r\n";
        req += "Content-Length: 500\r\n";
        req += "Content-Type: multipart/form-data;boundary=007\r\n";
        req += "--007\r\n";
        req += "Content-Disposition: form-data; name=\"subor\"; filename=\"msvcp80.txt\"\r\n";
        req += "Content-Type: text/plain\r\n\n";
        req += "abcdef\r\n";
        req += "--007--\r\n\r\n";I get response like this:
    HTTP/1.1 400 Bad Request
    Date: Sat, 15 Sep 2007 14:24:42 GMT
    Server: Apache/2.0.55 (Ubuntu) PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a
    Content-Length: 297
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>400 Bad Request</title>
    </head><body>
    <h1>Bad Request</h1>
    <p>Your browser sent a request that this server could not understand.<br />
    Request header field is missing ':' separator.<br />
    <pre>
    --007</pre>
    </p>
    </body></html>I think that my request should be alright. I used the Live HTTP headers extension on Firefox and even a packet sniffer to get the entire communication between server and client during HTTP upload and I wrote the request string according to that. It seems, that the server doesn't like the first boundary --007, which marks the beginning of the form element..
    So what's wrong with that request string?
    Edited by: whitewash on Sep 15, 2007 7:28 AM

    on some other links people are saying to add this line for solving this problem :
    "java -DHTTPClient.log.file=httpclient.log -DHTTPClient.forceHTTP_1.0=true -DHTTPClient.disableKeepAlives=true -DHTTPClient.dontTimeoutRespBody=true"
    does nyone know what to do with this line....where to add this??....
    FYI i am using weblogic server

Maybe you are looking for

  • What are we supposed to do when the magic mouse stops working?

    Everything was fine last night, until my mouse again lost it's connection. The light was blinking fine, but no connection, I changed batteries (even tho the ones inside showed nearly a full charge), still wouldn't work. I realized, ok, now what? Shou

  • How can I sort pictures by date and than by time stamp ?

    The approx. 2.000 pictures was taken by two cameras. Both cameras intern date and time where adjusted before the for session. It seems that Aperture 3.3.1 can´t manage it, can it? In the browser there is only one common field for date and time. I sho

  • Starts and then turns off!

    Ok so my Macbook will start up I see the apple and then it turns off before it loads, I've tried resetting the PRAM the SMC and the ctrlapplepowerbutton and noen of i works, I hold down Option and I can choose to boot from CD or windows but if i clic

  • OS migration documentation required

    Hello Experts. Can anybody share OS migration document with me? I need to migrate HP-UX to AIX6.0. So, please it will be very helpful if anybody share it. Thanks, Sudip.

  • Elements 12 installed but won't load

    Bought Elements 12, installed and ran for a few days, then refused to load on double click. Uninstalled, reloaded without success.