Oracle
  Home arrow Oracle arrow Creating an Oracle Web Service Client for a Web Service Created in VS 2005
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
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? 
Google.com  
ORACLE

Creating an Oracle Web Service Client for a Web Service Created in VS 2005
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 7
    2006-07-12


    Table of Contents:
  • Creating an Oracle Web Service Client for a Web Service Created in VS 2005
  • Creating the Client Application in Oracle 10G XE
  • Creating a Web Reference
  • Creating a Client Form
  • Displaying results from Web Service

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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


    Creating an Oracle Web Service Client for a Web Service Created in VS 2005
    ( Page 1 of 5 )

    This tutorial takes you through the process of creating a web service client using the ApplicationBuilder interface in Oracle 10g XE. The client will access the services offered by a web service created using the Visual Studio 2005.

    Introduction

    This is a continuation of my series of web service related articles exploring interoperability, albeit in simple cases. Oracle XE's ApplicationBuilder is based on Oracle's most used Application Express, which was formerly called HTML Db.

    Creating the Web Service in Visual Studio 2005

    It is very easy to create a web service using Visual Studio, especially for this simple, basic example. In fact the default web service, HelloWorld, is used.

    Create a web site from File -->New Website. This opens up the New Web Site window where you choose an ASP.NET Web Service. The URL should be pointing to the localhost. Change the default site name from WebSite to something suitable. In this case the site name is TestingService as shown in the next picture.

    The program adds a Service1.asmx file which has been changed to HelloOra.asmx. The Service Class file appears as follows:

    Imports System.Web
    Imports System.Web.Services
    Imports System.Web.Services.Protocols
    
    <WebService(Namespace:="http://tempuri.org/")> _
    <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
    <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
    Public Class Service
         Inherits System.Web.Services.WebService
    
        <WebMethod()> _
        Public Function HelloWorld() As String
            Return "Web Service Created to test an Oracle Client"""
        End Function
    
    End Class
    

    The Solution Explorer will be as shown in the next picture. The asmx file is the web service file.

    The Return value has been changed to "Web Service Created to test an oracle client" above. You may build this, and by browsing the HelloOra.asmx file it can be seen that the service is functional as seen in the next picture.

    Displaying the Soap-Endpoint

    The service may be invoked by clicking the hyperlink, HelloWorld and the success of the HTTP-post is seen in the next display when you invoke the service.

    The WSDL Web Reference

    In the earlier screen if you were to click on the hyperlink for Service Description you would see the WSDL file, which contains the complete description of the service. A node compressed view of the displayed wsdl file is shown in the next picture.

    The URL of the WSDL is going to be used while configuring the Oracle client application. This url is:

     http://localhost/TestingService/HelloOra.asmx?WSDL



     
     
    >>> More Oracle Articles          >>> More By Jayaram Krishnaswamy
     

       

    ORACLE ARTICLES

    - Oracle's Turn to Play in the Sun
    - Implementing and Using Oracle`s Restore Poin...
    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...





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