BAPI as Web Service in XI 2.0

Hi there,
I have been struggling for about a week trying to <u>deploy/call a BAPI as a Web Service in XI 2.0. </u>
However, despite all my attempts I didn't manage to get this "simple" scenario to work.
My conclusion until now; is that XI 2.0 just does not or is not ready to provide this kind of functionality.
Hopefully in version 3.0  all these shortcomings will be part of the past.
Regards,
Rob.
Message was edited by: rob viana

Hi rob, how are you ?
I have done this at least two weeks, to validate the concept, I had some problems until proceed correctly but, yes, works fine !
First I did import the BAPI_MATERIAL_GETLIST, create 2 data types, one to receive parameters from webservice client and map to BAPI call, and another to get the BAPI response(I have created an sync interface), so, created 2 message types, corresponding to 2 data types, and 1 message interface specifying the outbound and inbound message types.
So, I did create two message mappings, one to map the request to BAPI and another to map the response to client, and a interface mapping to set the request and response with respective mappings and interfaces.
After, I did create the corresponding configuration objects and, in the configuration, I´ve used the menu "Tools/Define Web Service..." to generate a wsdl(I´ve used this option only to check the parameters that will be exposed, and check the endpoint that XI is suggering to be used, I didn´t use the WSDL to call the webservice)- here is a trip: to me, the option mentioned above generate the following address as endpoint: http://:1080/sap/xi/engine/?type=entry,
and the port listed above(1080) is incorrect, the correct value is found at SMICM transaction, looking on Active Services, this is a http port available on this screen(in my case, the correct value is 8030).
The ultimate task is configure the SOAP Adapter to listen the SOAP requests to this interface.
I think that the problem is to find correct documentation, I have experienced many situations where I have a problem to solve and, its very difficult to get a document, help, etc.. that explain how to solve the problem.

Similar Messages

  • BAPIs and Web Services

    Hello, I have the following Question. As I understand it,
    I can setup a Java App to access a BAPI via JCo and SOAP, thus creating a Web Service which can pass on the results to a Client.
    Or I can let XI do the work, which can publish a Web Service, handling communication to the related BAPIs internally.
    Is there any other way to access a BAPI via Web Services, using SOAP and Java?
    I hope this question makes sense, otherwise I would ask you to clarify the issues for me.
    Thank you in advance.
    Felipe Hernandez

    http://help.sap.com -> SAP NetWeaver -> Application Platform -> ABAP Technology -> ABAP Workbench -> Tools or: http://help.sap.com/saphelp_nw04/helpdata/en/d1/802cfc454211d189710000e8322d00/frameset.htm
    and continue Enterprise Services Architecture: Web Service
    Jiri

  • Bapi as web service - required by schema description

    Hello,
    I exposed a BAPI as a web service. Lets take for example the bapi to update / change a business partner. When trying to update for example the first name I have to create a complex type: centralPersonData and I have to create ALL simple types that are subtypes of centralPersonData even when I only want to change one of this attributes otherwise I will get a:
    com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [...] of class [...] must exist and can not be null. This is required by schema description.
    I know that I get this error because the XML element tags are not created when I do not initialize the values. In the moment I initialize all values "by hand" and have to write sometimes about 50 lines of code only to update one value. Is there a better way to solve this?
    Thanks for your answers!
    Felix

    Hi
    Check This URL and you will get some Solutions to your problem
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7c/a4f1b3c59aef4f8ea3c32cda0c0486/frameset.htm
    Regards
    Chandran

  • BAPI as Web Service confusion

    I apologize if this is answered more directly in another post, I promise I looked first.
    I have an ERP 2004 IDES system. (Web AS ABAP+Java)
    I want to access BAPI_PROCORD_GET_LIST as a web service.
    I can generate a virtual interface and a web service definition from transaction BAPI using the wizard. I can then run the Web Services Navigator from my browser, type in the address of the WSDL, and successfully execute a test of the BAPI that returns the orders that match the criteria I set in the test (e.g. all orders in production plant 3100).
    I learned in another thread that the BAPIs also have WSDL available through
    http://<was_server>:<port>/sap/bc/soap/wsdl11?services=<BAPI_NAME_IN_CAPS>&sap-client=<client>
    I can also type this into Web Services Navigator as the address of the WSDL, and it returns a valid service that I can test. However, when I go to run the test, I  can create the request criteria, but the system doesn't return any values - I believe this is because there's no place to specify the sap-client (which should be 800 for the test): in fact, the system makes me authenticate again, and I can only authenticate with a user that is valid for client 000.
    My question is: should I be able to use the second form of the WSDL as a web service, and if so, how do I specify the client information during the service invocation?
    Message was edited by: Michael DePriest

    I need to clarify something from the initial post. During the second web service test I described, as I am executing the test, the system requires me to authenticate even though I already authenticated in order to get the WSDL.
    The first authentication is OK when I provide a username/password that is valid in client 800.
    The second authentication does not accept the client 800 credentials. It will only succeed if I provide a username and password that are valid in client 000.
    As a result I don't get anything in response to the test (there are no process orders in client 000 on this instance).

  • Connect to BAPI with web service

    Hi everyone,
    I am trying to make a web service that call a BAPI and retrieve a result (a table or a structure).
    Is it possible ? If yes, how ?
    Thanks a lot.

    So,
    1st step : create a SAP enterprise connector.
    2nd step : create a portal service ?
    3th step : create a web service.
    4th step : create a proxy and a client.
               In the client, for the example, I wrote :
              JCO.Client jcoclient =
                      JCO.createClient(
                         "CLIENT",
                         "USER",
                         "PASSWORD",
                         "LANGUAGE",
                         "SERVER",
                         "SYSTEM",
                         "GROUP");
              jcoclient.connect();
    It doesn't work. I get this exception :
    com.sap.mw.jco.JCO$Exception: (102)
    RFC_ERROR_COMMUNICATION: Connect to message server failed
    Is it right ?
    Thanks for the help.
    Message was edited by: David Fryda

  • BAPI  - Create Web Services

    I am on ECC 6.0. In my BAPI Explorer (transaction code BAPI) I don't see the "Create Web Services" button. I see all the other five viz. "Business Object Builder" to "Create BAPI List". Do I have to do activate something to get this button. All help is  appreciated  and will be suitably rewarded.
    Thanks

    Hi,
    The problem is because the security setting Adobe (the cross domain policy file) has more control over who has access to your data from a SWF.
    To solve this problem we add our swf in this page:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
    But we want to solve this problem without add each swf to this global security settings.
    We need to know where we can put our crossdomain.xml in the SAP application server?

  • Create BAPI as Web Service

    Hi,
    I have expose a BAPI as a web service.
    Application : PA
    BAPI : EmployeePersonalData
    Method : Create
    When i try to test the web serive with the following test data:
    Employeenumber (String) = 12345678
    Validitybegin (String) = 2001-01-01
    Validityend (String) = 2003-01-01
    It give me the following error:
    =============================================
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 803
    sap-srt_id: 20080128/122539/v1.00_final_6.40/DCCD591434D56BF19BA300145E6770F3
    server: SAP Web Application Server (1.0;700)
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">Deserialisation failed</faultstring><detail><n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates"><MainName>/1BCDWB/WSS0080123034217187000</MainName><ProgName>/1BCDWB/WSS0080123034217187000</ProgName><Line>128 </Line><Valid>X</Valid><ReferenceFault><DescriptionText>Error accessing the ref. node 'EMPLOYEENUMBER'</DescriptionText><RefName>EMPLOYEENUMBER</RefName></ReferenceFault><Caller><Class>CL_SRG_RFC_PROXY_CONTEXT</Class><Method>IF_SXML_PART~DECODE</Method><Positions>1 </Positions></Caller></n0:SimpleTransformationFault></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>
    ============================================
    What wrong with it? Any idea how to resolve this problem?
    Regards,
    Rayden

    Hi Rayden
    It will surely help you.
    Please reward pts if help.
    Deepanker
    Expose BAPI as a Web Service
    1. Go to transaction SE80.Select Function Group from drop down menu; enter the function group in which the BAPI (which is to be exposed as Web Service) comes. You can find this Function Group from function module (BAPI) itself. Go to transaction SE37 and enter function module name (BAPI name) and click on display. You can see the function group here under attribute tab .
    2. Then from Function Modules list choose the BAPI to which you want to expose as a   
        Web Service .
    3. On right clicking on the BAPI a context menu appears. Click on create and Web Service option .
    4. New window will pop up. Click on Continue.
    5. Give the name for Enterprise service and short description. Click on continue.
    6.  New window will pop up.Click on Continue
    7. New window pop up. Click on 'Release service for runtime'. Click on Continue.
    8. This window pops up. Click on Complete.
    9. New pop up window come up asking for Package. Give the package name and click on SAVE button.
    10. New window pop up asking for Request . Give request and click on OK.
    11. New window comes displaying service definition.
    12. Now go to transaction WSADMIN and choose your web service. Go to Web Service menu and choose WSDL option.
    13. New pop up window come.Check on Include SAP Feature in WSDL and click on OK.
    14. Internet browser will be opened and asking for User Name and Password .
    15. After giving values for user name and password, you will get WSDL file opened in internet explorer. SAVE this locally on your computer for further use.

  • BAPI as Web Service

    Hi,
    I published an standard BAPI via SE80 as web service. In SOAMANAGER I configured Service an Endpoint for the WS-BAPI.
    Now there are a few problems.
    Secret  nature 1: The web-Service-Navigator for that binding doesn't work :Fehlercode:ICF-NF-http-c:000-u:SAPSYS-l:D-i:stuekenri52_SQ1_00-v:0-s:404-r:Notfound
    Secret  nature 2: The WDSL document for the binding is malformed. The mendatory parameter "address" is missing.
    - <wsa:EndpointReference xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
      <wsa:ReferenceParameters />
      </wsa:EndpointReference>
    Secret  nature 3:
    I can import the WSDL in Eclipse and generate an Webservice Consumer by ignoring the obove error. The first connet with authentication will work, but while accessing the Bapi I get an "connetion refused"
    12:44:07 [com.sun.xml.ws.policy.EffectiveAlternativeSelector]  doSelection
    WARNUNG: WSP0075: Policy assertion "enableBlocking" was evaluated as "UNKNOWN".
    30.03.2010 12:44:07 [com.sun.xml.ws.policy.EffectiveAlternativeSelector]  doSelection
    WARNUNG: WSP0075: Policy assertion "enableCommit" was evaluated as "UNKNOWN".
    30.03.2010 12:44:07 [com.sun.xml.ws.policy.EffectiveAlternativeSelector]  doSelection
    WARNUNG: WSP0075: Policy assertion "required" was evaluated as "UNKNOWN".
    30.03.2010 12:44:07 [com.sun.xml.ws.policy.EffectiveAlternativeSelector]  doSelection
    WARNUNG: WSP0075: Policy assertion "enableWSRM" was evaluated as "UNKNOWN".
    30.03.2010 12:44:07 [com.sun.xml.ws.policy.EffectiveAlternativeSelector]  doSelection
    WARNUNG: WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN".
    Exception in thread "main" com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused: connect
         at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:134)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:140)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:86)
         at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
         at com.sun.xml.ws.client.Stub.process(Stub.java:248)
         at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
         at $Proxy34.stdmaterialGetintnumber(Unknown Source)
         at de.stueken.ws.TestWSBAPIService.main(TestWSBAPIService.java:32)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)
         at java.net.Socket.connect(Socket.java:469)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
         at sun.net.www.http.HttpClient.New(HttpClient.java:306)
         at sun.net.www.http.HttpClient.New(HttpClient.java:323)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:852)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:831)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718)
         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:896)
         at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:122)
         ... 13 more
    Any suggestions?
    TIA
      Dirk
    Edited by: Dirk Niemeier on Mar 30, 2010 2:56 PM
    Where is my formatting gone? I preview it looks well.

    Hi Dirk,
    A couple of questions... Are you using a the enpoint URL to import the WSDL into Eclipse or you're importing it from your file system? If you're using the endpoint URL, does the URL have WS-Policy in it? If yes, do you need to be using WS-Policies?
    If you don't need to be using WS-Policies, when you specify the endpoint URL for import into Eclipse, replace the 'ws-policy' bit with 'standard' in the URL & check if that makes a difference.
    I always seem to have problems testing webservices with WS Navigator. I now only use SoapUI for testing.
    Regards, Trevor

  • XML Serialization Error- While testing BAPI turned Web service

    I have a requirement to create sales order in SAP R/3 from an e-commerce site. I went through many forums suggesting "exposing FMs into Web Service". I wrapped BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT into one FM and exposed as Web Service. I did a successful test-sequence.
    When I tested the web service without giving values I got a response asking for "Sold-to Party or Ship-To Party". While testing the Web service with some values, I got the below error -
    XML Serialization Error. Object content does not correspond to Schema restrictions of type [urn:sap-com:document:sap:rfc:functions][numeric4].
    The e-commerce team tried to hit the Web service and got the below error-
    IWAB0383E Error validating parameters
    Note: Our servers does not have any ENHPacks. Only ECC 6.0.
    Please suggest what might have gone wrong and how to resolve this.
    Thanks!

    Hi Gourav Khare,
    I have created WSDL file through function module in SAP-ECC 5.0v.
    I have followed below steps:
    Crated FM (SE37)
    Crated Web-service (SE37)
    Generated WSDL file using (WSADMIN)
    And consumed WSDF file in SOAP UI (SOAP UI 4.5.2 Trailer version)
    Problem is: while consuming WSDL file in  SOAP UI I getting  ‘Serialisation failed’
    For your reference I have furnished xml string below.
    SOAP UI Input:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">
    <soapenv:Header/>
    <soapenv:Body>
    <urn:YSDF_INV_PRINT_FINAL_RFC_WS_N>
    <!--Optional:-->
    <PWR_INVOICE>
    <INVOICE_SHIPPED_LINE>
    <!--Zero or more repetitions:-->
    <item>
    <POSITION1></POSITION1>
    <SALES_PART></SALES_PART>
                      <PART_DESC></PART_DESC>
    <PRICE></PRICE>
    <QUANTITY></QUANTITY>
    <CUSTOMER_TAX_NO></CUSTOMER_TAX_NO>
    <PROD_NONINVENTORY></PROD_NONINVENTORY>
    <PROD_TAXABLE></PROD_TAXABLE>
    <TAX_LEVEL></TAX_LEVEL>
    </item>
    </INVOICE_SHIPPED_LINE>
    <INVOICE_NO></INVOICE_NO>
    <ORDER_NO></ORDER_NO>
    <DATE_PRINTED></DATE_PRINTED>
    <DIV_CD></DIV_CD>
                <LAST_COST_INVOICE></LAST_COST_INVOICE>
    <DELETE_ZERO_COST></DELETE_ZERO_COST>
    <DELETE_NON_SHIPPED></DELETE_NON_SHIPPED>
    <GLOBALREF></GLOBALREF>
    <ORIGIN></ORIGIN>
    <ORIGINID></ORIGINID>
    </PWR_INVOICE>
    </urn:YSDF_INV_PRINT_FINAL_RFC_WS_N>
    </soapenv:Body>
    </soapenv:Envelope>
    SOAP UI Output:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Body>
    <soap-env:Fault>
    <faultcode>soap-env:Client</faultcode>
    <faultstring xml:lang="en">Serialisation failed</faultstring>
    <detail>
    <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
    <MainName>/1BCDWB/WSS0130716111624448000</MainName>
    <ProgName>/1BCDWB/WSS0130716111624448000</ProgName>
    <Line>8</Line>
    <Valid>X</Valid>
    <ReferenceFault>
    <DescriptionText>Error accessing the ref. node 'INVOICE_ID'</DescriptionText>
    <RefName>INVOICE_ID</RefName>
    </ReferenceFault>
    <Caller>
                      <Class>CL_SRG_RFC_PROXY_CONTEXT</Class>
    <Method>IF_SXML_PART~DECODE</Method>
    <Positions>1</Positions>
    </Caller>
    </n0:SimpleTransformationFault>
    </detail>
    </soap-env:Fault>
    </soap-env:Body>
    </soap-env:Envelope>
    And one more things are
    I don't know the exact reason, but now the WSDL is working fine. No Idea, will it be consistent.
    No changes in import and export parameters of RFC and no change in code, even if the logic is changed it should not affect the output on SOAP UI but in my case it does.
    Wonder why all this happens, I cannot explain the exact reason technically because my RFC works fine every time, only issue is with SOAP UI.
    From SAP point of view FM is working fine, and input parameter of FM is optional, validations are done by the programming logic and it will capture the message and its details with respect to input data.
    I am not sure SOAP will work consistently and we are using ECC 5.0 most of the t-code not there like "SOAMANAGER" and all.  
    Kindly help me on this
    Thanks & Regards,
       Akshath.L.T

  • BAPI as web service error

    Hi all,
    I am trying to building a web service through SAP XI exposes the function module SAP_WAPI_START_WORKFLOW as a web service, which when executed starts the WS20000391 (Schedule Manager) workflow to start a job. But, i get this error:
    The SOAP response indicates that an error occurred:
    Server Error
    <detail>
            <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
              <context>XIAdapter</context>
              <code>RecoverableException</code>
              <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE:
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:456)
         at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:131)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:848)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
              ]]></text>
            </s:SystemError>
          </detail>
    Plz help me out.
    Thanks,
    Srinivas

    Hi,
    1. Test the web service through using test tool like XMLSpy.And observe
    whether you are getting back the response. And you should deploy the
    XMLspy on the same network where your XI box is present.
    2. If the response is coming back then you can try increasing the time
    out value for the receiver adapter and test it.
    Please refer to the Note: 856597[FAQ XI 3.0 SOAP Adapter]
    How i can configure the time out value of my receiver adapter.
    A: Yes. The default timeout value for outbound calls is 5
    minutes. You can increase this value by setting parameter
    XMBWS.Timeout in the module parameter table of the SOAP adapter.
    The value must be given in milliseconds. For example, value
    600000 represents the timeout value of 10 minutes. This parameter
    is not recognized in systems prior to SP13.
    Check it out,
    regards,
    Jaime

  • Expose a Bapi as web service

    I have seen the link https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4550. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    But I dont understand what is the XIZ_FileSystem and the XIZ. There is any comments about the creation of these business systems.

    Hi Cesar,
    You can find info on creating business systems here..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/c817d9d2296bb2e10000000a1553f6/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/e3bd4f6b61e146ad1384954ecabb41/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/cbeb318b49136ae10000000a1553f7/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e76e511-0d01-0010-5c9d-9f768d644808
    All the best!
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • Web Service Commit (BAPI inside out)

    Hi all,
    I want to use update BAPI through web service which made by Web Service Wizard.
    I know we usually have to use BAPI_TRANSACTION_COMMIT to commit.
    Can I call single web service with commit?
    I found optional configrations in Service Definision (TR- SE80).
    "Configration" Tab=>"Operation Profile".
    commit hundling
    tranaction hudling
    It seems we can commit without BAPI_TRANSACTION_COMMIT.
    I tried several options but it didn't work.
    And I could find any document in help.sap.com and SDN like
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/frameset.htm
    Requirement
    1) We want to use BAPI without rapping.
    2) We want to use Web Service Wizard for BAPI/RFC web service generation.
    Environment
    ERP6.0 NW7.0(SP18)
    Regards,
    Teru

    Teru,
    When the web service is made for the BAPI to update, through the wizard,
    1) the endpoint should be selected as BAPI after giving the service name and short text
    2) Next scree, choose the application and the BAPI you need for update
    3) On the next screen, you have the option to add BAPI commit function to the existing list of methods. There is a pushbutoon which appears at the bottom of the table - BAPI Commit/Rollback
    So, the we service will have the BAPI commit included along with the update BAPI. So you need to invoke only one webservice from your end.
    Hope this helps!!
    Regards
    Deepthi

  • BAPI as a Web Service confusion

    I apologize if this is answered more directly in another post, I promise I looked first.
    I have an ERP 2004 IDES system. (Web AS ABAP+Java)
    I want to access BAPI_PROCORD_GET_LIST as a web service.
    I can generate a virtual interface and a web service definition from transaction BAPI using the wizard. I can then run the Web Services Navigator from my browser, type in the address of the WSDL, and successfully execute a test of the BAPI that returns the orders that match the criteria I set in the test (e.g. all orders in production plant 3100).
    I learned in another thread that the BAPIs also have WSDL available through
    http://<was_server>:<port>/sap/bc/soap/wsdl11?services=<BAPI_NAME_IN_CAPS>&sap-client=<client>
    I can also type this into Web Services Navigator as the address of the WSDL, and after I authenticate to the correct client (in this case, 800), it returns a valid service that I can test.
    However, when I go to run the test, I can create the request criteria, but the system doesn't return any values - I believe this is because there's no place to specify the sap-client (which should be 800 for the test to succeed) and I think the system then defaults to client 000, in which there are no process orders.
    In fact, during this sequence of activity, the system makes me authenticate again, and I cannot authenticate with the same credentials that got me to the test screen (username/password valid in client 800) - I can only get through the authentication with a user that is valid for client 000.
    My question is: should I be able to use the second form of the WSDL as a web service, and if so, how do I specify the client information during the service invocation?

    Hi,
    There is no web service wizard for BAPIs in SAP 4.7 version. BAPIs are already available as web services. One just needs to download the WSDL description of the corresponding BAPI's web service from the Web Service Browser, a BSP application whose URL is of the format -
    http://<host_name>:<port_number>/sap/bc/bsp/sap/WebServiceBrowser/search.html?sap-client=<relevant_client>
    where the first two placeholders can be determined from  transaction SMICM (choose GoTo -> Services).
    To generate the WSDL description for a BAPI from the above URL, enter the name of the BAPI under "Search by Name" field, and press Enter to confirm.
    Note that entries in this field are case-sensitive.
    Links to the WSDL description and the stored documentation are displayed next to the name of the BAPI.
    Regards
    Deepthi

  • Help:  Exposing BAPI's as Web Services in WAS 6.20

    Hello,
    I'm very new to WAS and I don't have access to a development environment yet (network issues).  I was hoping someone might be able to shed some light on the following: 
    I'd like to expose certain BAPI's as Web Services in a way that my .NET client can talk SOAP directly to WAS 6.20 (without having to generate proxies). Is this possible? 
    Also, is there a Web Service Creation Wizard in 6.20 that makes the process of exposing BAPI's simple, similar to the wizard in 6.40?  To date I've been able to navigate the BOR and generate WSDL for the BAPI's that I'm interested in however, this doesn't get me all the way there.  I'm looking for documentation on how to make the Web Service interface for those BAPI's generally available through WAS.
    I'll take anything at this point.  Even a pointer to some documentation.
    Thanks,
    Jay

    Hi Jay,
    Yes, it is possible in Web AS 6.20 to expose BAPIs as Web services. You find the exact documentation of how to do this in the SAP Service Marketplace: http://service.sap.com/connectors. Then go to "SOAP Processor" --> "Media Library". However, the wizard that helps you create the Web service is not yet available in 6.20.
    Regards,
    Susanne

  • Web service enabled BAPI - PI

    Hai,
    How can I find BAPIs for which web service is enabled (to use in Proxy examples, I dont have auth to SICF and related tcodes for activating etc.)
    Regards,
    Bobby

    Hi,
    You can easily expose a  BAPI as Web service.
    Just have a look at following links:-
    1. Web Service Creation Wizard
       [http://help.sap.com/saphelp_nw04/Helpdata/EN/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm]
    2. Steps to Create a Web Service out of a SAP BAPI
        http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    Regards,
    Chandra

Maybe you are looking for

  • Messages are in schedule state

    Hello all,     I done flat file to flat file scenario. In sxmb_moni error showing "scheduled flag for my interface". If i went transaction SMQ2 click on display button then messages are going to showing the status: schedule for out outbound processin

  • How to resize a StageWebView

    Hello, I'm searching for some assistance with StageWebView on Android. The code used to load the page is below. The code works everytime on my Android device and on the desktop emulator. I want to resize a View where is the StageWebView control, but

  • Why does the move tool and the resize function freeze when I insert pictures to a layer?

    This is very annoying. I was stupid enough to buy a one year subscription to Photoshop CC, only to find that it is ruining my happiness. I am trying to run it on a brand new Macbook Pro 15 retina i7 running Yosemite, and everything works fine, except

  • Order reason

    Hi We have few order types in SD. These order types in certain circumstances posts to customers and in few, they post to GL accounts ( when cash pricing procedure is attracted ) Now while entering order, user dont know if it will post to customer or

  • Syncing taking an age

    hey all, been having issues with my iphone - wether it is connected to my imac or my macbook, itunes will spend ages "syncing with iphone" or "verifying". is there any way to stop this from happening? sometimes clearing out the cache will provide a o