HTTP GET for sender adapter possible ?

I have to get XML-messages from third party webservice. I should use HTTP GET to get the data but is this possible in XI ? I mean like RFC->XI->HTTP(GET) and I would process the response from HTTP GET call.

Hi Jari,
For getting response from web service, you should use SOAP adapter.
Anyways,if it for web application, you can use HTTP get in XI for synchronous communication.
Have a look at these blogs for details -
1. /people/amol.joshi2/blog/2006/06/28/must-fire-a-http-get-from-xi---try-this
2. /people/william.li/blog/2007/09/07/posting-and-testing-using-xipi-http-adapter
Regards,
Sunil Chandra

Similar Messages

  • HANDLING HTTP "GET"  IN SENDER ADAPTER

    Hi,
    I have a Scenario where I have to use HTTP GET Adapter  to get data from a website daily to PI and Post the data from PI to SAP ECC.On the receiver end Idoc is being used.I need help on what to use (From sdn I came to know that Java Proxy or Adapter Module can be used ) and how to configure the sender adapter in this scenario.In case of Adpater module the steps needed to configure the scenario would be helpful.In case of Java Proxy sample code that would suit the scenario would be appreciated.

    Only 7.3 version (Latest) supports HTTP GET method. All previous versions support only POST.
    In your case java proxy is better choice.
    Refer these standard links.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/Java/JavaProxyChangesinPI7.1fromPI7.0
    http://help.sap.com/saphelp_nwesrce/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
    Basically you have to create java proxy for the outbound (sender) interface and use those proxy(stub) objects to code in java. Refer sender java proxy in the above link.

  • HTTPS-based SOAP Sender Adapter

    Dear all,
    We're using NetWeaver 2004s SP12. I need to enable an HTTPS based SOAP sender adapter. According to online-help document at http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm, there should be a field "HTTP security level" to specify whether HTTPS is used. But I cannot find it in the communication channel configuration UI. Does anybody have any idea?
    Thanks + Best Regards
    Jerome

    Hi 
    Just a try with this link am not sure ...
    <i>If you want to specify security checks in the message header for the plain HTTP inbound channel, create a communication channel <b>for the party and service</b> in the Integration Directory.</i>
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm

  • Alets for sender adapter

    Is it possible to handle the sender adapter errors/exceptions thru alerts?
    Regards,
    Naresh

    Hello Naresh,
    Alerts can be defined for different categories like AE, IE etc.
    Go thru the following links as each gives u some specific information and use which ever is necessary:
    Configuring "Alert Configuration" in XI 3.0  -- will provide how to configure the elements
    The specified item was not found. -- will provide Step by Step process. In this blog , u can select the option AE, IE according to ur requirement in the category mentioned.
    Cheers!
    Karicharla

  • Code sample HTTP get for J2EE server

    Hi,
    could somebody pls. provide a code sample to access a SAP WAS J2EE server via HTTP GET?
    I needed this to get a SAP Logon ticket issued to my web dynpro application. Basically I am imitating a logon to the server in order to get the logon ticket in return. This is the same as logging on using IE to http://server.domain:5xxxx. Should my user credentials be valid, the HTTP get would return a SAP Logon ticket (among other data).
    Thank you,
    Rene

    how would you direct the GET requests to one servlet and the POST requests to the other?
    Wouldn't they need to pass thru' yet another servlet to decide which is which (GET or POST), and redirect them accordingly?
    I would have both GET and POST handled by the same single-point-of-entry servlet. For example, not all data is sent to the server via a POST - you can send form data via a GET, using name/value pairs in the url.

  • HTTPS configuration for SOAP adapter

    Hi,
    We have a requirement where we need to send the request to the target URL with https protocol.
    We have raised a request to configure the XI server for HTTPS.
    HTTPS has been configured on both ABAP stack and J2EE stack.
    But we could not find the HTTPS option in the drop down list of transport protocol in receiver Soap adapter.
    For this do we need to do any setting changes on the XI server after the configuration?
    Thanks,
    Jyothsna .

    Hi,
    You need to setup SSL layer for HTTPS endpoint.
    Possible HTTP security levels are (in ascending order):
    HTTP without SSL
    HTTP with SSL (= HTTPS), but without client authentication
    HTTP with SSL (= HTTPS) and with client authentication
    Please go through below link for referance (above information is from below link)
    Step by step guide for SSL security
    step by step guide to implement SSL
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ff/7932e4e9c51c4fa596c69e21151c7d/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/13/4a3ad42ae78e4ca256861e078b4160/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/3a/7cddde33ff05cae10000000a128c20/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0a/0a2e0fef6211d3a6510000e835363f/content.htm
    General guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a09f3d8e-d478-2910-9eb8-caa6516dd7d9
    Message level security
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d024ca8e-e76e-2910-c183-8ea4ba681c51
    Regarding message level you can encrypt the message using certificates.
    For both of this basis team has to deploy the releavant certificates in XI ABAP Stack or Java stack.
    Generally if the scenarios are intra company we dont use any transport level or message level security since the network is already secured.
    Check the following links.. you will get the information all about the securities...
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/c2953fc405330ee10000000a114084/content.htm
    Also read thru this link for message level security - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d024ca8e-e76e-2910-c183-8ea4ba681c51
    Also find soeminformation in these links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/882a40ce93185de10000000a1550b0/frameset.htm
    /people/aparna.chaganti2/blog/2007/01/23/how-xml-encryption-can-be-done-using-web-services-security-in-sap-netweaver-xi
    Thanks
    Swarup

  • HTTPS Port for SOAP Adapter PI 7.1 (XI)

    Hello Colleagues,
    we plan to configure an Sender SOAP Adapter (without SOAP envelope) as HTTPS message receiver with HTTP Security Level "HTTPS with Client Authentication".
    Does anyone know if this works and which port will be used. For my understanding it must be 443.
    If not, it's possible to change the port to 443?
    Regards,
    Jochen

    Hi Prateek,
    many thanks!
    Where can i do the port change?
    Many thanks in advance!
    Regards,
    Jochen

  • How to test HTTP request for Sender SOAP Channel

    Hi all,
    We are testing Soap requests from SOAP UI tool.
    We are able to call HTTPS calls from SOAPUI tool, but unable to call HTTP request.
    we eanbles ssl and able to post https requests.
    please advice .
    Thanks
    RGDASARI

    Hi Stefan, I configured the way you have put it, but I get the error "no receiver could be determined"
    Here are my settings:
    Sender service - HTTP_SEND
    sender o/b interface - PROD_MSG_INT_OB_ASYNC
    receiver service - FILE_RECEIVE
    receiver i/b interface - PROD_MSG_INT_IB_ASYNC
    receiver communication channel - FILE adapter
    JAVA script:
    String Party       = "MFC";
    String Service     = "HTTP_SEND";
    String XINameSpace = "mfc%3Anamespace1";
    String Interface   = "PROD_MSG_INT_OB_ASYNC";
    String Url   = "http://nemo:8000/sap/xi/adapter_plain?";
    XML DATA File:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:PRODUCT xmlns:ns0="mfc:namespace1">
    <ID>E</ID>
    <NAME>thank god</NAME>
    <BRAND>SOME BRAND</BRAND>
    </ns0:PRODUCT>
    Stefan Am I missing anything?
    XML error message:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Identification
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_BE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    It would be great if you have solution for this.
    Regards
    felix

  • Https configuration For sender

    Hi,
    My requirement is to send data to PI through https connection
    Do i need to do any settings to enable this?
    What are the changes do i need to do for this scenario compared to normal http scenario
    What will be the port when i go for https?is it the same http port that ABAP stack uses?
    I am able to see only http port in ABAP stack.

    Hi,
    please have a look here:
    http://help.sap.com/saphelp_nw04/helpdata/en/65/6a563cef658a06e10000000a11405a/frameset.htm
    https standard port is 443.
    For java port:
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/f9d7fed2adc340ab462ae159d19509/frameset.htm
    Regards
    Patrick

  • File Content Conversion for Multi Hierarchical Structure for Sender Adapter

    Hi Gurus,
    My text file is coming as
    Header,filed1,field2(Occurrence=1)
    Content,field3,field4(Occurrence =1-Unbounded)
    Detail,field4,field5(Occurrence = 1-unbounded)
    Trailer,fieldN(Occurrence=1)
    My requirement is to write a file content conversion, so that, in the resultant XML Structure the Detail will come under Content.
    I have defined the  Record Set Structure as
    Header,1,Content,*,Detail,*,Trailer,1
    But after FCC, the Detailed record is coming in the same level as the Content Record. But the business requires that, the Detailed Record should come under Content Record, so that they can correlate.
    Could any one advise?
    Regards,
    SS
    Edited by: Subhendu Sahu on Jun 17, 2011 4:43 PM

    Hi,
    Please use the below parameters -
    ○       NameA.keyFieldValue
    Specify the value of the key field for the structure.
    This entry is mandatory if the key field name is set. Otherwise, the entry is ignored.
    NameA.keyFieldInStructure
    ■       If the key field of the substructure is to be added to the XML document, enter add. This is the default.
    ■       If the key field is to be ignored, enter ignore.
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6713ec3f914ddee10000000a1553f7/frameset.htm
    cheers,
    Sunil

  • System date in file name for Sender Configuration

    Hi all,
    I need to retrieve some files every day from my source directory, using the system date as a mask for the filename. Is it possible to do any kind of dynamic configuration for Sender Adapter? I only need to read the files with the current system date every day.
    Thanks in advance.

    Hi,
    ><i>
    only need to read the files with the current system date every day.</i>
    Sorry failed to see this.
    Not currently possible without workarounds in XI.
    1. Use a Staging folder where the senduing system will put the files. Write a shell script which will move only the current date files to the folder on which XI is polling. Here , you can use wild card characters.
    2. Module option , not sure how it will work. You will be doing an I?O inside the module code and this is not recommended. Also, what will be the trigger for your interface if you are planning to use a module to read the files on the basis of System Date.
    Regards
    Bhavesh

  • API for sending an SMS

    Is there an API for sending an SMS from a Mac to a cellphone, similar to what iChat does

    IIRC there are a few API's that tie in to their HTTP services for sending SMS. An old colleague had used http://sourceforge.net/projects/smstools/

  • Implementation of OSB service to Http GET XML payload

    Hi,
    I am new to OSB.I have a requirement where Ecommerce system will post a XML over HTTP.
    Our OSB service has to receive that XML using Http GET and send it to a SOA composite as a SOAP.
    My doubt are
    1.can we implement the proxy service with service type any XML structure
    2.Will Ecommerce provide any WSDL so that we can configure it in our proxy service.
    Pls help.
    thanks

    Hi,
    947423 wrote:
    1.can we implement the proxy service with service type any XML structureYes, that should be alright...
    2.Will Ecommerce provide any WSDL so that we can configure it in our proxy service.\Probably not, if they are just sending an XML over HTTP that is probably not SOAP, if at least they can provide you an XSD that would be nice... Otherwise you may have to write one...
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • UDF to get the filename for File Sender Adapter

    Hi,
    I had an requirement to get the  the Filename and map to the  target payload.
    I had configured the File Sender Adapter settings in the ID
    This is the following UDF i got from SDN.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    But when iam using this UDF iam getting an error
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_ORDER_CRS_OB_SAP_PROXY_IB_ method Filename$[com.sap.aii.mappingtool.tf3.rt.Context@54e154e1]
    Please help me in correcting the error.
    Thanks
    Srinivas

    Hi Jayson,
    actually, in the interface mapping, it doesn't give exception.
    The DynamicConfiguration is a constant retrieved from the container object, so it will never be returned as null (given that the container object was instantiated).
    Just the retrieved value will be null (since it was not previously set), but no exception occurs.
    In the message mapping, the container object is never instantiated, and that's the reason for the NullPointerException.
    Regards,
    Henrique.

  • Is it possible get special file in file sender adapter?

    Hi every SDNer.
    I want to get special file. for example like PJ<today>_return.dat
    Well, to paraphrase Marx, One folder has too many files. but I want one file in that folder.
    The rule is simple. if today is 20/07/2007 then I get the file as "PJ20070720_return.dat".
    How can i configuration File Sender Adapter?

    Dont have an XI system in front of me, but if I recall correctly, your options are pretty limited. The list of parameters in Advanced Selection for Source File does not include a date Better selection parms with the receiver channels.
    As such you may have to resort to writing a script on the OS that will do the following every minute... (basically run it more frequently than your channel)
    - look in that directory through all the PJ* files containing date = 'today'
    - rename the file to REAL_PJ_..... (for example)
    In your channel, pick the file REAL* and archive accordingly so it's not picked again by your script.
    If you find alternatives via cchannel - publish your results.
    sincerely,
    --NM

Maybe you are looking for