Consuming web service in SAP NetWeaver 7.1 Composition Environment

Hi,
I have created webservice in ABAP. can anyone help me out how to consume that in SAP NetWeaver 7.1 Composition Environment.
Thanks in advance.
Dhanu.

Hi Dhanu,
There are several ways of doing this:
1) Publish your web service onto the Services Registry. If you are using CE 7.1 EHP1, you could refer to my blog for this: /people/romit.ghose2/blog/2008/11/21/using-a-simple-ui-to-publish-web-services-to-the-services-registry-in-ce-711
If you are using a previous release, you would have to use the web services available for publishing.
2) Directly enter the WSDL path and create a consumer proxy for it in NWDS.
Hope this helps.
Regards,
Romit

Similar Messages

  • Error when consuming Web Service in SAP R/3 ECC 6.0

    Hi to everyone.
    I have created an asynchronous Web Service in SAP R3, which I want to use in SAP PI later.
    When I test the Web Service using WS Navigator or XMLSpy the following error occurs:
    SOAP Runtime Protocol: ABAP Runtime exception: 1F09B73915F6B645E10000000A11447B occurred in program CL_SOAP_APPLICATION_PROXY=====CP CP in include CL_SOAP APPLICATIONPROXY=====CM008 at position 110
    SOAP Runtime Protocol: Exception message: An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
    I tested another synchronous Web Service developed by me in the same system, and the error does not occurs.
    I just searched an OSS Note and does not find anything.
    There are some restrictions in Web Service type developed in SAP R/3?
    Thanks in advance.
    Rafael Rojas.

    Hi.
    I think I must clarify my question.
    The Web Service is not called inside SAP R/3 but externally. For testing pourpose I actually use WS Navigator and XMLSpy.
    The method inside ABAP Server Proxy which is exposed as a Web Server in SAP R/3 system is the following. Note that the Web Service is Asynchronous.
    METHOD zpi_ii_test_ws_4_in~test_ws_4_in.
      DATA: lwa_zpi_test TYPE zpi_test.
      lwa_zpi_test-mandt = input-mt_test-record-client.
      lwa_zpi_test-bukrs = input-mt_test-record-company.
      lwa_zpi_test-belnr = input-mt_test-record-document.
      lwa_zpi_test-gjahr = input-mt_test-record-year.
      INSERT zpi_test FROM lwa_zpi_test.
      COMMIT WORK.
    ENDMETHOD.
    I have created another Web Service in SAP R/3 which is Synchronous, and the error does not occurs. The following is the method inside ABAP Server Proxy which is exposed as a Web Service in SAP R/3 system.
    METHOD zpi_ii_test_ws_3_in~test_ws_3_in.
      DATA: l_bukrs      TYPE bukrs,
            l_belnr      TYPE belnr_d,
            l_gjahr      TYPE gjahr,
            lr_belnr     TYPE RANGE OF belnr_d,
            lwa_zpi_test TYPE zpi_test.
      l_bukrs = input-mt_req-msg+0(4).
      l_gjahr = input-mt_req-msg+4(4).
      SELECT MAX( belnr ) INTO l_belnr
        FROM zpi_test
        WHERE bukrs EQ l_bukrs
          AND belnr IN lr_belnr
          AND gjahr EQ l_gjahr.
      IF l_belnr IS INITIAL.
        l_belnr = '4700000000'.
      ELSE.
        l_belnr = l_belnr + 1.
      ENDIF.
      lwa_zpi_test-mandt = sy-mandt.
      lwa_zpi_test-bukrs = l_bukrs.
      lwa_zpi_test-belnr = l_belnr.
      lwa_zpi_test-gjahr = l_gjahr.
      INSERT zpi_test FROM lwa_zpi_test.
      COMMIT WORK.
      output-mt_resp-msg = l_belnr.
    ENDMETHOD.
    I hope to have clarified my question.
    Rafael Rojas.

  • Error when calling Web Service in SAP Netweaver side.

    An error occurred while trying to make a request to URI 'http://us4184.wdf.sap.corp:1080/sap/bc/srt/wsdl/sdef_WS_SSC_USR_GET_USER_LIST/wsdl11/ws_policy/document?sap-client=000'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details.
    Does anybody know where can I put the cross-domain policy in Netweaver platform?
    Best regards,
    Anders

    Hi Anders,
    The resolution of the crossdomain problem is not to store an cross-domain-policy file at the [SAP] webservice side; but instead it needs to be done at the (every...) webservice client. In case the client is an IIS based webapplication (and thus the ultimate end-users are accessing it via their browser), this is not such an issue. It there is sufficient to put an crossdomain.xml policy file in the IIS main virtual root of your 'client' .net webapplication (c:\inetpub\wwwroot). It also can be required or at least helpful to put a clientaccesspolicy.xml file; both at the main virtual root and in the virtual root of the specific webapplication
    In case of SharePoint application, the crossdomain.xml file must be stored in the WSS virtual root of that site; c:\inetpub\wwwroot\wss\virtualdirectories\<your SharePoint webapp>
    Best regards, William.

  • Problem  consume Web Service in SAP

    Hi experts,
    I need your help to solve this problem.
    I must consume one Web Service, but my SAP R3, don't  interprets the XML.
    (SE80 - > enterprise services -> create  -> Service Consumer )
    i tried to  put  the URL and  copy to text file , neither worked,
    the Error:
    Exception occurred in communication framework:Error in File Upload:
    rc=1 C:\Users\XPTS853\Desktop\array.xsd
    solution remove this line
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="array.xsd";/>
    now give me this error:
    Exception occurred in library handler
    Illegal syntax:     Extension element http://schemas.xmlsoap.org/wsdl/soap/:operation not valid in element operation
    can you help me? suggestions ?
    note: i use complex structures are they the problem?
       <complexType name="operationInD">
                <sequence>
                   <element name="MN" type="string"/>
                   <element name="Nile" type="int"/>
                   <element name="NewMainB" type="float"/>
                   <element name="NCode" type="string"/>
                </sequence>
             </complexType>

    hi thanks,
    my WSDL is valid.. 
    the error is base in interpretation of XSD...  i think..
    Incorrect value: XSD namespace  not available
    thank. the file is great, but is not related with this problem... (i have all supported tag´s)

  • Data Services - Error Consuming Web Service from SAP CE

    Hello all,
    I developed a very quick sample real-time job in Data Services just to test the web services and connectivity between BoBJ DS and SAP CE.  The real-time job doesn't do anything fancy, just converts characters from lower case to upper case.  In SAP CE I am attempting to use the web service navigator to test the WSDL (http://localhost:28080/DataServices/servlet/webservices?ver=2.0&wsdlxml).  SAP CE correctly connects to the WSDL and gives me a selection list where I can drill down to Real-Time Services -> my real time job.  I put in some test data and execute the web service and I get the following error:
    Invalid transport binding settingsDocument is not well-formed: Expected End-tag 'MAIN', received:a, on position: 0 (:main:, row:1, col:0)
    The strange thing is that the HTTP response message shows that the service actually executed, because the data has been converted to upper case as it was supposed to.  Also, if I go into the Data Services Management Console it shows the service was executed with no errors.  The strange thing is that I notice something wrong when I look at the response message vs. the source message:
    Source:
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SOAP-ENV:Body>
        <pns:MAIN xmlns:pns="private">
          <pns:RECORD>
            <pns:NAME>Test Name</pns:NAME>
            <pns:NUMBER>Test1234</pns:NUMBER>
            <pns:ADDRESS>123 Testing Lane</pns:ADDRESS>
            <pns:CITY>Santa Clara</pns:CITY>
            <pns:STATE>CA</pns:STATE>
            <pns:POSTAL>95057</pns:POSTAL>
          </pns:RECORD>
        </pns:MAIN>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Target:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><MAIN xmlns="private" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents%20and%20Settings\TEMP\Desktop\Schema.xsd">
    <RECORD><NAME>TEST NAME</NAME>
    <NUMBER>TEST1234</NUMBER>
    <ADDRESS>123 TESTING LANE</ADDRESS>
    <CITY>SANTA CLARA</CITY>
    <STATE>CA</STATE>
    <POSTAL>95057</POSTAL>
    </RECORD>
    </aw:MAIN></soapenv:Body></soapenv:Envelope>
    If you notice in the target message the closing <MAIN> tag is preceded by "aw".  I'm not sure what this means, and I'm not sure where it's coming from, but I think it could have something to do with the error because it doesn't match the opening tag. 
    I'm not sure if this is something that is set in Data Services?  I've checked around quite a bit but I am stumped!  Can anyone help?

    what is the version of dataServices you are using ? there was a bug that was fixed related to this issue, if you are on 12.1 (DS XI 3.1) then use the latest 12.1 Fix Pack 12.1.1.7
    if you are on 12.2 (DS XI 3.2) then use the latest SP and FP 12.2.2.1

  • Stub(Proxy) generation for external Web Service in SAP NW WebAS 6.40

    Hi,
    Can anyone tell me what tool is used to generate the proxy files for accessing any external web services in SAP NetWeaver WebAS 6.40 for JAVA (SAP DevStudio 2.0.5).
    Do i have to install any components or configuration for using external web services?
    Thanks,
    Mital.

    Hi Peter,
    Thanks for the reply.
    I have already gone through the Email Web Service tutorial. And implemented the tutorila.But no where they have mentioned about the toolkit they are using to generate stub files and SOAP request.(for eg Axis tool for WSDL to java generation).
    Also I am facing problems while I am trying to use an external webservice. I have posted the problem at Re: WebDynpro External Web Service Model.
    It would be nice if uyou can go through the problem and help me in solving the problem.
    Also can you please tell me the link for the mentioned documents on importing web service model.
    Thanks,
    Mital.

  • How to test/consume asynchronous web services in SAP?

    Hi,
    How do we test/consume asynchronous web services in SAP - either version 4.7 or ECC6.0?
    TIA,
    Regards
    Deepthi

    Go through the following link to know how to consume web services using ABAP:
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3]
    Regards,
    Siva.

  • How to consume sap xi pi web services or sap RFC with oracle 11g forms.

    Dear All
    how to consume sap xi pi web services or sap RFC with oracle 11g forms.
    or
    how to config 11g forms with sap xi....
    or how to call sap xi web services in 11g forms....
    or can send sample code....
    Regards
    smfatmi
    Edited by: smfatmi on Oct 17, 2011 2:16 AM
    Edited by: smfatmi on Oct 17, 2011 2:17 AM

    Dear All
    how to consume sap xi pi web services or sap RFC with oracle 11g forms.
    or
    how to config 11g forms with sap xi....
    or how to call sap xi web services in 11g forms....
    or can send sample code....
    Regards
    smfatmi
    Edited by: smfatmi on Oct 17, 2011 2:16 AM
    Edited by: smfatmi on Oct 17, 2011 2:17 AM

  • How to consume web service in Agentry in SMP 3.0

    Dear All , I am using web service in Agentry to retrive data but could not able to fetch it . I have made connection with HTTP-XML for consuming webservices. and also give proper information in Agentry.ini files Ex : [HTTPXML-2] name=HTTP-XML Back End authenticationCertificateStore=MY authenticationCertificateStorePassword= authenticationCertificateStorePasswordEncoded=false autoDequote=true ;baseURL=http://localhost:81 baseURL=http://sapes1.sapdevcenter.com:8080/sap/opu/odata/iwbep/gwdemo/ basicAuthenticationPassword=123456 basicAuthenticationPasswordEncoded=false basicAuthenticationUserID=P1466405733 constantsFile=httpxml_sd.ini enableAuthentication=false enablePreviousUserAuthentication=false httpConnectTimeout=300 httpReceiveTimeout=300 httpResolveTimeout=300 httpSendTimeout=300 listenOn= timeout=300 timeZoneName= useSSL=false xmlAllowXSLTScript=true xmlNamespaces= xmlResolveExternals=true xmlValidateOnParse=true for more information i have attached agentry XML screen shot as well . Can you please guide me how to consume web services in Agentry correct way ? Note : Currently i am using standard netweaver demo web services . Thanks & Regards ,   Kunal Varaiya
    Tags edited by: Michael Appleby

    The XML Steps URL will be added to the Agentry.ini BaseURL.  So you dont' need the full URL on the step.
    So when Agentry Runs the step to call the backend it will go:
    <BaseURL>/<Step's URL>
    This way if you need to change the base URL, IE, going from Dev to QA to Production Server you only need to change the Base, and not go into every step and update it.
    URL: This attribute contains the URL to which the Agentry Server will make a request. This value will be appended to the value configured as the base URL for the HTTP-XML system connection. This base URL is configured within the HTTP-XML system connection configuration options for the Agentry Server. Proper use of both this base URL option and the URL entered in the requests of the step definitions can support portability for the application, with the base URL being the implementation-specific portion and the step’s URL being the portion not likely to change for the same back end system from one implementation to the next.
    http://help.sap.com/saphelp_smp303sdk/helpdata/en/7c/143d5d70061014b323be16eb0b0a77/frameset.htm 
    Stephen

  • Consume Web Service in ECC6

    Hello
    I’m sure somebody can help me with the question here.
    I’m trying to create proxy client in ECC6 by using SE80 ( and press ‘Enterprise service’ tag ), which is the path for 640. But I could not find creation button. Instead, system tells me ‘Connection to integration builder’. It seems to me that we have to create proxy client in XI. Is it still possible to consume a web service in SAP for ECC6 without going through XI ?
    Thank you for any answers, insights, or speculations.
    Judy

    Hello Judy,
    I would encourage you to put this post in the "Expert Forums » SAP NetWeaver » SAP NetWeaver Platform" forum as well.
    regards,
    Bala.

  • Consume Web Service in BW

    We have an external web service (non sap, the model is described by an external WSDL document) which we would like to consume at SAP BI server side. Do we need to write some kind of ABAP code or can we bind the external web service direct to a source system type  u2018Web Serviceu201C. (Using NetWeaver BI 7.0)
    How should we proceed? And where can we find further information about this scenario?
    Any input welcome.

    Hi,
    Not sure if this work on BI.
    Try this:
    Tx: SPROXY or SE80
    If you are able to run this tcode then it is possible to create consumer proxy which will consume external wsdl,
    Under SE80 goto->Enterprise Service select to create consumer proxy and supply wsdl address to create it. ABAP code will be generated which can be used to consume external service.
    Regards,
    Gourav

  • Problem in consuming web service from esworkplace

    Hello
    I am useing CE7.2 evaluation version
    I want to consume a web service from SAP workplace
    I've built a process composer project then I tried to import a WSDL and chose the "service registry" option
    However I keep getting  the message "internal error in the services registry"
    BTW u2013 I defined the "esworkplace" as the services registry in the Preferences.
    Any ideas what can be the problem? Thanks.
    Thanks

    Hi Experts,
    Please help me with this issue. I am really stuck up here.
    Thanks,
    Radhika

  • INVOKING WEB SERVICE FROM SAP ERP

    Hi to all
    I need interchange informacion between NON-SAP system and SAP ERP using web services
    I know publish web services in SAP ERP, but I don't know how SAP consume a WS of other system
    Please, somebody know how can I do it this ? I don't want that XI consume this WS, I want that SAP ERP consume it.
    Thank you and regards
    Dario

    Hi,
    we can do it using Webdynpro for Java or ABAP. In addtiion to this check wtih any EDI related ones or ALE-IDOCS.
    Psl check this abt the Web Services information-
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/109aa318-5aa6-2a10-799d-a495383c1e01
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • How to create WEB  SERVICE in SAP

    Hi guys ,
    i am new to WEB SERVICE IN ABAP.what's the purpose of web service ?
    can anyone give me step by step example to create web service in SAP?
    ur answers will be rewarded.
    Regards
    pabitra

    Check the below links.
    Web Services-Based Connectivity
    Providing and Consuming Web Services in ABAP
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    Web Services Development in ABAP
    Web Services-Based Connectivity?rid=/webcontent/uuid/83b7ec4d-0a01-0010-03a9-e5a3b42522b8 [original link is broken]
    Web Services (SAP Library - Web Services)
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm
    ABAP Proxy Runtime (SAP Library - Web Services)
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
    Hope this helps.
    Thanks,
    Balaji

  • 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

Maybe you are looking for

  • Reports 9.0.2 to EXCEL

    Hi, this is Antonio, and i would like to know what do i have to do to take out a report in Excell format directly from Forms. I have the OC4J Start (reports server) on, which works with rwserver.exe. What I need is to take out a report from Forms 9i

  • How to modify this AppleScript to work with Safari 7.0?

    I have been using this AppleScript as an Automator service in order to get Safari to close all tabs to the right of the current tab. However I have updated to Mavericks (10.9) and find that this no longer works. Can anyone advise how this AppleScript

  • I cannot add audio to my DVD

    I have created a DVD with all my photos and now have come to add audio to it, and it wil not drag into the audio

  • My mic on my ipad mini does not work, how to activate it

    I have a new ipad mini 64Gb 4G. Using skype my partner at the other end doesn't hear me. How can I activate the built in mic?

  • Creative Zen V - Windows 9

    Hi, I recently bought a creative zen v mp3 player, but the pc that i want to use it with is only running windows 98se. Are there any drivers or is there any possible way in which i can use my mp3 player with 98se? Any help would be greatly appreciate