Graphic Design
  Home arrow Graphic Design arrow Page 4 - Working with Web Services
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
GRAPHIC DESIGN

Working with Web Services
By: Albert J. Saganich, Jr.
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2004-06-28

    Table of Contents:
  • Working with Web Services
  • Web Services Benefits for Service Developers
  • Understanding SOAP, WSDL, and UDDI and Their Place in WebLogic Workshop
  • Developing Web Services
  • Using Web Services Within Workshop Applications
  • Using Web Services from Standalone Applications
  • Conversations
  • Web Service Security
  • Associating Security with Web Services

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working with Web Services - Developing Web Services


    (Page 4 of 9 )

    WebLogic Workshop fully supports creating and using Web services. With Workshop, you can create Web services from scratch or extend an existing Web service. Workshop also supports creating control wrappers around existing Web services, whether they were created with Workshop or exist outside WebLogic Server.

    To create a Web service, follow the steps shown in Figure 9.3:

    1. Select the folder where the Web service will be created.

    2. Choose File, New, Web Service from the WebLogic Workshop menu.

    3. In the New File dialog box, enter a filename for the Web service and click Create.

    From a Workshop development perspective, Web services look much like controls. Web services have methods, can support callbacks, and can use other controls, EJBs, or J2EE services. You can add methods simply by dragging them from the Data Palette, as you would with a control or Page Flow.

    Exposing Web Services Beyond Workshop

    Web services are typically created to make a service or an interface available to the outside world. WebLogic Workshop Web services are no different, and external Web service consumers can easily use them.

    Examine the creditServices Web service, which the Wonderland Casino requires to support checking a player's credit limit. creditServices supports the checklimit method, which takes a string name and a bet in the form of an integer and returns true or false, depending on whether the player's bet is within his or her limit. Table 9.1 lists some of the more important components created for the creditServices Web service.

    BEA

    Figure 9.3 -- Creating Web services.

    Table 9.1 Web Services Components

    Component

    Example

    Description

    Overall URL

    http://localhost:7001/
    CasinoServicesWS/support/
    creditServices.jws

    The URL to the service's main page. All Web services automatically generate a set of JSP pages in support of using the Web service. The URL is created from the URL of the running instance of Workshop and the path to the Web service.

    WSDL

    http://localhost:7001/
    CasinoServicesWS/

    support/creditServices.jws?WSDL

    A complete WSDL description of the Web service, which external clients can use to access the service. Note that for Web services that provide callbacks, two sets of WSDL are supplied, one with and one without callback definitions.

    Support JARs

    creditServices.jar and webservicesclient.jar

    Client support JAR files that can be used standalone Java clients to call the Web service as though it were a local class.

    Support pages

    Overview, Console, Test Form, and Test XML

    Workshop generates a set of JSP pages containing support for the Web services. The Overview page provides downloadable client JAR files, WSDL, and so on. Test Form provides a simple JSP with entries for each method of the Web service. The Test XML page is a example of the XML used to call service methods.


    The target-namespace Property - By default, newly created Web services do not have a defined namespace. For those unfamiliar with the concept of namespaces, simply consider them as a way to control name collisions. Typically, a namespace is defined by using the Web name of the entity that has developed the service (for example, http://www.samspublishing.com), followed by details of the service. For example, you could use the namespace http://www.samspublishing.com/81kickstart/casino/supportservices as the target namespace of the Web service to ensure that no other services with the same name will be confused with yours.

    SamsThis chapter is from BEA WebLogic Workshop 8.1, by Albert J. Saganich, Jr., et al. (Sams, 2004, ISBN: 0-672-32622-1). Check it out at your favorite bookstore today.

    Buy this book now.

    More Graphic Design Articles
    More By Albert J. Saganich, Jr.


     

    GRAPHIC DESIGN ARTICLES

    - Building Corner Effects with Transparent Bac...
    - 3D Graphics Technology: VRML Part I - Introd...
    - Creating Visual Effects
    - Web Page Design Overview
    - Creating Artistic Photographs
    - Working with Tools in Paint Shop Pro 8
    - Using HTML Quickform for Form Processing
    - Introduction to Adobe FrameMaker
    - WebLogic Workshop, WebLogic Platform, and th...
    - Planning the Site
    - Working with Web Services
    - WebLogic Workshop Application Development Ba...
    - Scanning Images for Web Use
    - Web Graphics Overview
    - The Pen is Mightier than the Brush Tool







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek