How To Develop a Simple WebService App XI Scenarios

Hi,
How can I develop A simple Webservice for any scenario, for example, if am doing File to file scenario, and i want to develop a Webservice for the same scenario,
I think in ID we have an option Under Tools "Define Webservice" where in we can use wsdl format of the message interfaces.
How should i proceed to develop the Webservice?
Regards,
Varun

Hi Varun,
After creating the wsdl file u can deploy using MS visual studio.
Follow the steps and run the scenario.
use it in a Client Program in .NET : (assuming Maths as the WSDL and Webserice name)
1.) Place maths.wsdl in C:/Sample/ folder
2.) Open Visual studio command prompt using the Start Menu
        Start->Programs->Microsoft Visual Studio 2005->Visual Studio Tools->Visual Studio 2005 Command Prompt
3.) In the Command prompt go to that directory
    > C: 
    > CD\
    > CD Sample
    > wsdl maths.wsdl /out:"c:\sample"
4.) The previous step will create a file called Maths.cs , go to that folder and confirm this
5.) Open Microsoft Visual Studio 2005, open the Client application where this webservice needs to be called
6.) If your Client application is a web application, the see if the website has a folder called "App_Code"
    If not then create this folder. Right Click on this folder and click on "Add Existing Item"
7.) Browse to C:/sample and select the Maths.cs file
8.) If your client is a Desktop application , just add this file in a similar manner to the project(no need of creating any folder)
9.) After the file gets added, open Maths.cs file
10.) Add a namespace to it for convinience
        eg:
            namespace SAP
   This should come before the Class Declaration and close it after the class
    eg: See the red lines
    namespace SAP
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name = "Equi_get_NotifBinding", Namespace = "http://Equipment_Get_Notifications")]
    public partial class Equi_get_NotifService : System.Web.Services.Protocols.SoapHttpClientProtocol
      functions....
11.) Save the Maths.cs file
12.) Open the Webform or windows form code where this webserive will be called
13.) The webservice will now be available here under the SAP namespace
        so when u type "SAP." u will get all the classes in it.
        Add credential in this code as shown below
    eg:
    private void GetNotifications()
        try
            SAP.Equi_get_NotifService ser1 = new SAP.Equi_get_NotifService();       //This is the Webserive Proxy class
            SAP.Equi_get_Notif_Request req = new SAP.Equi_get_Notif_Request();      //Request Class
            req.Equipment = SAPID;
            req.Date = Calendar1.SelectedDate;
            System.Net.CredentialCache ch = new System.Net.CredentialCache();                                    //Adding Credentials for authentication on webservice server
            System.Net.NetworkCredential cr = new System.Net.NetworkCredential("xisuper", "infotech");
            ch.Add(new Uri(ser1.Url), "Basic", cr);
            ser1.Credentials = ch;                // Assing this Credential to the ProxyClass.Credentials property as shown here
            SAP.Equi_get_Notif_ResponseNotifications[] res = ser1.Equi_get_Notif(req);        //Call the webservice, res is the responce object
            GridView1.DataSource = res;
            GridView1.DataBind();
        catch (Exception ex)
            Response.Write(ex.Message);
"Award points if it is helpful"

Similar Messages

  • How to develop a simple plugin for adobe illustrator cs2 using xcode on mac os

    I would like to know the steps to develop a simple plug-in for adobe illustrator cs2 using xcode on mac OS...anything like a dialog box displaying "hello World"... I m new to MAC OS...Please help...
    Thanks in advance

    Get the SDK and start playing with the sample plug-ins. Asking for something as general as "how do I get started" is asking a little much from this forum :) Try your hand at the SDK and come back to ask more specific questions as you run into them.
    Bear in mind that this isn't an Xcode forum either, though I'm sure there are places to get good help on that!

  • How to develop a Facebook Chat app with Facebook Chat API

    My requirement is to develop a Facebook chat app which is like FB Messenger.So how can i do that is it possible to do that ?
    Dileepa S. Rajapaksa
    Trainee Developer
    Microsoft, Sri Lanka
    Twitter : @dsrajapaksa
    Blog : http://www.dileepatech.net

    sure you can. You need to use their api:
    https://developers.facebook.com/docs/graph-api/reference/v2.2/message
    any specific questions? not sure what you looking for
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • Problem in developing a simple ejb app

    Hi readers,
    i am new to ejb technology, so have doubt in developing and deploying a simple ejb application
    i am using EJB 2.0, JBOSS 4.0 , eclipse 3.2 and java 1.5
    i searched in the net , got through many materials that can guide to develop one of it.
    all are using higher versions of the above, i mean, using ejb 3.0 or using xdoclet etc.
    i am need of material which guides me to develop and deploy the ejb application using the same versions of softwares step by step.
    please help me in this

    Hi readers,
    i am new to ejb technology, so have doubt in developing and deploying a simple ejb application
    i am using EJB 2.0, JBOSS 4.0 , eclipse 3.2 and java 1.5
    i searched in the net , got through many materials that can guide to develop one of it.
    all are using higher versions of the above, i mean, using ejb 3.0 or using xdoclet etc.
    i am need of material which guides me to develop and deploy the ejb application using the same versions of softwares step by step.
    please help me in this

  • How to develop a simple HMI in LabView

    Hello,
    I need to develop a very simple HMI for TestStand. This HMI must only show some IDs of the DUT and the Name and Result of the step actually running.
    The language I know best is LabView, so I would like to write this HMI in this language.
    I looked at the examples shipped with Test Stand, but I can't get the "general idea" behind their functioning.
    So my question is: can someone of you indicate me where I can find something like a tutorial or a brief descriptions of available APIs or a simple example just to get some inspiration?
    Or maybe the answer is a big red RTFM and I can only study deeper available examples?
    Thanks,
    Andrea

    Hello,
    The simple Operator interface is the simplest example available... You've got to start here.
    TestStand API is far from behing simple.
    TestStand reference manual and the poster API are a good place to start.
    Regards,
    Rodéric L
    Certified LabVIEW Architect

  • How to develop a simple software like LEGO NXT2.0

    hello,
    I want  to devolop a simple software like LEGO NXT2.0,which can program easily by drag and drop.Now,I have downloaded  to LM3S8962
    Evaluation Board .Code as follow: ,but I want to relize this program like LEGO NXT2.0,not on  block diagram.can you help me.thanks.

    Get the SDK and start playing with the sample plug-ins. Asking for something as general as "how do I get started" is asking a little much from this forum :) Try your hand at the SDK and come back to ask more specific questions as you run into them.
    Bear in mind that this isn't an Xcode forum either, though I'm sure there are places to get good help on that!

  • Developing WebHelp for Different App. Scenarios

    We are developing WebHelp projects for several of our
    Web-based applications. One of our applications has a unique set
    up, and I am not certain how to approach creating the Help system.
    The application, "Simple", has a menu that allows users to
    access another application "Simon", if they have opted for such a
    configuration. Basically, the user would have to purchase both
    Simple and Simon. In this scenario, the Simple WebHelp would only
    contain a subset of topics from the Simon WebHelp. There are cases,
    however, where customers would only be using Simon, and would not
    have access to Simple, unless they upgrade.
    For the Simon application, users need to have access to that
    Help, exclusively.
    One option is to develop separate WebHelp: A complete system
    for Simple and a complete system for Simon. For the Simple/Simon
    application combination, maybe we could use conditional build tags
    for the relevant, imported Simon topics. But then, we would have
    duplicate data. How do we account for the Simple/Simon scenario?
    For a software upgrade from Simple to include access to Simon, how
    to we create the Help so that both Help contents are addressed (so
    that there is some "trigger" that knows an upgrade has happened and
    the correct Help displays). Can we have one merged Help system that
    can have conditional tags for: Simple Help only, Simon Help only,
    and Simple with a subset of Simon topics only, and that this one
    Help file can be attached to the application, and when there is an
    upgrade, the appropriate Help will display? If so, what is the
    recommended approach for this? THANK YOU FOR YOUR HELP!

    Just FYI: I work with a project very similar to the scenario
    you describe. All of our subscribers use our software to collect
    and store data. All of them also have access to a subscriber-only
    website. Some of the subscribers use desktop-based software and a
    SQL database to store data; others use Internet-based software and
    our servers to store data. The Internet-based software is housed
    within the subscriber-only website. So all users can access the
    website, but the Internet-based users have access to a wider range
    of options.
    Accordingly, the Help project for the subscriber-only website
    has four conditional build tags:
    1. Internet-only
    2. Desktop-only
    3. Print
    4. Online
    The Desktop-only and Print tags are used at the content level
    (i.e., to mark text within a topic); the Internet-only and Online
    tags are used at both the content and topic levels. This allows me
    to produce four seamless outputs:
    1. Printed documentation for desktop users (excludes
    Internet-only and Online)
    2. Printed documentation for Internet users (excludes
    Desktop-only and Online)
    3. WebPro output for desktop users (excludes Internet-only
    and Print)
    4. WebPro output for Internet users (excludes Desktop-only
    and Print)
    The WebPro outputs are published to an instance of
    RoboEngine; each contains a link to the appropriate printed
    document. The subscriber-only website picks up on the user's
    software type at login, and the link to the Help system changes
    appropriately. (Note that I didn't have anything to do with that; I
    simply explained the situation to our Web developer, and he made
    the necessary coding changes.)
    The bulk of the work involves setting up the build tags and
    outputs and thinking about how you need to approach your content.
    Ultimately, however, the tags provide a lot of flexibility without
    the need for duplication.

  • Developing Simple Chat App in ADF

    I have JDev 11.1.2.1.0.
    Can anyone provide any references to develop a simple chat app?
    I want it for:
    Two PCs connected together over a LAN.

    Hi,
    You would probably use Active Data Service, see here for an example of a simple Google Talk client: http://www.oracle.com/technetwork/articles/jellema-googletalk-094343.html
    Documentation: http://docs.oracle.com/cd/E24382_01/web.1112/e16182/adv_ads.htm#BEIDHJFD
    Regards,
    Joonas

  • Need help on how to create the simple mapping using ORACLE DATA INTEGRATOR

    Hi guys,
    am new to learn odi.. please share me or steps how to develop the simple mapping using ODI...

    Hi,
    I am a newbie to Oracle Data Integrator as well. You should have a look here first; http://www.business-intelligence-quotient.com/?p=379
    Try to play around with ODI and then come back if you have specific questions. You should better move to this ODI-forum; Data Integrator
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • Error in running a simple JSF app developed in Jdeveloper over weblogic

    I have a developed a simple JSF application using Jdeveloper 11g.
    To this application i have added a webservice proxy which generates the proxy client which communicates with the peoplesoft webservice.
    when i run the standalone proxy class, it is able to connect to the webservice and get the required data.
    But as i deploy the whole JSF application (where the managed bean calls a method in the client) in Integrated weblogic server, i get an XMLStreamReaderException.
    To debug this issue i deployed the war file in apache-tomcat6.0.26 with all the reqquired libraries in the Lib folder, it actually worked , my jsf application was able to get the data from the webservice.
    This makes me think that there is some problem in the way Jdeveloper is packaging the application.I have added all the lib & jar through "libraries &classpath" setting on project properties.But i am sure there is some problem in this process.
    I just need some help in understanding how to package an application,how to make sure all lib & jar are included in the war file??
    Any help is appreciated.
    The error i get in the weblogic is
    com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    avax.faces.el.EvaluationException: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    at javax.faces.component.UICommand.broadcast(UICommand.java:387)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227
    thanks in advance
    Ash

    HI
    First of all, how do you concluded that you're dealing with packaging problem?? It seems problem is in response from web service. The toolkit you have is not able to parse the soap response. Tomcat solves problem probably because of the different jars he has for web service client.
    In either way, i have personally experienced problems with JD packaging (11g). The WAR created by JD was working well in embedded WLS shipped with JD, but when deployed to production WLS 10.3.1, i got a "IO exception; premature end of file". The only solution was to create a WAR by ant.
    Here is ANT sample script for building java classes, packaging into war, deploying to WLS (for this last one, you need to reference external jar):
    <target name="build">
    <!-- compile -->
    <javac debug="true" debuglevel="${debuglevel}" source="${source_version}" target="${target_version}" destdir="${output.dir}">
    <src path="${src.location}"/>
    </javac>
    </target>
         <target name="war" depends="build">
    <delete file="${target_war_file}"/>
    <war destfile="${target_war_file}" webxml="src/WEB-INF/web.xml" manifest="/src/META-INF/MANIFEST.MF" update="true">
    <classes dir="${output.dir}"/>
    <lib dir="${build_libs.location}">
    <include name="**/*.jar"/>
    </lib>
    <!-- include important jsf files files -->
    <zipfileset dir="${path.to.conf.folder}" prefix="WEB-INF">
    <include name="adfc-config.xml"/>
    <include name="trinidad-config.xml"/>
    <include name="web.xml"/>
    <include name="weblogic.xml"/>
    </zipfileset>
    </war>
    </target>
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath>
    <pathelement location="c:/oracle/wlserver_10.3/server/lib/weblogic.jar"/>
    </classpath>
    </taskdef>
    <target name="deploy">
    <wldeploy action="deploy" verbose="true" upload="true" remote="true" debug="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}"
    targets="${wls.targets}" securitymodel="CustomRoles" source="${target_war_file}" nostage="false"/>
    </target>
    <target name="undeploy">
    <wldeploy action="undeploy" verbose="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}" targets="${wls.targets}" failonerror="false"/>
    </target>
    <!--     properties for deploy
         wls.targets=DefaultServer
         wls.user=weblogic
         wls.password=weblogic1
         wls.app.name=myapp
         wls.admin.url=t3://127.0.0.1:7101
         -->
    Regards

  • How to develop web app by ADF Faces rich web client ?

    i want developer web app by adf face rich
    but have not adf rich tag library in jdev 10.1.3
    how to develop by adf rich?

    Hi,
    don't know what you mean by ADF Faces rich web client, but if you mean our Ajax component set, then this is not yet available outside of Oracle. If you mean ADF Faces as we have it in JDeveloper 10.1.3, create a JSF page and step through the creation process, toggle the ADF Faces libraries to make ADF Faces available
    Frank

  • Developing simple web app

    Hi,
    Really just want to know, I have this task to develop a sime web app that involves a database (to add new records, retrieve data, del, perform queries etc), where there are a number of user access levels. I'm envisioning that users will perform all this via JSP screens, with the input boxes taking parameters.
    I'm ok with java but new to all this jsp stuff.... just want to know, will knowledge of jsp and sql queries do in sufficing this task?
    Or, is the use of EJB and such other technologies be needed to complete such a task? (I'm on a very short timescale, and given that I already need to learn JSP whilst I do the task, things will be very tight if EJB is a must)
    Thanks.

    Hi,
    Thx for the reply.
    I was under the impression that JSP pages could be
    created with just HTML and SQL after I saw one JSP
    example, where the actual SQL resided in the files.This is true, but it is not looked at like a good thing. It makes the JSP ugly and hard to maintain. Besides, if you write a DB access class, then a JavaBean to represent your Data, you can do a good bit of testing and coding before you have an understanding of JSP. Then you can use the JSP to display the data, and not worry about accessing, scriptlets, where quotation marks go, and things like that... JSP are used for display, if you do your processing and logic in normal Java classes, then JSPs are much easier to work with, especially if you already know java.
    >
    Just some followup-q's, I'm been looking around and
    everyone mentions a web-inf folder... but in the same
    example I read, no such thing existed, nor did it
    include a single javabean/servletfile (all jsps). I'm
    not entirely sure if the example I saw is the full
    thing or just including those files accessible to the
    user on the client end.... so this may sound stupid,
    but is the web-inf compulsory for a web-app?
    If so, would you happen to have any good links to
    pages teaching this? I've googled this but found a
    series of confusing pages.So Web Apps are normally deplyed as a WAR (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/WebApp3.html). The link should describe how the WAR is put together.
    Even if you don't package the web app in a WAR, your directory structure should look the same.

  • How to develop and deploy Spring framework app in Sun One App Server 8.1

    Hi,
    Can anyone give sample on how to develop and depoly spring framework application in J2EE 1.4 Server or Sun One App Server 8.1 .
    Its very urgently needed for my project to learn and implement spring framework i would very thankful if any one can help.
    Thanking You
    Naveen

    Pretty standard for AS8 to deploy Spring. The only thing to watch for is the security manager, which you'll probably want to turn off.

  • Hi where can I learn how to develop app for ios in Singapore?

    I am new to iOS development. Are there any courses from apple or elsewhere in Singapore that I can learn how to develop apps for iPad and iPhone  platform?
    Thanks.

    There are a number of good resources. Stanford did indeed start up the iOS development class again, but the registration period has passed. You can stilll download the material and do a self-study, though:
    https://itunes.apple.com/us/course/coding-together-developing/id593208016
    There are also Apple's materials, the primary source of development information:
    https://developer.apple.com/devcenter/ios/index.action
    If you do a web search for "iOS development", you'll find a number of other sites that should be of help.
    Regards.

  • I'm trying to learn how to use Xcode. I've create a simple Hide App app from a youtube video tut, but I can't get it to export with the icon I've chosen. Any clues why?

    I'm trying to learn how to use Xcode. I've create a simple Hide App app from a youtube video tut, but I can't get it to export with the icon I've chosen. Any clues why?

    We didn't do that video. Why are you asking here?
    Those videos are usually outdated....
    Use the current tools etc., in the iOS Dev Center and iTunes/iTunes U ~ Stanford.

Maybe you are looking for

  • ArrayList help

    ok still having trouble, i redid alot of the program, i need to slim down the ArrayList to being one instance of a word per file, plus all of the lines they are on inside that one instance. Right now there are mulitple instances of each word and each

  • How to add net price in BAPI BAPI_PO_CREATE1

    hi all: when i use bapi BAPI_PO_CREATE1, i cannot add net price in PO. code is as follow. *POPULATE ITEM DATA.         clear t_po_items.         t_po_items-po_item      = v_poitem * 10.         t_po_items-material     = SEQ_FILEH-matnr.         t_po_

  • About the "-x nodataset" option in the command [zoneadm install] in solaris 10. I don't know what it means!

    In this website:  http://docs.oracle.com/cd/E19253-01/816-5166/zoneadm-1m/index.html -x nodataset Do not create a ZFS file system. I have installed the zone01 with the "-x nodataset" option. ============================== # zlogin zone01        [Conn

  • Field symbol assign problem

    Hi , Please find below code when I tried in version 4.6 code works correctly . but in 6.0 it gives short dump.. Here.   FIELD-SYMBOLS : <fs_table> TYPE ANY TABLE. FIELD-SYMBOLS : <fs_work_area> TYPE yatsdzz00. ASSIGN pr_data_changed->mp_mod_rows->* T

  • Weblogic 8.1 SP4 Admin Console JDBC or Start-up changes not taking effect?!

    Gents..I have an open case with BEA on this one but wanted to get some immediate help here. I am trying to make changes to my JDBC pools to check the connection pools (reserved, created, & released) however once I check the boxes and click "Apply" th