Consume webservice using HTTP adapter

Hi PI Experts,
Can we consume a webservice using a HTTP adapter?
If yes can anyone share some knowledge, how to do so?
Thanks & REgards,
Krishna

Hi Krishna,
I think this can be done using FLEX.(not sure).
Ref:  http://wiki.sdn.sap.com/wiki/display/EmTech/ConsumingABAPWebServicesusing+Flex
Thanks,

Similar Messages

  • Error in consuming webservices using ABAP

    Dear Gurus,
    I am trying to consume webservices using ABAP. We dont have XI installed and no java instance installed.
    I created a customer proxy through SE80 and generated a proxy class by giving a WSDL link and also defined logical port. Traditionally followed the steps. But while testing webservices , I get a ICF error.
    The error is as follows:
    SOAP : 1:023 SRT : Processing error in internet communication framework ("ICF error when recieving the response  ICM_HTTP_CONNECTION_FAILED)
    Please let me know the cause of this error and solution to be provided.
    I also tried to call the method from an abap program, But I get CX_AI_SYSTEM_FAULT exception.
    Awaiting your replies.
    Thanks in advance for your support and valuable time.
    Thanks
    Gurushanthi

    Hi Gurushanthi,
    It could one of several problems, examples:
    - A firewall setting
    - http communication out disabled by Basis team or
    - The logical port wasn't configured correctly.
    Try the suggestions in this thread to narrow down the reason (particularly the telnet test from the server):
    [Re: Error testing external web service ICM_HTTP_CONNECTION_FAILED;
    Regards, Trevor

  • 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.

  • 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

  • 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

  • Problem in calling webservice using https from livecycle designer

    I  want to call a webservice written in .net(c#) using https  from livecycle  designer.I can call webservice using http ,but when i try with https it is  failing.If there any special configuration have to do in server for this ?I have  already put crossdomain in server.
    Waiting  for your reply
    thank's

    How did you call from LC? Please help me out either one is fine to me http or https
    Srujan

  • 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

  • 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

  • Is it possible to call a SOAP webservice using HTTP POST adapter

    Hello Experts,
    Is it possible to call a webservice using a HTTP adapter with POST method? If yes, how?
    Regards,
    Diptee

    No this will not work since you have additional SOAP information (i.e. SOAP envelope, security information) in addition to the payload. If you need a simple HTTP-Post for example, then you don't need SOAP, you can use the more simple http protocol without the additional features of SOAP.
    Also refer to this link for differences: Difference b/w SOAP and HTTP

  • Generating Webservice using HTTPS in  XI.

    Hi Experts,
         I have generated webservice in XI using http , and i have tested using infopath soap client, its working fine.  I have generated webservice in XI using htpps using the same scenario,  when i am testing using infopath as soap client and tested, its giving error, request is not hitting the XI system at all. do i need to configure any certificate in infopath or in XI server, please can anyone advice. i have configured HPPTS without client authentication in SOAP adapter.
    Thanks,
    Dhanush

    Hi Experts,
      I am not able to get exact answer after reading the sap.help.com, sap notes.
    My scenario is RFC < ---> SOAP ( webservice) ,  i have generated webservice with the HTTPS and secured port of XI,  When i copy and past in IE browser, its showing status is OK,  but request is not hitting the XI system. what are things to be taken care at soap client and XI server side, do i need to install any certificats at client side or server side. please advice me.
    Thanks,
    Siva

  • Consuming webservices using CF8

    I recently upgraded to CF8 and I’m not able to consume webservices from my dev edition on my personal PC.
    I have tried making my own simple test webservice, but I’m not able to consume them using CF. (I’m able to consume the ws using .Net or Java, but not from CF itself).
    I always get the following error:
    org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: URI=null Line=40: The string "--" is not permitted within comments.
    This is the code I’m using:
    <cfscript>
    wsargs = structnew();
    wsargs.proxyServer = "proxy";
    wsargs.proxyPort = "8080";
    ws = createObject("webservice","http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl",wsargs);
    </cfscript>
    I know that the WSDL is ok since the WS works in .Net and Java. I also know that I can retrieve the wsdl using
    <cfhttp method="get" url="http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl" result="myRes" proxyserver="proxy" proxyport="8080"/>
    So why do I get the “The string "--" is not permitted within comments.” error?
    I know that
    I get the same error for all ws I try to consume from CF, even simple test ws made using CF.
    The ws work, because I can consume them using .Net and Java.
    CFINVOKE gives me the same error
    Thanks,
    Olav, Oslo, Norway

    Have you tried the other methods of connecting to a webservice?
    For instance by tag
    <cfinvoke
                  webservice="http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl"
                  method="post"
                  returnvariable="httpResponse">
                    <cfinvokeargument name="parameters" value="<xmlToSend>"/>
    </cfinvoke>
    Or by building up the CFHTTP call directly
    <cfhttp
                url="http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl"
                method="post"
                result="httpResponse">
                <cfhttpparam
                     type="header"
                     name="accept-encoding"
                    value="no-compression"
                 />
                <cfhttpparam
                type="header"
                name="SOAPAction"
                value="http://ws.fraudlabs.com/zipcodeworldUS_webservice"
                />
                 <!---
                        When posting the SOAP body, use the CFHTTPParam type of
                        XML. This does two things: it posts the XML as a the BODY
                        and sets the mime-type to be XML.
                        NOTE: Be sure to Trim() your XML since XML data cannot be
                        parsed with leading whitespace.
                    --->
                <cfhttpparam
                    type="xml"
                    value="#trim( orderXML )#"
                    />
            </cfhttp>
    I found fiddling around with all three methods of creating a webservice usually results in one that works
    Regards
    Joanne

  • Consuming Webservice on HTTPS Port

    Good day to everyone...
      I have consumed webservice that had been published on normal HTTP port...Now the webservice has been published on HTTPS port...I have trouble consuming it...
    What are the changes that I might have to make in the existing Portal Service?
    I tried using the wizard in eclipse to create a new service with the HTTPS URL...but that did not succeed...
    Any light?
    Thanks in advance.
    JP

    Hello John,
    have a look at this thread: HTTPS and EP Web Services Checker Hope it helps you.
    Regards
    Gregor

  • Invokation of Webservices using HTTP

    Can I invoke webservices in SAP using HTTP instead of SOAP? If so How?

    Hi Vijay,
    yes we can do it with HTTP
    Configuring the Receiver Plain HTTP Adapter
    Use
    The plain HTTP outbound channel is a service provided by the Integration Engine. The system is addressed when technical routing determines a corresponding communication channel for the logical receiver from logical routing. The system sends the payload of the message to an HTTP address using HTTP, without being enhanced with an envelope.
    Integration
    You configure the adapter on the Parameters tab page during the definition of a communication channel in the Integration Server.
    Activities
    The plain HTTP adapter gives the receiver system the following specifications:
    Transport Protocol
    HTTP 1.0
    Message Protocol
    XI payload in HTTP body
    Adapter Engine
    Integration Server
    Addressing Type
    URL Address
    HTTP Destination
    Specify the target host, service number, and path prefix including query string:
    http://<hostname:port>/<path>?<query-string>
    You can identify the target host (HTTP port) of a SAP Web Application Server using the ICM monitor.
    Host and port of the HTTP proxy (optional if there is a firewall between the plain HTTP adapter and the receiver system)
    Authentication data for the receiver system, see also: transaction Display and Maintain RFC Destinations (SM59)
    Specify the RFC destination.
    Parameters from the Communication Channel for Technical Routing
    ●      Content type (the entry text/XML is expected as default)
    Specifies the content format  (payload) that the message should have.
    ●      (Optional) header fields for the receiver-specific protocol
    ●      Select Additional Query String Attributes:
    ○       Sender party
    ○       Sender service
    ○       Receiver interface
    ○       Message ID
    ○       Quality of service
    ○       Queue ID
    The queue ID is only required if the quality of service is EOIO.
    ●      Specifications for payload manipulation
    ○       XML code (default UTF-8)
    Specifies the character set.
    ○       URL escaping
    Presents the XML in a URL-enabled format.
    Special characters that could be interpreted as control characters are replaced with escape characters (masked).
    ○       Prolog
    Enhances the payload for particular servers (optional, see below).
    ○       Epilog
    Enhances the payload for particular servers (optional, see below).
    Adapter-Specific Message Attributes
    ●      To evaluate adapter attributes in the message header of the XI message, select Set Adapter-Specific Message Attributes.
    ●      If you want missing message attributes to trigger an error message, select Fail If Adapter-Specific Message Attributes Missing.
    If the indicator is set and the header for adapter-specific message attributes or one of the set attributes is missing from the message, this leads to a system error (red flag).
    If you do not set the indicator, and message attributes are missing, the adapter accesses information from the adapter configuration.
    ●      If you want to use an HTTP destination or URL set by the mapping, select URL orHTTP Destination.
    (The indicator displayed depends on the Addressing Type you selected above). If you set the indicator, the URL or HTTP destination set dynamically is called by HTTP.
    If the message header does not contain the URL or the HTTP destination, and you have set the Fail If Adapter-Specific Message Attributes Missingindicator, the XI message is set to status System Error.
    If you do not set the indicator, the URL or HTTP destination defined statically in the communication channel is used.
    The technical names of the fields are:
    ○       URL: TargetURL
    ○       HTTP Destination: HTTPDest
    ●      If you want to use HTTP header fields, select Apply HTTP Header Fields and enter the fields in Field 1 to Field 6.
    The fields are embedded in the HTTP request under the names you enter here.
    The technical names of the fields are HeaderFieldOne, .... HeaderFieldSix.
    ●      If you want to use URL parameters, select Apply URL Parameters and enter the parameters in the fields Parameter 1 to Parameter 6.
    The parameters are included in the HTTP request under the names specified here.
    The technical names of the fields are URLParamOne, u2026, URLParamSix.
    ●      If you want to save HTTP header fields from the synchronous response in the XI message header, choose HTTP Header Fields (Synchronous Response) and enter the fields in the fields Field 1 to Field 6.
    The fields must have the same names as the fields that are also to be sent in the HTTP response.
    The technical names of the fields are HeaderFieldOne,...,HeaderFieldSix.
    ●      The attribute namespace for the adapter is http://sap.com/xi/XI/System/HTTP.

  • RFC-to-SOAP webservice using HTTPS

    Hi experts,
    I have a RFC-to-SOAP (sync) and the URL of the webservice is using HTTPS. I'm not the owner of the webservice.
    Encountered these errors
    - for sender comm :
    com.sap.aii.af.ra.ms.api.DeliveryException: Peer sent alert: Alert Fatal: illegal parameter
    - receiver comm :
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Peer sent alert: Alert Fatal: illegal parameter: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: illegal parameter
    We are not using certificate authentication so I don't think that's the cause.
    Have checked that the https is running ok for ABAP but I don't think that got anything to do with the errors. Is there something wrong with SSL setting for J2EE? If yes, how may I check?
    Are there some parameters to be set up? In the RFC sender comm & SOAP receiver comm, I do not find any special settings for https.
    I have read this link : http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm. Is it necessary to set the Exchange Profile Parameters? My BASIS colleague is now checking it.
    Thanks for reading and will appreciate any advice!

    Thanks Prateek for the quick reply!
    Re HTTPS certificate, do you mean the cert for my XI server or the cert from the web service?
    I have tested calling the web service using SOAPUI and it works fine without using the cert given by the web service (which is expired anyway)...

Maybe you are looking for

  • IMac will not boot in recovery mode

    I have tried to boot into recovery mode (CMD-R) in Mavericks.  I tried with my hard drive and a Mac Install disk.  Disk utility has grayed out the erase option except for unused space. Can't partition either. I am attempting to donate to my church. 

  • Stock value - some has value, some is non-valuated in same material number

    Hi, I have a condition here where in our company certain material (same material number) total qty is 1000 ea. The MAP is 10 USD. May be after a few months, the cost of 600 ea will be absorb by certain cost center(department). So, user request to zer

  • Docment Type.. for cheque details

    Hi experts, I am developing a report for displaying all  the cheque payment details done on last day. in that i have to select the data for document type 'KZ/DZ' only. i am fetching the data form PAYR but in that table documnt type is not exist. So f

  • PDF name SAP Business One

    Dear Experts, We want to customize the name of the PDF file that is generated from sap documents and reports using Crystal or PLD. Instead of date and timestamp we want append the document number on it. Is it possible? Thanks in advance. Best Regards

  • Arc - pdf - Illustrator making odd rasterized data

    Hello! A common element of our workflow includes exporting from ArcMap as a pdf, then opening that pdf in Illustrator and taking the resultant linework into our AI work file.  All of the sudden, my pdfs are coming into AI as an image would--broken in