Best practice for web service call

I can add a web service using the standard data connection wizard - works fine. I also can do it all in Javascript which give me a bit more flexibility. Is there some guideline or wisdom for which is best?

It all depends on your requirement..
For example, if you know your webservice address at design time itself, then it would be better to put in the data connection tab.
But if your webservice address changes at run time based on the environment your application is deployed in, then you can use the java script code to change the webservice address dynamically.
Thanks
Srini

Similar Messages

  • Best practices for search service in a sharepont farm

    Hi
    in a sharepoint web application there is many BI dashboards are deployed and also we have plan to
    configure enterprise search  for this application.
    in our sharepoint 2010 farm we have
    2  application server s
    2 WFE servers
    here one application server is running
    c.a + webanalytics service and itself is a domain controller
    second application server is for only running secure store service+ Performance point service only
    1 - here if we  run search server service in second application server can any issues to BI performance and
    2 - its best practice to run Performance point service and search service in one server
    3 -also is it  best practice to run search service in a such a application server where already other services running
    and where we have only one share point web application need to be crawled and indexed with  below crawl schedule.
    here we only run full crawl per week and incremental crawl at midnight daily
    adil

    Hi adil,                      
    Based on your description, you want to know the best practices for search service in a SharePoint farm.
    Different farms have different search topologies, for the best search performance, I recommend that you follow the guidance for small, medium, and large farms.
    The article is about the guidance for different farms. 
    Search service can run with other services in the same server, if condition permits and you want to have better performance for search service and other services including BI performance, you can deploy search service in dedicated server.
    If condition permits, I recommend combining a query component with a front-end Web server to avoid putting crawl components and query components on the same serve.
    In your SharePoint farm, you can deploy the query components in a WFE server and the crawl components in an application server.
    The articles below describe the best practices for enterprise search.
    https://technet.microsoft.com/en-us/library/cc850696(v=office.14).aspx
    https://technet.microsoft.com/en-us/library/cc560988(v=office.14).aspx
    Best regards      
    Sara Fan
    TechNet Community Support

  • SAP Best Practice for Self Service Procuement

    Hello All,
    I am trying to find Best Practice for Self Service Procuement in the help.sap.com.
    But I couldn't find them. Please help me to locate.

    HI Chek these below links if usefull for you
    http://www50.sap.com/businessmaps/59E32671A32A411692387571253E292A.htm
    help.sap.com/.../SAP_Best_Practices_whatsnew_AU_V3600_EN.ppt
    www50.sap.com/.../DADF68FA02AB4E0482021E98D8BB986F.htm
    Thanks,
    Batchu

  • Best book for Web Services

    Can you suggest me what's best book for Web Services and XML to study? I'm planning to buy..
    Thanks in advance..

    Why does it need to be the best one? What would that even mean? Just buy something reputable, like an O'Reilly book, it's not going to be so horrifically poor that you can't learn from it

  • Best Practices for Using Service Controller for Entity Framework Database

    I'm running into an issue in my first time creating a Web Service with a .NET backend with Azure. I designed a database in Entity Framework and had it create the models, but I couldn't create a controller for the table unless I made the model inherit from
    EntityData. Here's the catch, the Database Model has int Id, but EntityData has string Id, so, of course, I'm getting errors. What is best practice for what I'm trying to do?
    Michael DiLeo

    hi Michael,
    Thanks for you posting!
    Sorry for I am not totally understanding your issue. Maybe two points need your confirm:
    1. I confuse with the "Service controller"? IS your meaning MVC controller? Or ServiceController(http://www.codeproject.com/Articles/31688/Using-the-ServiceController-in-C-to-stop-and-start
    2.whether  The type of ID in the model is match to the database ? In other words, Is the type of IDin .edmx matched to the database?
    By the way, it seems that this issue is more related to EF. You could post this issue on EF discussion for better support.
    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.

  • Best Practices for JMS Service Documentation

    Our software consists of a variety of JMS producers and consumers used to transform and transmit business to business messages on a large scale.
    The service nodes do a variety of things, and we've had trouble over the years ensuring every queue-based service clearly identifies the parameters and payload it accepts, so that everyone from programmers to system administrators can easily see what services are available and how they are to be used.
    Some have advocated always adding a web service in front of each message-based service to guarantee interface contracts are all well publicized. I think there are reasons to choose web services and reasons to choose message-based services, and am not convinced this is the right answer to address limitations in expressing the design contract for a message-based service. That said, I really like what we've been able to do with self-documenting web services based on annotations, and wonder if there's a conceptual equivalent in message-based software.
    What are your best practices for ensuring your message-based services are as self-documenting as your modern web service?
    Thanks in advance for your advice!
    Edited by: lsamaha on Apr 16, 2012 11:46 AM

    *bump                                                                                                                                                                                                                                                           

  • Best Practice for the Service Distribution on multiple servers

    Hi,
    Could you please suggest as per the best practice for the above.
    Requirements : we will use all features in share point ( Powerpivot, Search, Reporting Service, BCS, Excel, Workflow Manager, App Management etc)
    Capacity : We have  12 Servers excluding SQL server.
    Please do not just refer any URL, Suggest as per the requirements.
    Thanks 
    srabon

    How about a link to the MS guidance!
    http://go.microsoft.com/fwlink/p/?LinkId=286957

  • Communication Warnings for Web Service Calls

    The Flex 3 documentation states:
    "SWF files that are assigned to the local-with-networking
    sandbox forfeit their local file access. In return, the SWF files
    are allowed to access data from the network. However, a
    local-with-networking SWF file is still not allowed to read any
    network-derived data unless permissions are present for that
    action, through a cross-domain policy file or a call to the
    Security.allowDomain() method."
    However, when we embed an SWF with a sandbox type of
    local-with-network in a PDF file, when that PDF file is read off
    disk we get a large volume of warning dialogues -- one for each web
    service call that the Flash makes. Since the SWF is
    local-with-networking, we assumed that these communications were
    allowed but the prompts create a very poor user experience. We have
    an appropriate crossdomain file set up. What else do we need to do
    to avoid these prompts?
    Terry. ([email protected])

    Folks, any thoughts?
    I appreciate your help.
    praveen

  • Highly Required CRM 5.0 Best practices for CRM Service Module

    Dear all,
    I have been searching for CRM 5.0 version best practices in Internet quiete a long period, but could not find anywhere.
    currently SAP is providing only best practices for SAP CRM 2007 version.
    since most of configuration is differing because of Webclient Interface, I request you to refer a source from where I can get the CRM 5.0 Best Practices for Service module.
    Your suggestions and help will be highly appreciated.
    Best regards
    Raghu ram

    Hi Srini,
    <removed by moderator>
    Thank you & Best regards
    Raghu ram
    Edited by: Raghu Ram on Jul 16, 2009 6:09 AM
    Edited by: Raghu Ram on Jul 16, 2009 6:11 AM
    Moderator message please review the rules of engagement located here:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/rulesofEngagement
    Edited by: Stephen Johannes on Jul 16, 2009 8:12 AM

  • System processes needed for web service call

    Hi experts,
    one theoretical question: how about the system processes needed for a web service call? If have created a test service that does nothing except to wait for 10 seconds. When I call it from outside, no extra process is busy (as seen in trx SM50). Is it possible that one web service call (from outside -> SAP machine) does not need a DIA or BTC process on SAP machine?
    Thanks in advance for your help!
    Kind regards, Matthias

    Hi,
    Of course a web service needs a dialog workprocess to run.
    But if you used the "wait" abap instruction, it may be that this instruction frees the work process ?
    Regards,
    Olivier

  • Object store for web service call?

    Hi all,
    If I can't do synchronous web service calls I remember
    reading something about an object that you can send with the call
    containing attribute you set and it will be included in the
    callback. I can use this to store some info I need for the call
    back on the client side.
    I cant find info about this object now despite searching high
    and low. If this object exists what is it called (callbackStore?)
    thanks
    Mark

    Hi Mike,
    Good news!!! I figured out what's happening.
    The codes that I posted were related to the Process. They are process status codes.
    What you are looking for is related to the Job. So here are the job status codes.
    JOB_STATUS_UNKNOWN = 0 (default)
    JOB_STATUS_QUEUED = 1
    JOB_STATUS_RUNNING=2
    JOB_STATUS_COMPLETED=3
    JOB_STATUS_FAILED=4
    JOB_STATUS_TERMINATED=5
    JOB_STATUS_SUSPENDED=6
    JOB_STATUS_COMPLETE_REQUESTED=7
    JOB_STATUS_TERMINATE_REQUESTED=8
    JOB_STATUS_SUSPEND_REQUESTED=9
    JOB_STATUS_RESUME_REQUESTED=10
    cheers,
    Parth

  • StatusCode values for web service call?

    I am trying to check the status of a long-lived service using a web service call from a .NET application. I therefore don't have access to the java libraries where the StatusCode constants (enumerations?) are defined. Can someone either tell me a .NET library I can reference in order to use the constant values, or at least tell me what the integer values are, and I can make my own constants.
    In case it wasn't cIear, I am using webservice_invokeStatus( jobId ).
    Thanks,
    Mike Gates

    Hi Mike,
    Good news!!! I figured out what's happening.
    The codes that I posted were related to the Process. They are process status codes.
    What you are looking for is related to the Job. So here are the job status codes.
    JOB_STATUS_UNKNOWN = 0 (default)
    JOB_STATUS_QUEUED = 1
    JOB_STATUS_RUNNING=2
    JOB_STATUS_COMPLETED=3
    JOB_STATUS_FAILED=4
    JOB_STATUS_TERMINATED=5
    JOB_STATUS_SUSPENDED=6
    JOB_STATUS_COMPLETE_REQUESTED=7
    JOB_STATUS_TERMINATE_REQUESTED=8
    JOB_STATUS_SUSPEND_REQUESTED=9
    JOB_STATUS_RESUME_REQUESTED=10
    cheers,
    Parth

  • Best practice for Web Dynpro for Java to connect to SAP HR

    What is best way to connect Web Dynpro for Java application deployed in SAP portal to connect to SAP HR ?
    Is it good practice to connect to underlying SAP database ( eg oracle) directly to get the data or is there a better way ?
    This below article describes to connect to external DB, however Is there any other way for  SAP HR ?
    http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproApplciationwithDatabaseMS+Access

    Hi,
    There are 2 supported ways :
    First is  to use JCO connections to call abap RFC enabled function modules. (BAPIs for example)
    Second is to call SOAP web services (HR enterprise services for example)
    You should never access directly database tables...
    Regards,
    Olivier

  • Best practice for implementing services

    I am doing some testing with implementing webservices and i am wondering what it the best way...
    First some background about the project. The idea is that the user interfaces uses webservices for almost everything. The complete datalayer is created somewhere else and i just use those services. For example i have a WSDL that holds the UserServices. It describes the service for creating,updating,deleting, getUserByCompany, getUserByKey and some other stuff.
    As far as i can see, i have 2 options in JDev
    1) Create a datacontrol based upon the WSDL. This way i can easily drag&drop the services and use the databindings.
    I'm afraid that this approach is not that flexibel. It isn't realy easy to update the DC once the WSDL has been changed.
    I have a popup to edit/create a user. It also does not seem easy to implement this because when i open the popup for create, my input fields should be bound to the parameters for the createService but when i open the popup to edit a user, those fields should be bound to the editService instead. This does not look easy...
    Also, the table that lists the users depends on the role of the user. When an admin request the page with the user table, he must see all the users but when another user request the page, he can only see the users from his company so we have 2 services for this: getUsers (gets all the users) and getUsersByCompany so here also, my table can be bound to 2 services... Does not seem to be easy to implement.
    2) The second way of implementing services is using a proxy. This seems way more flexible. I just creates a java interface to call the service. This way i can create my own pojo's and create a DC from that.
    This way i can create a function getUsers(String company). When i drop that to my page, i can bind the company parameter to a backing bean. THis way i can write some logic in the pojo based upon the value. If company is null i return the result of the getUser service, else i use the getUsersByCompany service instead.
    It's also very easy to regenerate the proxy if the wsdl has been changed. Somethign that isn't possible with the first way.
    What do you do when you use webservices this way? If their any difference in performance?
    Any other tips.

    You got it basically right.
    With the proxy approach you write get code that wraps your calls to the Web service - and this allows you to do various modifications on how the service is called, what to do with the results etc.
    However check out this example to see how you can use the same result set in a Web service data control for both a query and an update/insert:
    http://blogs.oracle.com/shay/2010/05/updateinsert_with_adf_web_serv.html

  • Sample java code for web service calling

    Hello,
    I need to call the web services for adding/updating records on Oracle On Demand Entities.
    In particular i need a sample code in java language that explain how to append the sessionid
    to the SOAP request when calling the web service.
    thanks in advance.

    Hi,
    Each time you perform any SOD Operation after Login, ensure have your JSessionId attached to your actual Web Service URL like in example below
    wsLocation ="https://secure-XXXXX.crmondemand.com/Services/Integration";
    jsessionId="8d928e8330d53c6f954b16194731bad78f5f111c2043.e34PaxyNchuLe34Rax4SchaKchz0n6jAmljGr5XDqQLvpAe";
    String url=wsLocation + ";jsessionid=" + jSessionId;
    Use this url for all your future SOD Operation till you logout.
    Regards
    Deepak H Andeli

Maybe you are looking for

  • Retained earning carry forward

    Dear All For the fiscal 2008 the FAGLGVTR has been run , but the balance of aclculated profit is not been C/F to Retained earning account Pls guide Regards Veena Kunthe

  • Guides, cropping, scaling and accurate video placement

    I'm disappointed with the apparent lack of tools to accurately place videos (pip) within a 1080p (or otherwise) sequence. I have a 1080p sequence, and four 720p videos that I want to crop and then scale and position to fit each quadrant of the final

  • Need BOM related solution for Textile Industry (Weaving proces)

    HIi, Made to Order Strategy: Every times customer sends the specification of product. Specification format as given below: Ex. 80x100/154x80*3-118u201D 4/1 Twill Details of specifications:      80: Count of EPI (Ends Per Inch)      100: Count of PPI

  • Dynamically Populated Option Sets in CRM 2013

    Hello, In my solution, I have an entity with an option set attribute that has no option values by default. A script in the entity form handles the population of the option set dropdown via .addOption. The displayed value of the attribute shows blank

  • Why can't i use the facebook chat application on m'y iPad 2 ?

    i have a MacBook and i often use the Facebook chat system with m'y fb friends. I tried to use the same application but it's not possible. how can i chat on fb with my ipad2