Executing URL and receiving XML response from ABAP

Hi,
I have a scenario where I need to execute a URL (along with some parameters) and this URL returns an XML onto browser.
Now I want to achieve similar functionality through ABAP code.
Ex: this is the sample URL to be executed -->
http://localhost:8080/artemis7_802/triton/mycompany.remoteFunctions.RequirementsList.a7x?requestid=3023&requestname=I6PRAO1&skill=SAP&skill=JAVA
How this can be done?
Please help.
Thanks and regards,
Amey

Refer this thread -->
http://wiki.sdn.sap.com/wiki/display/BSP/Handleserver-sideformsubmittingin+BSP

Similar Messages

  • How send and receive XML file from PI 7.0 via SSL

    Hello experts,
    Can you point to some documentation , examples , links where I can get some information on how to send and receive XML files using PI 7.0 via SSL ?
    Thanks in advance.

    Hi,
      refer to the following links.
    Enabling SSL
    http://help.sap.com/saphelp_nwpi71/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
    Adapter specific security
    http://help.sap.com/saphelp_nwpi71/helpdata/en/f5/799add57aeee4f889265094a04695c/frameset.htm
    regards,
         MIlan Thaker.

  • How to read XML response from a URL in java?

    Hi .
    I need to write a simple function that takes a URL and processes the response which is XML or JSON.
    I tried this code:
    URL l_url = new URL(serviceURL);
    URLConnection urlConnection = l_url.openConnection();
    InputStream inputStream = l_url.openStream();
    DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
    Document inputXML = documentBuilder.parse(inputStream);
    but in line number 3 it throws an error:
    "l_url.openStream() = >Exception occurred in target VM: Server returned HTTP response code: 401 for URL:"
    Please let me know how do I achieve it.
    Thanks and regards,
    Sonal

    Sonal wrote:
    "l_url.openStream() = >Exception occurred in target VM: Server returned HTTP response code: 401 for URL:"
    Please let me know how do I achieve it.you achieve it by fixing your authentication problem (401 is the response code indicating your request was not authorized, which you can easily find out with a simple google search).

  • App testing phase: Push notifications are not getting delivered to certain devices (iphone 4S/ios7.0.4 and ios7.0.3 - Push never worked for these two devices for this app). Received OK responses from Apple PUSH services, but notifications not delivered

    We are testing an app at work and Push notifications are not getting delivered to certain devices (iphone 4S/ios7.0.4 and ios7.0.3 - Push never worked for these two devices for this app). Received OK responses from Apple PUSH services, but notifications not delivered to these tow devices.
    PUSH notification were delivered to some of the other iOS devices: (iPhone5 / iOS 6.1.4 and iPhone5 / iOS 7.0.3)

    Sounds like you have a battry issue but don't want to believe it.
    If a car was running fine on one tank of gas, then you filled it up with another tank of gas and it began to run funny, one might suspect that tank of gas. But let's just say coincidence blew a valve-- would you think the new tank of gas was the culprit?
    BUT WAIT!! It just might have been! The gas could have been of higher octane and put more more strain on the valves; you know, like going from 87 octane (OS6) to 93 octane (OS7) and showing you the engine was on the edge of compromise.
    Sometimes you have to go with common sense. If everything else is ruled out, it must be the battery. And if it runs fine one moment in OS6 but immediately ***** in OS7, I'd believe my battery was suspect-- though comfy-- in OS6 but the OS7 showed its true power.
    Moreover, if you had the answer-- or didn't want to believe someone's more competent advice-- why did you even call?  You've already shown that you don't know much when you asked if you could go backwards after setting up the new OS as a new phone.
    Additonally, if you're such the know-it-all, but yourself the $29 battery and put it in yourself. It's a piece of cake.
    <Edited By Host>

  • Creating an xml file from abap code

    Hello All,
    Please let me know which FM do I need to execute in order to create an XML file from my ABAP code ?
    Thanks in advance,
    Paul.

    This has been discussed before
    XML files from ABAP programs

  • Create XML file from ABAP with SOAP Details

    Hi,
    I am new to XML and I am not familiar with JAVA or Web Service. I have searched in SDN and googled for a sample program for creating XML document from ABAP with SOAP details. Unfortunately I couldn't find anything.
    I have a requirement for creating an XML file from ABAP with SOAP details. I have the data in the internal table. There is a Schema which the client provided and the file generated from SAP should be validating against that Schema. Schema contains SOAP details like Envelope, Header & Body.
    My question is can I generate the XML file using CALL TRANSFORMATION in SAP with the SOAP details?
    I have tried to create Transformation (Transaction XSLT_TOOL) in SAP with below code. Also in CALL transformation I am not able to change the encoding to UTF-8. It's always show UTF-16.
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
          <SOAP:Header>
            <CUNS:HeaderInfo>
              <CUNS:InterfaceTypeId>10006</InterfaceTypeId>
              <CUNS:BusinessPartnerID>11223344</BusinessPartnerID>
              <CUNS:SchemaVersion>1.0</SchemaVersion>
              <CUNS:DateTime>sy-datum</DateTime>
            </CUNS:HeaderInfo>
          </SOAP:Header>
          <SOAP:Body>
            <xsl:copy-of select="*"/>
          </SOAP:Body>
        </SOAP:Envelope>
      </xsl:template>
    </xsl:transform>
    In ABAP program, I have written below code for calling above Transformation.
      call transformation ('Z_ID')
           source tab = im_t_output[]
           result xml xml_out.
      call function 'SCMS_STRING_TO_FTEXT'
        exporting
          text      = xml_out
        tables
          ftext_tab = ex_t_xml_data.
    Please help me how to generate XML file with SOAP details from ABAP. If anybody have a sample program, please share with me.
    Is there any easy way to create the XML file in CALL Transformation. Please help.
    Thanks

    Try ABAP forum, as it seems not to be PI related.

  • My IP address is block and getting no response from AT&T

    I am a small business owner, website developer and hosting provider.  I have a VPS server with a handful of websites on it.  The IP address of this server is being blocked by AT&T. My clients are unable to send mail to anyone with a sbcglobal.net email address. After careful investigation by myself and my tech support team I have found nothing suspicious.  I have checked all logs, all user accounts and removed all forwarding email accounts.   I have visited the designated http://att.net/blocks page and have submitted the unblock request on 3 separate occasions over the last month and have received no response or resolution from AT&T. I have also emailed [email protected] and received no response. I called the main support line at AT&T and was transfered to the website department who then transfered me to the email department who told me I had the wrong department.   How can I get this resolved???   Any help would be greatly appreciated.

    Possibly you're using some old software that is trying to check for updates on a site that no longer exists and isn't handling it correctly? I dunno, that's just a guess. To make sure the traffic isn't coming from your machine, you could install [Little Snitch|http://www.obdev.at/products/littlesnitch> to monitor outgoing connections.
    As for your wireless network, if it's secured, it's unlikely to be neighbors. (The WEP/WPA2 thing does not sound right to me... it's got to be either one or the other. Dunno what to say about that.) To verify, try opening AirPort Utility, open your base station, click Advanced, then Statistics, then the Logs and Statistics button. In the new window, click the DHCP Clients tab... this will show you what clients are currently connected. Keep an eye on it from time to time to make sure nobody's on that shouldn't be. (Note that things like iPod Touches or iPhones can show up here if you've configured them to connect to your network, and may show up even if they're turned off.)

  • I've applied for my free copy of mountain lion but have received no response from apple. What do I do?

    I haver received no response from apple. I applied 2 days ago.

    I've been waiting since yesterday morning... Haven't heard a single thing. I called AppleCare and was told it would be up to 24 horus, which has well since passed.

  • Xml response from rwservlet - timinginfo format

    Hello everyone,
    We've been running reports from database using the SRW package. After we upgraded to a newer version of Application Server (we may have upgraded more that just that) the reports stopped being run.
    I discovered that the problem is in the date/time format in the XML response from the report server. The SRW package is trying to convert the timinginfo string values to date using the following hardcoded date format:
    DATE_FORMAT CONSTANT VarChar2(22) := 'MM/DD/YY HH:MI AM'; -- Date-Format used to convert the timing-info
    However, the date format in the response coming back from the server is different - see below.
    <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <job id="4314" queueType="current">
    <name>SysEmailRequest</name>
    <type>report</type>
    <status code="1">Waiting in the queue</status>
    <owner>RWUser</owner>
    <server>windev2006dev2006</server>
    <destination>
    <desType>EmailSysoeDes</desType>
    <desName>PMRFI</desName>
    <desFormat>pdf</desFormat>
    </destination>
    <timingInfo>
    <queued>Jul 28, 2006 9:51:48 AM</queued>
    <started>Jul 28, 2006 9:51:48 AM</started>
    <finished>Jul 28, 2006 9:51:48 AM</finished>
    </timingInfo>
    </job>
    </serverQueues>
    Does anyone know where to set the date format for timinginfo?
    I don't want to just modify the format in the SRW package without knowing why it changed.
    Thanks in advance,
    Rasto Sadecky

    Hello,
    The reports server uses the "machine's locale" to format the date.
    You can use the jvmoptions parameter to specify another user.language :
    rwserver server=repserver jvmoptions="-Duser.language=xx"
    Regards

  • How can I send and receive a message from  a queue using standalone program

    Hi,
    I want to write a standalone Java program which has to post a message to a queue and receive a message from a queue thats specified as a replyto queue.I want to have my application to be completely standalone without the need of a Application server.What all the Jars do I need to include in the application.My aim is to have the application standalone and portable so that the application runs on any machine that has a JRE.
    Thanks in advance,
    Prathima

    Hi,
    You can get quite simple standalone MQ Java programs from this site http://www.capitalware.biz/mq_code_java.html.
    Also regarding the jars required for your application depends on the API being used. If you use MQI API few jars are required and if you decide to use JMS API you'll require few other jars. But you got to either install Websphere MQ Java Client, which will copy the jars to the respective location, or you can choose to copy the jars from some other machine manually.
    Eventually, all the jars related to MQI and JMS API will reside under /usr/mqm/java/lib/ or /var/mqm/java/lib/ UNIX Environment. And in case of WINTEL, you should find the jars under C:\Program Files\IBM\WebSphere MQ\Java\lib.
    Trust it clarifies...
    Naren

  • Is there a way to communicate with a GPIB device and receive the response?

    Does anyone know if there's a function that I can use to issue a command to an instrument such as a query on its status and receive its response. I've tried GPIB Write, but it just writes the command and doesn't receive the automatic response. If I use a GPIB Read right after the GPIB Write, it doesn't work! I think I'm looking for a function that sends the command to the GPIB device and then waits for the response and is capable of outputing it. Thanks for any help!
    - Jon

    I know what commands to send, I just don't know what function or vi or whatever in LabView to use in order to receive the response right after I send the command. For instance, I want to know what count the counter is currently on, and so I send the command "NN" to the counter, which tells me what count it's currently counting on. I can send the command, I just don't know how to retrieve the information of what count it's on because I don't know how to send a command and receive the response that the counter is prompted to send immediately after. Thanks for the help though!
    - Jon

  • HT201342 Contacts loss from iCloud and receive unknown contacts from another account

    Contacts loss from iCloud and receive unknown contacts from another account. How to retrieve contacts

    I automatically backup by syncing
    Syncing is not a backup. You are supposed to maintain your own backups that you can restore from in the event of a problem.
    See: http://support.apple.com/kb/HT4910
    There are no server issues reported at:
    http://www.apple.com/support/systemstatus/

  • Receive XML file from CIDX adapter and Post to SAP as IDoc using XI

    I have scenario where we will receive the xml file from CIDX adapter. I need to take the xml from CIDX, do the Database Lookup and post it to SAP as IDoc.
    Any technical documentaion or step-by-step process documents can be very helpfull to me, since I am new to XI
    Thanks
    SP

    Lookup in XI is used to call the target data storage system and get data from there to your mapping programme.
    In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
    Overview of Lookup
    - Lookups are used to identify/request the data from mapping program.
    - It interrupt the process and looking for data which was stored in target system.
    - It get that data and comeback to process and continue with that data.
    Types of Lookups in XI
    - JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
    - RFC Lookup: RFC lookup is used for accessing the SAP Data.
    - SOAP Lookup: SOAP lookup is used for accessing data from Webservice
    Steps to perform Lookup in Mapping
    Import package com.sap.aii.mapping.lookup.*;
    Create connection to the target Database system.
    // Determine communication channel created in ID
    Channel channel = null;
    channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
    // Get system accessor for the channel.
    DataBaseAccessor accessor = null;
    accessor = LookupService.getDataBaseAccessor(channel);
    Build the Query String.
    Getting Result
    // Execute Query and get the values.
    DataBaseResult resultSet = null;
    resultSet = accessor.execute(Query);

  • Xml query hungs up with large xml response from utl_http request

    We are having very sensitive problem in Production environment with xmlquery.
    When receive a small or medium size xml, the query shown below works. But when the xml is large or very large its hung and slow down all the database.
    We are with Oracle 11gR2
    We are using clob to parse the response from the http request.
    What could be the problem or the solutions?. Please help. Its urgent...
    SELECT opciones_obj (x.strindice,
    x.nombrecompleto,
    x.nombre,
    x.strtipodato,
    x.codigoopcion,
    x.floatval,
    x.strtipo,
    x.strval)
    BULK COLLECT INTO t_opciones
    FROM XMLTABLE (
    xmlnamespaces (
    'http://schemas.xmlsoap.org/soap/envelope/' AS "env",
    'http://wsevaluarreglacondicioncomercial/' AS "ns0",
    'http://wsevaluarreglacondicioncomercial/types/' AS "ns1",
    'http://www.oracle.com/webservices/internal/literal' AS "ns2"),
    '/env:Envelope/env:Body/ns0:listarOpcionesAtributoEventoResponseElement/ns0:result/ns1:listaVariables/ns2:item/ns2:item'
    PASSING rsp_xml
    COLUMNS strindice VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strIndice"]/ns2:value',
    nombrecompleto VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="nombreCompleto"]/ns2:value',
    nombre VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="nombre"]/ns2:value',
    strtipodato VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strTipoDato"]/ns2:value',
    codigoopcion NUMBER
    PATH 'ns2:mapEntry[ns2:key="codigoOpcion"]/ns2:value',
    floatval FLOAT
    PATH 'ns2:mapEntry[ns2:key="floatVal"]/ns2:value',
    strtipo VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strTipo"]/ns2:value',
    strval VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strVal"]/ns2:value') x;

    What could be the problem or the solutions?1) Create an XMLType table (could be temporary) using binary XML storage :
    create table tmp_xml of xmltype
    xmltype store as securefile binary xml;2) In your procedure, load the XMLType containing the response (rsp_xml) into the table :
    insert into tmp_xml values (rsp_xml);3) Then, execute the query directly from the table :
    SELECT opciones_obj ( ... )
    BULK COLLECT INTO t_opciones
    FROM tmp_xml t
       , XMLTABLE (
             xmlnamespaces ( ... ),
             '/env:Envelope/env:Body/...'
             PASSING t.object_value
             COLUMNS ...4) At the end of the procedure, delete (or truncate) the table or simply let the table delete itself when the session ends (in case you created it TEMPORARY)

  • Can we do a Secure FTP for an XML file from ABAP when firewall is enabled?

    Hi all,
    I have a requirement to send an XML file to an External FTP Server which is out of our corporate network and our firewall is enabled.
    I have to send an XML file with Purchase Order details. I completed that with the help of this blog https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2657. [original link is broken] [original link is broken] [original link is broken]
    Now I need to FTP the XML file that is generated. How should I be doing this? Can some of help me with this?
    I need to do a Secure FTP to the external non SAP server which is out of our corporate network and our firewall is enabled. Can some one tell me if SFTP is possible in ABAP.
    This is not a web service. I am working on dropping an XML file in an external FTP serveru2026 I have searched the forums but still in a confusion if weather Secure FTP is possible in ABAP  or not when our company firewall is enabledu2026
    If some one encountered this situation earlier please help,,,..any help will be highly appreciated.
    Regards,
    Jessica Sam

    Thanks a lot for your valuable suggestions Richu2026
    I agree with you Rich that web services would be a better option. But I need to send this file to an external third party and they dont have web services.
    They are telling us that either we can send them an XML file or a CSV file in the format that they want. We decided to go with XML file format.
    I am done with formatting the Purchase Order details in the format that they want. Now the challenge is that I need to send this FTP file to them and it should be a Secure FTP when our fire wall is enabled,
    When you say
    1) Run an ABAP program to generate the XML file and put it on the local PC
    2) Log into the FTP site via some FTP client, could simply be windows as well.
    3) Manually cut/paste the file from the PC to the FTP site.
    For Step 1 running ABAP Program can I schedule a batch job?
    For Step 2 and Step 3 can I automate it in any other way..if not in ABAP?
    Can I advice my company to follow any alternate method in which they can automate this step 2 and step 3u2026if not in ABAP can it be possible in any other way as the third party does not have web services I now have no other alternative.
    Please Helpu2026
    Regards,
    Jessica Sam

Maybe you are looking for

  • Using join and batch reading in the same query

    Hi, I wonder if it is possible to use "Joining" and "batch reading" in the same query. For example I Have A -> 1-1 B A -> 1-1 B B -> 1-M C This is the case where I have two separate 1-1 relationships to the same class B from A. Toplink 10.0.3 can man

  • Trimming videos in iPhoto

    When I try to trim videos in iPhoto, it tells me I do not have enough memory.  I bought the memory on the iCloud, but I am getting the same message.  How do I get iPhoto to recognize the memory?  I need to make movies with it and iMovie for work.  I

  • Upgrading to new version and references for repository export

    Hello, We have made a reference for repository export / import in MDM7.1 sp2. Now we want to upgrade to the newest version of MDM 7.1 . Is this reference automatically upgraded to the new version too or do have to upgrade and then start with a new re

  • How do I define memtoleave parameter with -g switch?

    hi out there On our Windows 2003 servers w. sp1 and running MS SQL Server 2000 w. sp4 we see from time to time that we get this error "cannot allocate 64k continous memory" or "SQL Server could not spawn process_loginread thread" which could be cause

  • Imc random reboots

    My imac has taken to rebooting itself randomly if I leave it unattended for a while. I tend to have it on 24/7 for use with apple tv and/or itunes, (via a remote disk) and after a randomish period of time it will reboot to the login screen. I've had