Web service, best practice

Hi,
I would need some oppionions on best practices for a WS interface.
Lets say I have a system with 5 different states on an entity, lets say states are A, B, C, D and E. It is not possible to shange from any state to any other state, there are certain rules.
Shall the knowledge on these transition rules be on the service consumer or in the service itself. What I'm looking for is what kind of operations I shall expose:
setState(State aState)
or
changeToStateA()
changeToStateC()
And so on... In the first case all knowlege of state transitions must be on the service consumer. In the second case this is not needed as the operation will take care of that.
Is there any guidelines on this?
Thanks,
Mattias

services should be idempotent and stateless.
that means that transitions and workflow should be the responsibility of the client.
%

Similar Messages

  • UDDI and deployed Web Services Best Practice

    Which would be considered a best practice?
    1. To run the UDDI Registry in it's own OC4J container with Web Services deployed in another container
    2. To run the UDDI Registry in the same OC4J container as the deployed Web Services

    The reason you don't see your services in the drop-down is because, CE does lazy initialization of EJB components (gives you a faster startup time of the server itself). But your services are still available to you. You do not need to redeply each time you start the server. One thing you could do is create a logical destinal (in NWA) for each service and use the "search by logical destination" button. You should always see your logical names in that drop-down that you can use to invoke your services. Hope it helps.
    Rao

  • Web services - Best practices

    Hello all,
    I have been working my way through 'Core J2EE Patterns: Best Practices and Design Strategies' in preparation for a web services based project I am responsible for delivering.
    Theres just one thing I cannot get my head round. The book identifies a web service broker responsible for dealing with WS requests. However it states its at the integration level. If I have a WS enabled client wanting to communicate with my services, wouldn't the web service broker have to be the first point of contact, almost acting as a Controller?
    Much of this is new to me, so perhaps I am barking up the wrong tree. But any help would be greatly appreaciated
    Kind regards
    Kevin

    Michal
    Can you send me your article or anything you have on web services? I am trying to connect to a .NET server and I'm getting the following error:
    System.Web.Services.Protocols.SoapHeaderException: WSE012: The input was not a valid SOAP message because the following information is missing: action. at Microsoft.Web.Services3.Utilities.AspNetHelper.SetDefaultAddressingProperties(SoapContext context, HttpContext httpContext) at Microsoft.Web.Services3.WseProtocol.CreateRequestSoapContext(SoapEnvelope requestEnvelope) at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope requestEnvelope) at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    I know it has something to do with Axis but I just don't know enough. Is there a way around it? Do you know if WSE 3.0 requires Axis2?
    Thanks for any info you can send my way.
    Steve

  • Web Service best practice question

    Hi ! I'm designing a web service solution and I'm trying to figure out the best way to solve a simple situation. I haver some products at my company which need query by consumers, I need some way to let them provide some sort of unique identifier for the product in order for me to return the product complete description. Unfortunately the products are specific to my company and there is no industry standard to do the search (like an ISBN for books). So I'm considering make an adicional service to just return the products database ID in order to enable the consumer make the actual query using this ID. Is there a better way to handle this situation ??
    Thanks everyone !

    services should be idempotent and stateless.
    that means that transitions and workflow should be the responsibility of the client.
    %

  • Network Services Best Practices

    Hello
    I've been using the Network Services Best Practices document  (27 Sep 2006) for some years now and I wonder if there has been actually an update to it. If not would you guys have any new Network Best Practices document you would suggest? Something that talks about Virutalization, etc.... would be great

    Hi Scott,
    Thank you for posting your issue in the forum.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Best Regards,
    Justin Gu

  • Web Service Best and Worst Practices within Oracle SOA Suite

    Hi All,
    Has anybody got a single document that concisely details the best and worst practices around the design of web services for oracle SOA and BPEL.
    I'm interested the following aspects
    1. Level of Granularity
    2. Level of Reuse
    3. BPEL orchestration. numbers of BPEL process vs services
    4. Transport choices...SOAP vs REST vs Big Services etc
    5. Activity Monitoring with BAM
    6. Future proofing of signatures and ongoing maintenance and process change
    I'm constructing a document myself to share on this forum, but i'd be very interested to use the wisdom of others if somebody has done this before...
    Thanks in advance :)

    This is a question best answered by your Oracle reseller or Oracle account manager to give you all the details but I hope this brief answer helps:
    - The Unified Business Process Management Suite (BPM Suite 11g) includes: BPM Studio, BPM Composer, BPMN Service Engine and Workflow Extensions, BPM Process Spaces, and BPM Process Analytics.
    - BPM Suite 11g requires the licensing of SOA Suite 11g for Oracle Middleware which requires a license for WebLogic Suite.
    - You can license SOA Suite 11g now and license BPM Suite 11g later.
    Since the products are layered, I don't see this cutting into SOA sales at all. My personal view is that BPM on top of SOA is brilliant since it provides easy integration between human and automated tasks, builds on many of the SOA concepts that are key for a successful BPM implementation (functional, not the Oracle product), and uses the same IDE. The synergies extend past easy use of services; the same business rules and human workflow components are used between both products.

  • Office Web Apps - Best Practice for App Pool Security Account?

    Guys,
    I am finalising my testing of Office Web Apps, and ready to move onto deploying it to my live farm.
    Generally speaking, I put service applications in their own application pool.
    Obviously by doing so this has an overhead on memory and processing, however generally speaking it is best practice from a security perspective when using separate accounts.
    I have to create 3 new service applications in order to deploy Office Web Apps, in my test environment these are using the Default SharePoint app pool. 
    Should I create one application pool for all my office web apps with a fresh service account, or does it make no odds from a security perspective to run them in the default app pool?
    Cheers,
    Conrad
    Conrad Goodman MCITP SA / MCTS: WSS3.0 + MOSS2007

    i run my OWA under it's own service account (spOWA) and use only one app pool.  Just remember that if you go this route, "When
    you create a new application pool, you can specify a security account used by the application pool to be either a predefined Network Service account or a managed account. The account must have db_datareader, db_datawriter, and execute permissions for the content
    databases and the SharePoint configuration database, and be assigned to the db_owner role for the content databases." (http://technet.microsoft.com/en-us/library/ff431687.aspx)

  • In house Repair service Best Practices

    Hi,
    I have requirement to work on In-house Repairs for service module. please suggest me best practices id for refering configuration Inhouse repairs service(crm7.0)
    Please help me.
    Thanks & Regards
    kishore kumar

    Dear Kishore,
    Unfortunatelly, SAP CRM Best Bracticies doesn't cover this process. Anyway there are other sources of information. Please refer to these links to read more about In-House Repair:
    http://help.sap.com/saphelp_crmscen70/helpdata/en/3b/15a1d29b7e481987c3b894c4b074de/frameset.htm
    http://help.sap.com/saphelp_crm70/helpdata/en/c4/3d239a23c5484e970558ba67b837d5/frameset.htm
    Arthur.

  • Web application best practice...

    I'm creating a web site with heaps of Flash stuff on it. I'd
    like it to load plenty of information from a database server and
    save plenty of information back again. It's not a vast amount of
    information by the way - i don't need to load video clips and
    things, but there will be loads of different flash resources on the
    site and so plenty of different occasions when there'll need to be
    some loading and saving going on.
    So to the question - what's best to use?
    1) LoadVars? (or XML Object) - I'm pegging this option
    together as I can see that loading some of the info in XML format
    from say an ASP page could be a good idea
    2) Web services? I don't know much about webservices, but
    plenty of big companies seem to be offering them out - google,
    yahoo and flickr for example (- but dya reckon they use them
    themselves?) I realise i'd have to learn something a bit different
    like .net (so maybe VB.net or c# or something any opinions about
    which to go for there too??) or maybe perl or python or
    something...
    3) Flash Remoting? I have bad feelings about this one - i
    don't want to pay for extra stuff if it doesn't do much for me -
    and i understand that with this one i'll still need my server side
    application anyway - so it makes me wonder what the point is? And
    I've also heard that the latest flash version doesn't really
    support it very welll.....
    So does anyone have any thoughts? I'd love to hear some
    opinions... I DO care about performance and I DO care about how
    fussy and complicated the programming will be. My gut reaction is
    that web services are the way to go, because to my naive mind they
    seem like they'll be simpler to code and potentially have less bugs
    and therefore be more reliable. But then I'm not trusting my naive
    mind, I'm asking you clever forum types instead!
    Best Wishes,
    Neil

    I don't think I can offer any definitive advice. Partly
    because it should be based on what your requirements are longer
    term I guess, and (probably mostly) because I don't know that much
    about it myself. I'll share what little I know.
    For flash, in terms of my understanding remoting is the
    fastest/most efficient means of communicating with a service you
    expose on your server , and I'd assume its more scalable as an
    approach longer term. There's the Adobe versions with Coldfusion
    and, I think .net, but there are open source options e.g. AMFPHP as
    well. I think that CS3/as3 will ultimately have no problems with
    remoting - I read somewhere that although the remoting components
    are not there now, flash cs3 can use flex non-visual components and
    also somewhere else that the remoting components are not necessary
    for remoting to be possible (but I guess they make it easier). I
    have no idea whether either is true, but I'd be surprised if long
    term flash cs3 can't do remoting as well as previous versions. The
    amf encoding method that is used for remoting is more readily
    accessible in as3 I think, so I can't see it being a problem.
    There's another framework for a type of remoting based on
    what I assume is some form of XML serialisation called XMLPC , but
    I don't know much about it.
    Both flash remoting and XMLRPC give you the ability to not
    worry about how the data is translated and transferred between
    flash client and server. You just deal with it in the native data
    structures in a similar way to making function/method calls
    locally. LoadVars is great if you just want to transfer name value
    pairs...eg sets of variables, XML is great for transferring
    structured representation of data. I've become more accustomed to
    working with XML as it is and using it as a the basis for my data
    in flash when I need to use it, which saves having customer
    encoding/decoding functions to change the way its dealt with
    locally. This is not always possible or convenient... but with
    XPathAPI in as2 it is a little easier, and I'm looking forward to
    using the new CS3 xml representation.
    LoadVars and XML are also great and if you're starting out,
    and are probably essential in terms of having them as an option
    anyhow so may not be a bad option to begin with just so you're
    familiar with them. I would suggest that you always know how to
    work with these approaches and maybe they'll be enough for you for
    now anyway .
    I know nothing about SOAP or any other type of webservice.
    Don't know if that helps.

  • Configuring AD Sites and Services best practice for multiple office site ?

    Hi People,
    Can anyone here please suggest me or share the link of what is the best practice in configuring the AD Sites and Service for single AD domain with multiple office sites ?
    I'd like to know more about the number and the direction of the connection between Domain Controllers in one site to the Data Center and vice versa.
    Thanks.
    /* Server Support Specialist */

    Hi People,
    Can anyone here please suggest me or share the link of what is the best practice in configuring the AD Sites and Service for single AD domain with multiple office sites ?
    This series can be useful:
    Active Directory Structure Guidelines – Part 1
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • Internal vs. external directory services best practices

    Hello everyone,
    We have two distinct directory services here where I work, one that supports 'internal' needs, and one that is used for external clients, the people who use our web-facing applications. We are limited by the separation of the directory services. E.g., our internal users cannot use the external directory service to look up email addresses.
    I have been asked to look into design options and best practises. Is it common to have distinct services like this? Or are those external users usually part of the same service as the internal users? Is my online banking account information in the same directory service (assuming it is in a directory service at all) as the employees at my bank? Does it make sense to run separate services like this? What are some alternatives?
    Part of the integration problem is AD vs. Sun Directory Server. The external service is in Sun Directory Server and predates AD. The AD service is obviously here for the Windows environment. Some organizations I have worked with in the past used Sun LDAP as the authoritative source of data, and synced in one way or another into AD.
    Any feedback is appreciated,
    Mark

    No, what I am looking for is architectural input regarding the use of AD and a separate LDAP server. In my case I am talking about AD and the SJS Directory Server, but this would apply to any environment that has AD plus some other LDAP server.
    I need to be able to reasonably answer the general question: Why should we keep the SJS Directory Server, when we could just put all our LDAP data into AD?
    I also need to answer the more specific question: Given our LDAP data is external users only (customer, partners), does it make sense to keep them there? Again, why not just put these "external" entities into AD?
    I'm not trying to figure out how to get AD and LDAP to work together. I'm trying to figure out why I have two directories, and why I should or should not keep two directories. I've found nothing online dealing with what should be a very common scenario.
    Mark

  • I'm trying to share photo's via the web.  Best practices / ways to do this?

    I've used Picasa in the past to share photo's via web link with family.  I'm not certain how to do that using iPhoto if avaialble.  Does anyone have any thoughts on that? 

    iPhoto does not support Picasa, however, you can share images from your iPhoto library with Facebook, Flickr, and Twitter.
    With iPhoto open, from the iPhoto menu bar top of your screen, click Share then select one of the three options.

  • Apache Web Server best practices

    I was wondering if there are recommendations for using CPS
    with Apache. Obviously the DAV module should be loaded, should ldap
    be loaded as well. Is there significant benefit to having multiple
    accounts on the web server vs. sharing one and limiting access with
    CPS's LDAP?

    Oracle9iAS includes Oracle HTTP Server, which is based on Apache (with quite a few additions and enhancements).
    HTH,
    Ashesh Parekh
    Oracle9iAS Product Management

  • Periodic task in web container best practice

    Hi All,
    My wep application has to monitor a specific directory on the hard disk for new incoming files (I know about the difficulties here - that's not the problem). Right now I'm planning to write a servlet which does nothing more but create a java.util.Timer in init() and schedule a java.util.TimerTask with it (and of course cancel() the timer in destroy()).
    How would you solve this?
    Uli

    Hi All,
    My wep application has to monitor a specific directory on the hard disk for new incoming files (I know about the difficulties here - that's not the problem). Right now I'm planning to write a servlet which does nothing more but create a java.util.Timer in init() and schedule a java.util.TimerTask with it (and of course cancel() the timer in destroy()).
    How would you solve this?
    Uli

  • What is the best Practice JCO Connection Settings for DC  Project

    When multiple users are using the system data is missing from Web Dynpro Screens.  This seems to be due to running out of connections to pull data.
    I have a WebDynpro Project based on component development using DC's.  I have one main DC which uses other DC's as Lookup Windows.  All DC's have their Own Apps.  Also inside the main DC screen, the data is populated from multiple function modules.
    There are about 7 lookup DC Apps accessed by the user
    I have created JCO destinations with following settigns
    Max Pool Size 20
    Max Number of Connections 200
    Before I moved to DC project it was regular Web Dynpro Project with one Application and all lookup windows were inside the same Project.  I never had the issue with the same settings.
    Now may be becuase of DC usage and increase in applications I am running out of connections.
    Has any one faced the problem.  Can anyone suggest the best practice of how to size JCO connections.
    It does not make any sense that just with 15-20 concurrent users I am seeing this issue.
    All lookup components are destroyed after its use and is created manually as needed.  What else can I do to manage connections
    Any advise is greatly appreciated.
    Thanks

    Hi Ravi,
    Try to go through this Blog its very helpful.
    [Web Dynpro Best Practices: How to Configure the JCo Destination Settings|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID2054522350DB01207252403570931395End?blog=/pub/wlg/1216]
    Hope It will help.
    Regards
    Jeetendra

Maybe you are looking for

  • ITunes stops working when watching videos

    I use Windows Vista (32 bit). I use iTunes regularly, and have been for years. All of the sudden last week, when I would try to play a TV episode, it would stop working. I tried redownloading iTunes. It works until I turn my computer off and turn it

  • What can i do to install my kodak printer when it says installer quite unexpectedly.

    What can i do to install my kodak printer when it says that the installer quite unexpectedly?

  • Problem with materialized view

    Hello!!! In order to see how materialized views work , I executed the following script in SCOTT schema: create materialized view log on emp with rowid (job,sal) including new values; create materialized view emp_mv build immediate refresh fast on com

  • Hello experts! Pls suggest me to choose next level of- (abap - 4+ exp now)

    Hello experts! Now i have 4+ years of expereience in ABAP.Everything is going on fine.But my worry is about ABAP loosing it's value in sap.It's quite difficult in future to survive only with the ABAP.ABAP person will not be in a demand.When i discuss

  • Hyperion Analyzer 7.2.5

    I am seeing a method in the API to close current report or a specified report by name<BR><BR>To close the current report:<BR>run("CloseReport", "", "", "", "");<BR>To close a specific report:<BR>run("CloseReport", "/Users/Reports/ReportName", "", "",