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

Similar Messages

  • Have problem when generate Web Service from bapi function

    Dear all,
    Please kindly help me about generating Web Service from BAPI function, It does not success only this attached function.
    I have done so many function without any problems.
    I found 1 case that I use specific variable to be an import/ export then, it can't create as well.
    As for this one, I try so many changes but I can't success it as well.
    This is my function on R/3 4.6C, Dot net connector 2.0, Dot net Frame Work 1.1.
    FUNCTION Z_BAPI_ATTACHMENT_CREATE.
    ""Local interface: Type: Remote-enabled module
    *"  IMPORTING
    *"     VALUE(P_BOTYPE) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_BO_ID) LIKE  BORIDENT-OBJKEY
    *"     VALUE(P_MSGTYP) LIKE  SOFM-DOCTP
    *"     VALUE(P_DOCTY) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_RELTYP) LIKE  BRELTYP-RELTYPE
    *"     VALUE(P_FNAME) LIKE  RLGRAP-FILENAME
    *"     VALUE(P_OBJDES) TYPE  SO_OBJ_DES
    *"  EXPORTING
    *"     VALUE(RETURNMESSAGE) TYPE  CHAR50
    INCLUDE : <cntn01>.
    P_BOTYPE  TYPE  BORIDENT-OBJTYPE DEFAULT 'BUS2105'
    P_BO_ID   TYPE  BORIDENT-OBJKEY
    P_MSGTYPE TYPE  SOFM-DOCTP DEFAULT 'URL'
    P_DOCTY   TYPE  BORIDENT-OBJTYPE DEFAULT 'MESSAGE'
    P_RELTYP  TYPE  BRELTYP-RELTYPE DEFAULT 'ATTA'
    P_FNAME   TYPE  RLGRAP-FILENAME
    P_OBJDES  TYPE  SO_OBJ_DES
    TYPES: BEGIN OF ty_message_key,
    foltp TYPE so_fol_tp,
    folyr TYPE so_fol_yr,
    folno TYPE so_fol_no,
    doctp TYPE so_doc_tp,
    docyr TYPE so_doc_yr,
    docno TYPE so_doc_no,
    fortp TYPE so_for_tp,
    foryr TYPE so_for_yr,
    forno TYPE so_for_no,
    END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line
    WITH HEADER LINE.
    First derive the Attachment's ( MESSAGE )document type.
    p_docty = 'MESSAGE'.
    CASE p_reltyp.
    In case of URls
      WHEN 'URL'.
        p_msgtyp = 'URL'.
    In case of Notes / Private Notes
      WHEN 'NOTE' OR 'PNOT'.
        p_msgtyp = 'RAW'.
      WHEN 'ATTA'.
    Take given parameter e.g. 'DOC', 'PDF' etc.
    P_MSGTYP = 'EXT'.
      WHEN OTHERS.
    ....exit
        EXIT.
    ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    define container to pass the parameter values to the method call
    in next step.
    swc_container lt_message_container.
    Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' p_objdes.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG' 'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In case of URLs..it should be concatenated with &KEY& in the begining.
    CASE p_msgtyp.
      WHEN 'URL'.
      lt_doc_content = '&KEY&http://www.rmtiwari.com' .
        CONCATENATE '&KEY&' p_fname INTO lt_doc_content.
        APPEND lt_doc_content.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
      WHEN 'RAW'.
        lt_doc_content = p_fname.
        APPEND lt_doc_content.
    In case of PC File attachments
      WHEN OTHERS.
        OPEN DATASET p_fname FOR INPUT IN BINARY MODE.
        IF sy-subrc EQ 0.
          DO.
            READ DATASET p_fname INTO lt_doc_content.           "2 of 27
            IF sy-subrc EQ 0.
              APPEND lt_doc_content.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_fname.
        ENDIF.
    ENDCASE.
    'DocumentContent' is a multi-line element ( itab ).
    swc_set_table lt_message_container 'DocumentContent' lt_doc_content.
    Size is required in case of File attachments
    DATA : lv_doc_size TYPE i.
    DATA : l_file_lines TYPE i.
    DESCRIBE TABLE lt_doc_content LINES l_file_lines.
    READ TABLE lt_doc_content INDEX l_file_lines.
    lv_doc_size = ( 255 * ( l_file_lines - 1 ) ) +
    STRLEN( lt_doc_content ).
    swc_set_element lt_message_container 'DOCUMENTSIZE' lv_doc_size .
    Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    swc_call_method lo_message 'CREATE' lt_message_container.
    Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
    data: LO_IS_OBJECT_A type SIBFLPORB. "type SIBFLPORB is unknown, so I
    DATA: lo_is_object_a TYPE borident.
    lo_is_object_a-objkey = p_bo_id.
    lo_is_object_a-objtype = p_botype.
    LO_IS_OBJECT_A-CATID = 'BO'.
    Create attachment BO object_b
    data: LO_IS_OBJECT_B type SIBFLPORB. "type SIBFLPORB is unknown
    DATA: lo_is_object_b TYPE borident.
    lo_is_object_b-objkey = lv_message_key.
    lo_is_object_b-objtype = p_docty.
    LO_IS_OBJECT_B-CATID = 'BO'.
    *TRY.
    *CALL METHOD CL_BINARY_RELATION=&gtCREATE_LINK
    EXPORTING
    IS_OBJECT_A = LO_IS_OBJECT_A
    IS_OBJECT_B = LO_IS_OBJECT_B
    IP_RELTYPE = P_RELTYP.
    CALL FUNCTION 'BINARY_RELATION_CREATE'
      EXPORTING
        obj_rolea    = lo_is_object_a
        obj_roleb    = lo_is_object_b
        relationtype = p_reltyp
      EXCEPTIONS
        OTHERS       = 1.
    Check if everything OK...who cares!!
    COMMIT WORK.
    if sy-subrc = 0.
      RETURNMESSAGE = 'S-Success'.
    else.
      RETURNMESSAGE = 'E-Error'.
    endif.
    ENDFUNCTION.
    Thanks in advance,
    Benjawan
    Edited by: Nitipat Chadchavalpanichaya on Oct 20, 2008 9:02 AM

    There is no any error message show up. It just the class
    Z_BAPI_ATTACHMENT_CREATE  doesn't create autometically as normal. I showed you as below.
    That means I can't call class z_bapi_attachment_create.
    ' <autogenerated>
    '     This code was generated by a SAP. NET Connector Proxy Generator Version 2.0
    '     Created at 21/10/2551
    '     Created from Windows
    '     Changes to this file may cause incorrect behavior and will be lost if
    '     the code is regenerated.
    ' </autogenerated>
    Imports System
    Imports System.Text
    Imports System.Collections
    Imports System.ComponentModel
    Imports System.Runtime.InteropServices
    Imports System.Xml.Serialization
    Imports System.Web.Services
    Imports System.Web.Services.Description
    Imports System.Web.Services.Protocols
    Imports SAP.Connector
      '@ <summary>
      '@ Client SAP proxy class
      '@ </summary>
      <WebServiceBinding(Name:="dummy.Binding", Namespace:="urn:sap-com:document:sap:rfc:functions")> _
      Public Class PRAttachment
        Inherits SAPClient
        '@ <summary>
        '@ Initializes a new PRAttachment.
        '@ </summary>
        Public Sub New()
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment with a new connection based on the specified connection string.
        '@ </summary>
        '@ <param name="connectionString">A connection string (e.g. RFC or URL) specifying the system where the proxy should connect to.</param>
        Public Sub New(ByVal ConnectionString As String)
          MyBase.New(ConnectionString)
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment and adds it to the given container.
        '@ This allows automated connection mananged by VS component designer:
        '@ If container is disposed, it will also dispose this SAPClient instance,
        '@ which will dispose a contained connection if needed.
        '@ </summary>
        '@ <param name="Cont">The container where the new SAPClient instance is to be added.</param>
        Public Sub New(ByVal Cont As Container)
          MyBase.New(Cont)
        End Sub
      End Class

  • 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

  • Web Service Proxy Project Grayed Out in App with All Technologies

    I have created a new application with "No Template [All Technologies]" in Jdev 10.1.3.5.0.4306. I want to create a web service proxy, but there are many choices grayed out, including the web service proxy. The only selection available under the Business Tier --> Web Services is the UDDI Registry Connection. Any ideas on what I need to do?
    I just downloaded JDev 10.1.3.5 from Oracle and I get the same issue.
    Thanks
    Edited by: 878316 on Apr 2, 2012 6:03 PM

    Hi there,
    On your project properties (double click on the project name) go to Technology Scope if you are in 11.1.1.6.0 or Features if you are in 11.1.2.x then select web services, click ok and now when you go to new all your Webservices options should be enable.
    - Juan C.

  • How to perform auth check on Web Service calling BAPI in R/3 via XI?

    Hi all,
    We are running Net weaver PI 7.0 SPS11 and 4.6C R/3 and working on proof-of-concept project using BAPIs exposed on XI as Web Services and called from external SOAP client (MS SharePoint). We got it working fine with HTTPS and SOAP protocol as Sender and RFC Adapter as Receiver to R/3.
    Now we want to add authentication and authorization to this scenario...authentication will probably be SSO and SSL/HTTPS, but we are wondering how to handle authorizations in R/3? RFC Adapter channel is configured with system user, so once BAPI is called this use runs transactions in R/3 and in R/3, where the authorization is checked, we have no visibility which user requested Web service…
    Is there any way we could extract user is from HTTP header and have it dynamically used in RFC Adapter channel config? Or maybe there is another way to handle this?
    Any insights how to resolve this issue will be greatly appreciated.
    Thanks
    Margaret

    We found solution, PP can be configured on XI to have user running transaction known on R/3 backend system, so authorizations can be invoked.

  • Web service response processing inside a BPM

    Hi Experts,
    Please can you let me know if it is possible to achieve the following inside a BPM:
    u2022     Once you getting the web service  SOAP response, determine if itu2019s a SOAP fault or a normal web service response.
    u2022     If itu2019s a SOAP fault, create a retry loop with a wait step inside the BPM to try and retry the process (perhaps 5 times in 1 minute intervals).
    u2022     After the retry intervals, if the message is still in a failed step, force the BPM to go into an error state
    u2022     If the Web Service returns a normal response, log the response inside a database table and end the BPM
    If it is possible, please can you provide an example?
    Thank you,
    Brendon

    Hi
    Have you found the workaround?
    Sorry for refreshing topic. Flag mustUnderstand ='1' in response is unussual thing.
    BR

  • Publisher report with web service data source timing out in browser

    I have a report which calls a web service. Depending on parameters passed the data can take 5+ minutes to return. The report often times out in the browser before data is returned.
    Is there a BI Publisher or OBIEE setting where i can extend the timeout setting?
    easy points!

    Think I found it in report data source settings, nevermind!

  • Creating web service for bapi and consume in portal.

    Hi ,
    I am new to Web Services. This is my requirement I need to publish the functionality of bapi as a web service and consume the web service from portal side.
    I have followed these steps to create web service.In transaction se80 i have created service definiton and a wsdl file is generated.
    When i am exporting that WSDL file and creating a model in a webdynpro project. I am getting the following error. I dont know how to proceed further.Error while loading WSDL.Check error log for more details.
    Whether the proxies need to be generated?What is the purpose of it? Where the proxies need to be generated?
    Is Process integration needed to use web services?
    Kindly guide me how to proceed.
    Best Wishes
    Idhaya R

    the proxy is the object that make possible to use the service; even if service and consumer are on the same host, you need a proxy to use it.
    try to check this blog
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap

  • Web Services from Azure timing out a lot?

    Hi there
    I'm working on some WCF  Web Service based software using Azure Cloud.
    I am frequently finding that it the callbacks time out. Sometimes they run quickly and return and everything is cool and other times they hang and time out and i have to stop and restart my Cloud Services.
    - i usually get this message from my client app. ( a Windows phone 7 in the emulator)
    The HTTP request to 'http://XXXXX.cloudapp.net/XXXXXX.svc' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.
    The work being done is basic database calls (lookups) using Stored Procedures and the web services is (WCF obviously)
    has anyone any suggestions? cheers
    Buzz

    hi,
    Thanks for posting!
    >>The HTTP request to 'http://XXXXX.cloudapp.net/XXXXXX.svc' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.
    According to error message, I guess you may try increasing the timeout values on server and WP client.
    Like this:
    Server config:
    <binding name="customBinding0" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
    On the client:
    <binding name="CustomBinding_DesignOnDemandService" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
    Also, you could refer this code sample:
    http://www.codeproject.com/Questions/174582/HTTP-request-has-exceeded-the-allotted-timeout
    Please try it.
    Thanks.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Are the WLS 9.1 Web Service Ant Tasks ready for prime time?

    I am trying to create a Proof of Concept (POC) for Enterprise and B2B Services at Wendy's Int'l, Inc.
    As part of this POC, I created a WSDL for an in-house service and then used the wsdlc and jwsc Ant Tasks to translate this WSDL to Java classes and ultimately (I hoped) a deployable services.
    In this document, I describe the issues I encountered setting up what I consider to be a simple POC.
    I'll try to attach my WSDL file and build.xml so you can follow along.
    I'll also try to attach my CSS file so you can compare how the generated WSDL appears in the Browser to the way I want it to appear.
    If attachments are not allowed on these forums, then I will wait and see if there is interest in those documents before I paste them under this topic.
    Some preliminary information about my environment.
    Environment:
         Windows XP Pro SP2
         WebLogic 9.1
         Java 1.5.0_04
    Service Name:
         AppRelease
    Note: If I modify my WSDL (perhaps to add a new Operation or to change the definition of an element) and run wsdlc again, the AppReleaseSOAPPortImpl.java file is overwritten For this reason, I implemented my service logic in a class called AppReleaseServiceImple.java.
    Now, for the issues.
    1.     Bug:
    In the WSDL generated by wsdlc, the wsdl:part child of the wsdl:message tag is erroneously prefixed with a colon.
    This occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
    Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
    2.     Bug:
    In the WSDL generated by wsdlc, the wsdl:input and wsdl:output children of the wsdl:operation child of wsdl:portType tag are erroneously prefixed with a colon. Like 1 above, this occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
    Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
    The error message generated by Bugs 1 and 2 is not helpful in diagnosing the problem:
    [jwsc] Error at line:46 col:7 ':' expected [?! -- [CDATA[ ]
    3.     Bug:
    In the WSDL generated by wsdlc, the documentation elements have all of my html elements stripped out, as well as my xhtml and wsdl namespace references. This completely negates one of the best features of the documentation tag, being able to present the WSDL in a browser as a nicely formatted, human friendly document which is also the underlying WSDL that can be viewed when the person views the source document.
    I label this as a bug because it greatly reduces the functionality of the resulting WSDL.
    4.     Annoyance:
    The WSDL generated by wsdlc has all of my comments stripped out, except the comments in the xsd:schema section of the wsdl:types element. I would prefer that all my comments be left in the WSDL, but if comments must be stripped out then I think all of the comments should be stripped out.
    5.     Annoyance:
    The WSDL generated by wsdlc has my CSS specification stripped.
    Work around: I don’t know if adding the CSS back will do any good because I have not yet created a deployable service (see the last issue below).
    6.     Annoyance:
    The WSDL generated by wsdlc has different namespace prefixes than the ones I specified for my application's namespace and for the http://schemas.xmlsoap.org/wsdl/soap/ namespace.
    Work around: Perform a find/replace on namespace prefixes "s0" and "s1" to return them to my prefered values.
    Another thing I can do at this point is simply replace the generated WSDL in the jar file with my original WSDL. This would address issues 1 thru 6 above.
    7.     Annoyance:
    The java source files created by wsdlc are put into a jar file. This makes it annoying when working within a traditional IDE like Eclipse because there is no way to reference the source files within the jar as working source.
    Work around: Extract the source files from the jar and identify the resulting directory structure as part of the source structure of the project.
    8.     Bug:
    The jwsc task complains if the same parameter name is used in multiple operations. I received the following Errors from jwsc:
    [jwsc] C:\IDE\workspace\Acre-WL9.1\AppReleaseSOAPPort.java 0:0
    [jwsc] [ERROR] - Parameter element "{http://acre.services.wendys.com/AppRelease/}garRequest" is not unique across document/literal bare WebService.
    Since the operation names are unique, I see no reason to also require uniqueness in the parameter names used by those operations.
    Work around: Use unique element names for the input parameters of the services operations.
    9.     Bug:
    Once items 1, 2 and 8 above are taken care of, jwsc fails with the following error:
    java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.ApplicationBeanImpl
    This seems to be due to the weblogic.jar file not being in the System Classpath.
    However, I should note that when I set verbose="on" and debug="on" in the jwsc ant task, there was a message from the task which stated "[jwsc] [search path for class files: [big freakin’ jar list]". In the big freakin’ jar list, I did find weblogic.jar and weblogic.jar has the required ApplicationBeanImpl. This indicates to me that the jwsc task does not fully honor either its classpathref attribute, nor an embedded classpath element.
    Work around: Make sure the weblogic.jar is in the System Classpath.
    10.     Bug:
    I fixed bug #9 by running a setDomainEnv script and then ran my ant task. This time I received the following output:
    ant build-serviceBuildfile: build.xml
    build-service:
    [jwsc] 1 JWS files will be processed.
    [jwsc] Processing JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java
    [jwsc] JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java Validated.
    [AntUtil.deleteDir] Deleting directory <some temporary directory>
    BUILD FAILED
    java.lang.ExceptionInInitializerError
    At this point, I am completely stymied about how to proceed.
    I wonder what new issues await once this 10th issue is addressed.
    Really, is this tool set ready for prime time?

    <i>Sorry to hear you are having so many issues with using the WLS 9.1 web service Ant tasks, inside of Eclipse.
    I generally create a User Library for the couple weblogic jars needed, and use it (the User Library) in my Eclipse projects that I create JWSes in.</i><br>
    I also have a separate WebLogic Library in Eclipse (actually 2 libraries since I work with WL 8.1 and now WL 9.1). As you may know, one of the long-standing issues with the Ant integration within Eclipse is the fact that Ant, being an External Tool, does not receive the Project-specific Paths/Libraries. However, since most Java-relevant Ant tasks can take classpath and classpathref attributes, this is usually not an issue. In the case of the BEA-supplied wsdlc Ant task, it is apparent from the verbose/debug console output that wsdlc can see the jars in its classpathref, but it ignores those references when resolving class references and instead only uses the system classpath.
    <p>
    <i>I've only needed the weblogic.jar and xbean.jar, not all the ones you mentioned in an earlier thread of this post.</i><br>
    I have not tried to winnow down exactly which jars are required. I simply included all the jars that exist and were added to the system classpath by the setDomainEnv.bat file created by WebLogic 9.1.
    <p>
    <i>Afterwards, I create an Ant Builder to build the JWS Web Service EAR, as opposed to fiddlin' with Eclipse.</i><br>
    I too use Ant to build my deployable archives. Eclipse is simply my IDE of choice. I validated that all the issues I listed occurred when running Ant from the command line.
    <p>
    <i>If you are interested in how I do it, send me an e-mail (to [email protected]), and I'll send you a zip of one of these JWS projects. The build.xml script for the project, takes care of a lot of the "annoyances" you mentioned, one of which I think is not accurate. I have never had a situation where the wsdlc Ant task "overwrote" my XXXImpl.java file..</i><br>
    Since I'm doing a POC to determine how we want to proceed with developing Web Services and an SOA in general, I tried to perform the same tasks using Axis 2 1.0, the WebLogic 9.1 tools, and XFire 1.1. Overwriting the Impl class is a common failing in the tools which take a WSDL and create Java source files for all three frameworks.
    <p>
    Try my scenario. Add another operation to an existing WSDL, and run the wsdlc Ant Task. The old IMPL class will be over-written.
    <p>
    Because of this, I have a separate Impl class and I make sure that all its methods and annotations match the methods and annotations in the Skeleton Impl class created by wsdlc.
    <p>
    <i>Maybe that's because I use the <exec> Ant task with jar.exe (the xvf options) in my build.xml, to only get what I need out of the .jar/.zip the wsdlc generates. I'm typically only interest in the interface class that my XXXImpl.java file needs to implements, because I use XMLBeans for the input args (and return values) of my web service operations.</i><br>
    Perhaps. I am not using XMLBeans in any of the three frameworks because the resulting service seems to be lighter-weight in all three frameworks if XMLBeans is not used. I'm sure there will be scenarios where XMLBeans is preferred, but I have not encountered that case in this POC.
    <p>
    <i>Regards,
    Mike Wooten</i>
    Thanks for the follow-up.
    Mike McAngus

  • Exposing RFC as a Web Service

    Hello All,
    I am working on a SOAP to SOAP (Backend as ECC where I am exposing an RFC as Web Service). Once the Web service is generated for RFC and the WSDL is imported in PI, I can see that all the fields in different nodes become mandatory.
    Is it how normally Web Service for BAPI works or can this behaviour (mandatory / optional) be controlled ?
    Also when I execute the end to end scenario via SOAP UI, I don't get any error back but also neither get the Return table nor the Sales Order NO. I am using the BAPI BAPI_SALESORDER_CREATEFROMDAT2.
    Can it be because of no COMMIT (The BAPI uses external commit although this reason seems less likely as executing a RFC wo any commit atleast gives me a Sales Order no) ?
    How can this call be analysed in backend ECC system ? (As I assume that messages will not be visible in SXMB_MONI as explained by the Harald's thread below. I am currently in process of getting authorization of SOAMANAGER logs but wondering how it'll help?
    Thanking you in advance.
    SOAP to SOAP scenario: XML messages not visible in SXMB_MONI
    Cheers
    KanesI

    Hi,
    Please see the SOAP ststud..
    http://<host>:5<sys#>00/mdt/amtServlet
    also you might check any error logs.
    The error is because of invalid xml document. So check the validity of the xml message ie. after first mapping i.e Req mapping.
    For this you can refer this -
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    See the below links
    Also this blog may help you-/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    Could not post a SOAP request  to the interface
    Message Servlet is in Status ERROR
    Error while posting messages to SOAP sender adapter SP 13
    http://localhost:50000/XISOAPAdapter/HelperServlet?action=FindChannel&channel=PartyA:SOAPService:soapchannel
    SOAP Adapter in PCK
    Regards
    Chilla..

  • Database Native web services - load balancing,  Instrumentation , security

    Hello –
    I’m proposing use of Database Native web service in our company. Our architects are asking following questions so appreciate your help
    a.     How do you load balance across the DB WS (is there a way to use the F5 to detect downtime and balance the load across the DB servers)? We will be using RAC configuration with 3 nodes.
    b.     Our architect have security concern as user id/password information are in the web service URL, which may prove to be an issue. Is there a way to mitigate this risk?
    c.     Instrumentation in this approach (db native services) is questionable due to development/auto gen of the service logic from the DB itself. We may investigate wrapping the services with OSB to give us an additional instrumentation, policy enforcement, endpoint mediation and security proxy. Thoughts??
    d.     Architect are curious regarding any potential performance issues this may have on the DB server.
    Thanks

    Hi
    We've recently begun using Native Web Services, intending to roll out this approach across the enterprise, but we've encountered 2 significant problems so far, which you may want to consider before proceeding ...
    1. NWS returns an exception if the underlying PL/SQL returns a null value - even if the PL/SQL has completed successfully, and null is a legitimate return value (see SR 3-6201969101 - it contains simple instructions to recreate the problem)
    (I raised it in this forum but there were no replies - SOAP Fault when returning null from a Native Web Service Stored Procedure
    2. The sequence of values returned in the NWS response message is the opposite to the sequence declared in the auto-generated wsdl - i.e. schema validation will fail (see SR 3-6209016991 - it also contains simple instructions to replicate)
    We have coded a workaround for problem 1. where we return <EMPTY> in place of null, and check for it in the client, but without proper resolution we're not prepared to use NWS elsewhere
    As a workaround for problem 2. we removed schema validation, again not ideal
    Both SRs were escalated 9 days ago, but are still outstanding
    Incidentally our database is 11.2.0.1, but I've tested on 11.2.0.3 and both problems are still present
    We also wrap the NWS services using an OSB Proxy Service, and came across the same security issue that you describe (b) - to provide the credentials required for the NWS, simply create a Service Account (containing the credentials) inside OSB and attach it to the Business Service which invokes the NWS (http://docs.oracle.com/cd/E17904_01/doc.1111/e15867/service_accounts.htm)
    HTH

  • Server-Services property called Web Services Listener in Enterprise Server

    I am trying to find out the Server-Services property called Web Services Listener Port inside the Enterprise Server web console..but I cannot find it.. In the BPM manuals it is given that:-
    When using FuegoBPM Enterprise Server, the Port is defined in the
    Web Console as a Server-Services property called Web Services Listener
    Port. Therefore, instead of the default port 9000 used in the Studio,
    the URL is composed by this redefined port.
    Where can I find this inside of the web console?

    I got my answer:-
    For 10g and 6.0 Studio:
    http://{MachineName}:9000/albpmServices/{Projectname}/ws/{Processname}ServiceListener?wsdl=true
    For 10g and 6.0 Enterprise using WebLogic, the URL is similar, but replace the {MachineName} and port number with the WebLogic host and port. And, you will need to replace the {project name} with {engine name}. The Engine name is the BPM engine name shown in the Oracle BPM admin console under Engines:
    http://{WebLogic MachineName}:{WebLogic Port}/albpmServices/{Engine-name}/ws

  • Web Services for Oracle 8i

    Is there any means for the Oracle 8i Platform to implement a Webservice to
    access Business Logic in stored precedures?
    We were evaluating IONA's XML Collaboration Suite and their Oracle Adaptor
    but we are not satisfied with the level of control the adaptor provides.
    Do you have any suggestions?
    Best regards,
    Andreas

    Yes, you can publish stored procedures as Web services. Two approaches:
    1. Check out the new Web services sample that came out the other day, example two where SQLJ is used to wrap a Java class as a stored procedure, the connection is then wired into the generated class and finally it is published as a Java Web service using Oracle9i JDeveloper 9.0.2. See:
    http://otn.oracle.com/sample_code/tech/java/web_services/
    and look at the Tax Calculator viewlet/code.
    2. This is essentially the same way that the OC4J PL/SQL Web service samples work too (using SQLJ to generate a Java PL/SQL proxy), but the OC4J sample (url below), provides a more parametric way to pass the connection information to the proxy by using a parameter in the web.xml file. Check out:
    http://download.oracle.com/otn/java/oc4j/how-to-web-services.zip
    See the readme and work with the sample in plsqlws.zip
    This one is a both better and worse from a developers perspective compared to the first Oracle9i Jdeveloper oriented example. The good part, depending on your perspective, is that it is all command line based (some people like this, some people don't) and uses the longer term approach to publishing stored procedures as Web services for Oracle9iAS with the parameters passed in via the web.xml. The bad part is the example is a little hard to follow because many of the pieces are already created for you rather than explaining how they were created. The first example at least shows pretty much all the steps but doesn't quite elegantly solve the connection problem that the OC4J sample does.
    In July/August, Oracle9i JDeveloper will be updated to publish stored procedures using the Oracle9iAS infrastructure (basically the web.xml fix) ... although once you understand it, it is fairly easy to manually do it inside of JDeveloper.
    Hope this gets you going.
    Mike.

  • Need clarifications on NB Web services

    Hi All,
    We are trying to utilize the web services exposed by the CPO 3.0. However we are stuck with following topics/questions and not able to move forward. The intention of this, is basically to trigger/observe/stop/review activities from a custom portal similar to Cisco Prime catalog. We have referred NB Web Services guide, but it doesn't explain in detail
    Process Level - How to accomplish a custom web service (Our definition of custom is a feature offered as part of CPO but not available as a web service) along with the guidelines of parameterizing techniques which is not been elaborated in the NB_Web Services Guide (available online along with WSDL).Example - Guidelines to create a new web service Process by name startUpdateDatabase(parameter1, parameter2,…... parameter n)
    Instance Level - Development documentation of web service which can give the exact node status of the current instance runningAnticipated return statement similar to currentExecutionNode - (node n) where n is the node ID/name of the requested instance
    Tasks Level - Lifecycle documentation associated to tasksExample - ItilStatus(ItilTaskStatus) - Status of Task (New, assigned, pending, InProgress ….. Etc.,) - Understanding of the complete lifecycle but not just parameters. How to obtain?
    Sample code to perform tasks like InputTask and ApprovalTask which involves user effort (say, approving an action) using web services and when the task is performed by an user, the status of the flow of information changes from assigned to completed.
    Are there any Web Services development guide with examples(Apart from NB Web Services Guide)?
    Any help would be much appreciated . 
    Thank you!
    Regards,
    Eswar

    ok... I'll give it a whirl.
    As a side note, you should be able to use something like SOAP UI if you are trying to easily form the calls. You can use SOAP UI and connect to whatever WSDL in the NBWS you want and it will give you all the methods and you can create sample calls and try them out. This is shown quite a bit in my blogs. For web service work, my blogs are a great place to start.
    Process Level - I believe what you are asking here is how to get something to start via NBWS? In 3.0 you must add the trigger "Started by Web Service". There you can configure the exposed name/method for that web service. After saving your process you must refresh/bounce the web services and then your process will show up in the process WSDL (by default: http://host:port/WS/Process?WSDL). You can then make calls to it.
    I believe you are asking how to find the status of a current process? Or are you asking about the exact status of a CPO node in the cluster? If it's the process, you can use the process instance WSDL @ http://hostname:port/WS/ProcessInstance?WSDL. If you are asking about finding the status of a CPO node, then you can query the DB for that or you could just use the windows activity "Query Service" and query for the CPO Service to be running. You would have to write this yourself but it's quite easy. (in fact I probably have a blog showing it somewhere) There is *NO* webservice to give back the status of a CPO node's service
    Not sure what you are asking about tasks. You can use the NBWS for them in http://host:port/WS/Task?WSDL . The lifecycle of a tasks should meet that of the ITIL model as that is what CPO is patterned after. We do not offer training on this lifecycle, that would be something you would fine with ITIL training. Many of the customers (who are not ITIL trained) only use a couple of status and go with it because it means something to them. IE. Some only used CLOSED to close out tasks, but some used RESOLVED. It's really up to end user determination.
    I would create the task via web service and then update it with the proper information. Again, like I mentioned above, if you need to see samples or the layout of one, then use SOAP UI. It will give you a template layout and then you can fill in the required information. We do not have a sample of every single web call we produce. (since SOAP UI does such a great job) You can also use the WEB SERVICE EXECUTE activity inside of CPO and this gives you inputs to do it directly (although does not give you the soap message like SOAP UI does)
    No. The NBWS guide is it. Use SOAP UI as per above. I have done a numerous amount of blogs that have some information in them and have some examples, but I have not done everything because the use case has not crossed my desk.
    If you have more pointed use case and what exactly you are trying to do we can go into further detail maybe, but the above is a good start.
    --Shaun

Maybe you are looking for

  • Mail sending

    HELP!! I can receive mail but not sent, I get the error message "This message could not be delivered and will remain in your Outbox until it can be delivered. Verify that you have addressed this message correctly. Check your SMTP server settings in M

  • After I updated to iOS 5.1, my iPad2 won't rotate anymore.

    I updated to iOS 5.1. the other day, and my iPad2 won't rotate anymore even if the screen is not locked. I went to service center, and after testing the iPad's accelerometer playing some game, the guy at the service center thought that it is not a ha

  • Converting a Photo to just lines

    Is there away to convert a photo to just line art in illustrator? Thanks, joe

  • Using exsitingOracle infra to secure web services

    Our system currently uses an Oracle RDBMS for security - users and roles are defined within the database. We are now adding web services and EJBs using WLS 8.1. I'd like to leverage the existing security database by either having WLS use it directly

  • Upload .csv with ; delimitor

    Hello , can we handle .csv file with ; (semi colon) delimitor , may be Presentation server ot app server . if so please  provide me the solution thanks