Consuming a webservice in ABAP ECC 6.0 without using XI/ PI

Hi Experts,
I wanted to consume an external webservice without using XI / PI.After doing my homework and search on sdn I came to know that we can consume webservices in ABAP using proxies using SE80(Enterprise Services).
I am trying to create a client proxy with the URL of webservice.It asks me the option to choose between URL or HTTP.
I am selecting URL and in the second screen it asks about the package details and after that it finishes.Later I get an error message stating "NO VENDOR SPECIFIED".Its not allowing me to create a proxy.
So, here are my questions.
Does anyone faced the same kind of problem?
Can we really consume a webservice without using XI / PI or any other middleware?
Is it possible to consume the webservice only with URL or WSDL file ?
Please let me know the exact process.
Thanks in Advance.
Shanker Pandey.

Hi Martin,
  Please check these following links. Though you have reported already, these may help
Proxy Object generation error using Wizard for Web Service Consumption
Also, please have a look @ /people/thomas.jung/blog/2006/03/13/develop-a-web-service-that-sends-an-email--in-abap-netweaver-04s
Hope this helps,
Karthik

Similar Messages

  • Error While Consuming the webservice in ABAP

    Hi,
      I am trying to consume a webservice in ECC. I have imported the WSDL and generated the proxy. Did the configuration in the SOAMANAGER. While calling the webservice from the program I am getting the following error message. "SRT: Unsupported xstream found: ("HTTP Code 400  : Bad Request")"
       Any help is appreciated.
    Thanks
    Raghavendra Kuamr

    Hi,
    Check ST11 to find detailed log of issue, most likely you are passing "WS-A" message id along with request (check settings in SOAMANAGER Logical Port).
    Try calling service after suppressing "Message Id transfer". See SAP Note: 1361688 and related notes in 0001292171
    Regards,
    Gourav
    PS: please search forum before posting questions.

  • Consuming the webservices in ABAP?

    Hi Guys,
    I have consumed a wsdl on the ECC 6.0 system, generate a proxy object and when i am trying to send the data i am gettitng the error as below.
    I have also filled the soap action while creating the logical port through SOAMANAGER.
    Error Error CL_SOAP_RUNTIME_CLIENT EXEC_PROCESSING
    SOAP Runtime SOAP Fault Exception caught: : System.Web.Services.Protocols.SoapException:
    Server did not recognize the value of HTTP Header SOAPAction: http://YYY/XZZSoap30/SoapOp.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    any help or suggestions would be appreciated
    Thanks,
    Raj

    Raj,
    The below Link Might help
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/473978127144d2a77c94dd544e2e61/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d86cf1a4-0701-0010-409d-c568b1d2519e
    Call a ABAP Web Service externally
    Cheers
    Agasthuri Doss

  • Error Consuming a webservice from ABAP

    Hi all,
      I am consuming an external webservice from abap. I created teh proxy using WSDl file. While testing teh service its giving an exception like this-
    "JAXB unmarshalling exception: Unable to create an instance of de.*******v2.MeldungType; nested exception is javax.xml.bind.UnmarshalExcept
    ion: Unable to create an instance of de.****.MeldungType# - with linked exception:#[java.lang.InstantiationException]"
    With a soapfaultcode: 1..
    can any one help out in arriving at teh reason for this..
    Regards
    Sandeep

    I've seen lots of unmarshalling errors whilst trying to consume web services via Web Dynpro Java...  Usually, it was due to an inconsistency between the WSDL file being used and the underlying web service definition.  It might be worth checking the WSDL you are using is correct and up to date, in case the underlying service interface has changed.
    Also worth checking if you have any simple boolean type parameters defined as part of the service interface - they have to have a value assigned when you call the service and cannot be null.
    HTH.

  • How to consume json webservice in abap?

    hello  every one please help me how to consume json format webservice in abap.
    i am new in abap please help me out .
    Thanks&Regards
    ~Ahmad

    hi check this,
    First create a web service in SAP. The blog by Uwe Kunath descibes this clearly. Then create an Xcode project and use the ASIHTTPRequest wrapper to connect to the web service. Parse the response with the KissXML parser. A more out of the box solution is NetWeaver Gateway. It also let you use SAP web services but it also generates iOs code for you. SAP just released a trial version in de download section.
    Example of ASIHTTPRequest
    - (void)getFlightData:(NSString *) selectedDate {
         NSURL *url = [NSURL URLWithString:@"http://abap.sapdev.nl:8000/sap/resources/flights/from/%/to/%/date/20110128?sap-client=001"];
         ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
         [request setUsername:@"BCUSER"];
         [request setPassword:@"minisap"];
         [request startSynchronous];
         NSError *error = [request error];
         if (!error) {
              NSString *response = [request responseString];
              [self parseXML:response];
    Example of KissXML
    -(void)parseXML:(NSString*)source {
         NSError *error = nil;
         DDXMLDocument *theDocument = [[DDXMLDocument alloc] initWithXMLString:source options:0 error:&error];
         NSArray *results = [theDocument nodesForXPath:@"/asx:abap/asx:values/TAB/BAPISFLDAT" error:&error];
         for (DDXMLElement *flightdetail in results) {
              NSString *airlineid =   [[flightdetail elementForName:@"AIRLINEID"] stringValue];
              NSString *airline =     [[flightdetail elementForName:@"AIRLINE"] stringValue];

  • Call (consume) a webservice from ABAP for dummies

    Hi
    I find the documentation for this topic very confusing. It a badly structured mix of documentation of client scenarios, server scenarios and worst of all a lot of XI nonsense.
    I need purely client scenario documentation without any info about XI and without any info about creating web services.
    I just need to know how to consume a web based webservice in ABAP program. Where can I find this docu?
    I have tried to generate proxies from different WSDL sources, but it always fails with different error messages.
    Can anyone suggest a simple WSDL webservice usefull for testing my setup?
    Best regards
    Thomas Madsen Nielsen

    You are right, the help files do mix consuming and creating, but they do provide a list of steps for consuming and what you need to do.  To consume a web service, the general steps you need to follow are:
    - Create an extendable package with use accesses SAI_SXMS, SAI_TOOLS, SAPPINT
    - Create a proxy class using the wizard in SE80 (right click on the package -> Create -> Enterprise Service) - the creation of the class depends on the WSDL document - you can either generate based on the url  for the WSDL or download the WSDL document and import it as a file in the wizard.  You may need to tinker with the WSDL document to get the class generation to complete successfully. Your WSDL is here: [http://maptp12.map24.com/map24/webservices1.5?soap=Map24Routing]
    - Create a logical port in LPCONFIG or SOAMANAGER (assumes NW 7.0 SP14 or later) with information in the WSDL
    - Create a program to consume the service method - it will look something like this (abbreviated):
    DATA: gv_client_proxy  TYPE REF TO zcwsbb_co_global_weather_soap,
          gv_sys_exception TYPE REF TO cx_ai_system_fault.
    DATA: gs_request   TYPE zcwsbb_get_weather_soap_in,
          gs_response  TYPE zcwsbb_get_weather_soap_out,
          gs_weather   TYPE zst_currentweather.
    DATA: gv_message   TYPE string.
    TRY.
        CREATE OBJECT gv_client_proxy.
        CALL METHOD gv_client_proxy->get_weather
          EXPORTING
            input  = gs_request
          IMPORTING
            output = gs_response.
      CATCH cx_ai_system_fault INTO gv_sys_exception.
        CALL METHOD gv_sys_exception->if_message~get_text
          RECEIVING
            result = gv_message.
        WRITE: gv_message.
        FREE: gv_client_proxy, gv_sys_exception.
        EXIT.
    ENDTRY.
    - Transform the response as required using ST or XSLT

  • Consuming Sharepoint webservice from Abap

    Hi, I have a need to access a Sharepoint database from SAP.  I am using the search.aspx webservice that sharepoint offers, or at least trying to.  I set up an abap proxy from the WSDL that sharepoint supplied (which was not the best WSDL).  From my ABAP I need to call the sharepoint service and I am having a little difficulty getting a result back.
    Here is the ABAP code I have so far:
    DATA: gr_query  TYPE REF TO zgms_cycletimeco_query_service,
          gs_input  TYPE zgms_cycletimequery_soap_in,
          gs_output TYPE zgms_cycletimequery_soap_out.
    DATA: oref   TYPE REF TO cx_root,
          text   TYPE string,
          oref2   TYPE REF TO cx_root,
          text2   TYPE string.
    CREATE OBJECT gr_query.
    CONCATENATE 'get_text( ).
    ENDTRY.
    I am trying to retrieve the record that contains HE2009-0624-084648 with no luck.
    The error message I get says no results found.
    Does anyone know what I am doing wrong?  Do I need to specify the field in sharepoint that contains this data?
    Thanks in advance,
    René

    Thanks for your reply.  I actually tested today in SE80 on the proxy, and the request was formatted as:
    <n0:Query xmlns:n0="urn:Microsoft.Search" xmlns:prx="urn:sap.com:proxy:PLD:/1SAI/TAS4ADD6B94366302A825F7:700:2007/10/04">
    <n0:queryXml>This is a string 6</n0:queryXml>
    </n0:Query>
    When I execute it, the reponse is:
    - <n0:QueryResponse xmlns:n0="urn:Microsoft.Search" xmlns:prx="urn:sap.com:proxy:PLD:/1SAI/TAS4ADD6B94366302A825F7:700:2007/10/04">
      <n0:QueryResult><ResponsePacket xmlns="urn:Microsoft.Search.Response"><Response domain=""><Status>ERROR_BAD_REQUEST</Status><DebugErrorMessage>Data at the root level is invalid. Line 1, position 1.</DebugErrorMessage></Response></ResponsePacket></n0:QueryResult>
      </n0:QueryResponse>
    I don't really know what the format would be in between the queryXml tags.  If anyone knows, please help!
    Thanks.

  • Consume external webservice from ABAP

    Hello all,
      Can we consume external web service from ABAP??
      If yes please gimme a sample code to do that..
    Thanks in advance..
    Regards,
    Maya

    Can we consume external web service from ABAP in version 4.7??

  • How use a proxy consumer web service in ABAP Program with local interface

    I generate a proxy class based on a WSDL file.
    I want to use this class in an abap programm without a connection but using XML files in local.
    I see with the class CL_PROXY_LOCAL_ADAPTER that it is possible to execute without connection but for use this, it's necessary to use the method REGISTER.
    This method have two parameters : Class Name and Interface Name.
    Class name is the name of my proxy class, but I don't know how to find the interface name.
    I think that a local interface is needed to generate but I don't know how to generate in interface with entries in SPROXSIG table ?
    Could you help me ?

    Check out the following links to see if it meets your needs.. Has examples to call a ABAP proxy (that consumes a webservice) from ABAP program...
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm (webservices ->webservices toolset -> examples)
    http://help.sap.com/saphelp_dm40/helpdata/en/1a/b69d427cab0831e10000000a1550b0/frameset.htm

  • To consume web service in ABAP is it required that server should be XI.

    Hi ,
    I am trying to connect to a webservice from netweaver 7.0 systemand it gives an error " Not configured as integration engine". Is it required to have integration engine to consume web service.
    Sanjay

    Hi Sanjay
    You can consume webservices in ABAP but its better to use XI in mid to avoid point to point communication. Using XI you can have a central hub for all services you consume or publish
    Check this link as well
    BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
    Thanks
    Gaurav

  • Consuming Exchange Webservice

    Hi @ll,
    we`ve the requirement to consume exchange webservice from abap.
    Does anybody has some experiences with abap and EWS?
    Thanks in advance.
    Best regards,
    Flo

    I am sure I'm passing everything to what ws is requiring.
    Here is a part of wsdl
    <s:extension base="tns:BaseCalculateOrderRequest">

    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="CustomerID"
    type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="Frequency"
    type="tns:FrequencyType"/>
    <s:element minOccurs="1" maxOccurs="1" name="StartDate"
    type="s:dateTime"/>
    <s:element minOccurs="0" maxOccurs="1" name="CurrencyCode"
    type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="WarehouseID"
    type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ShipMethodID"
    type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="PriceType"
    type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="PaymentType"
    type="tns:AutoOrderPaymentType"/>
    <s:element minOccurs="0" maxOccurs="1" name="FirstName"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="LastName"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Company"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Address1"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Address2"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="City"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="State"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Zip"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Country"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="County"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Email"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Phone"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Notes"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Details"
    type="tns:ArrayOfOrderDetailRequest"/>
    </s:sequence>
    </s:extension>

  • Consume a WebService that exists in SAP ECC 6.0

    Hello evrybody,
    I have a requirement that I've never done before, I have a webservice in transaction WSADMIN in a SAP ECC 6.0, and I need to consume it from PI but I don't know how, I've worked before with BAPI's and ABAP Proxies but never with WebServcies like this, do you know any documentation or maybe a blog on how to do this?, thanks in advance.
    Regards,
    Karla

    Thanks for your answers, I've used ABAP Proxies before, but in the way of generating an ABAP Proxy of a Inbound or Outbound interface from the IR, now I need to consume a WebService already created in SAP ECC 6.0, and I've never donde this before, I'm trying to understand that using SOAP Adapter I should get the WSDL File of the webservice and upload as an External Definition in the IR, but where could I get the URL to consume the webservice that exists in SAP ECC 6.0, thanks.

  • Consuming webservice in ABAP Webdynpro

    Hi all,
    I am using SAP ECC 5.0.Can I consume External webservices using ABAP Dynpro.Sending related links will be highly appreciated.
    Regards
    Sandeep.S

    the thread is marked as answered? is it resolved or are you still looking for an answer

  • Consuming Webservice in ABAP: SoapFaultCode:1

    Hi,
    I have created a webservice with NetweaverDeveloperStudio and deployed it to a J2EE. I tested it with the "NDS-Webservice-Tester" and it worked fine.
    I then created a proxy following the section for WebAS 640 in the weblog of Thomas Jung:
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    When using the "test-interface" function in SE80 (also described in Thomas weblog) I get the following result:
    <CX_AI_SYSTEM_FAULT>
    <CODECONTEXT>http://www.sap.com/xml_errorcodes</CODECONTEXT>
    <CODE>SoapFaultCode:1</CODE>
    <ERRORTEXT>
    000D6019F1DD004000000036000020D8000405473991B26F:
    Found 0 operation definitions using keys:
    Key name:'first-body-element-ns'
    key value: 'urn:EdilogUserManagementWebserviceWsd/EdilogUserManagementWebserviceVi/document';
    Key name:'SoapRequestWrapper'
    key value:'getCompany';
    </ERRORTEXT>
    <LANGUAGE />
    </CX_AI_SYSTEM_FAULT>
    Any idea what might cause this error? Is there a list with the SoapErrorCodes and their specific meanings?
    Thanks and regards
    Jan Hempel

    I solved the problem "accidentally": The name of the Webservice was to long! Changing the name from "EdilogUserManagementWebservice" to "UserManagement" did the trick.
    This is probably due to the restricted fieldlength of ABAP-programnames.
    Regards
    Jan Hempel

  • Consuming webservice in ABAP - empty complexType table

    Hello,
    I've the following problem:
    I consume a webservice, which has two parameters as response-result. The first parameter is a simple type. The second parameter is a table type described  as follows in the WSDL:
    - <element name="getVarListResponse">
    - <complexType>
    - <sequence>
      <element name="getVarListReturn" type="impl:ServiceResult" />
      </sequence>
      </complexType>
      </element>
    - <complexType name="ArrayOf_xsd_string">
    - <sequence>
      <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string" />
      </sequence>
      </complexType>
    - <complexType name="ServiceResult">
    - <sequence>
      <element name="_errorMessage" nillable="true" type="xsd:string" />
      <element name="_resultList" nillable="true" type="impl:ArrayOf_xsd_string" />
      <element name="_successfull_processed" type="xsd:int" />
      </sequence>
      </complexType>
    - <element name="getVarListFromDWDocument">
    - <complexType>
    - <sequence>
      <element name="dwdocumentID" type="xsd:long" />
      </sequence>
      </complexType>
      </element>
    - <element name="getVarListFromDWDocumentResponse">
    - <complexType>
    - <sequence>
      <element name="getVarListFromDWDocumentReturn" type="impl:ServiceResult" />
      </sequence>
      </complexType>
      </element>
    I created a proxy to consume this service. When I test the proxy directly I get the correct result displayed as XML (the response). When I try to call the service over ABAP code (use the proxy in a report), I've the problem that the complex-type table is empty. The simple type value is correctly filled.
    Does anyone have an idea which could be the problem? I guess the mapping of the XML response in the DDIC-types isn't working correctly, but I've no idea why.
    Thanks in advance
    Cunanan1980

    Hi Srikanth,
    Check this regarding the web service in WDA.
    Ist Step : configure Logical Port
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    2nd Step : Generate Proxy Object
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
    data: sys_exception type ref to cx_ai_system_fault,
          sys_exception2 type ref to cx_ai_application_fault,
          client_proxy type ref to zco_myesa, "MY PROXY CLASS
          lv_ret_code type int4,
          lv_input type zsend_email_input,
          lv_response type zsend_email_response.
    data: lv_from type string,
          lv_from_address type string,
          lv_to type string,
          lv_to_address type string,
          lv_subject type string,
          lv_msg type string.
    lv_input-from = 'MYSAPTEST'.
    lv_input-from_address = '<someAddress>'.
    lv_input-to = 'Prashant'.
    lv_input-to_address = '<someAddress>'.
    lv_input-subject = ' TEST'.
    lv_input-msg_body = ' Hi this is wonderfull to see it work'.
    try.
    create object client_proxy
    exporting
    logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
    call method client_proxy->send_email
       exporting
         input  = lv_input
       importing
         output = lv_response    .
      catch cx_ai_system_fault  into sys_exception .
        data lv_err type string.
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
      catch cx_ai_application_fault into sys_exception2  .
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
    endtry.
    if lv_response is initial.
       write: /'Not Executed'.
    else.
       write: /'Did Execute'.
    endif.
    Regard
    Manoj Kumar

Maybe you are looking for

  • Ipod 40 gb Classic ='(

    I have an Ipod classic 40gb (love it) Very nostalgic. It is old as you may notice by the 40gb. I try going into disk mode and every once in a while it will go into disk mode. I mean once every 25-30 times. I don't want to trade in for 10% of a new Ip

  • How can I change the ToolTip bg and fg colors?

    hi, I have a JTree, and I want to display a textual description for each node as a tooltip. I want the tooltip to appear with a certain bgcolor, and fgcolor. I have a CustomCellRenderer extending DefaultTreeCellRenderer with getTreeCellRendererCompon

  • Track pad wont click and drag help?

    this may not be the right place but for some reason my track pad just randomly quit working when it comes to click and drag. i updated the software because i read one correct this issue but its still happening. can anyone help? do i need to take it t

  • Sales Area determination in Shipping from MM PO

    Hi everyone Is there a userexit available to determine Sales Org (VKORG), Distribution channel (VTWEG) in the case of creating outbound deliveries for a return to vendor. Thanks in advance

  • Error when trying to connect on universe .UNX with Query Panel

    Software : Windows 2008 Server Standard Edition 64bits Dashboard Design 4.0 SP02 Patch 12 SBOP BI Platform Edge 4.0 SP02 Patch 12 Hi everyone, I'm trying to connect my Dashboard using Dashboard Design 4.0 to an universe with extension .UNX with the q