Oracle
  Home arrow Oracle arrow Creating an Oracle Web Service Client ...
FaxWave - Free Trial.
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
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? 
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: 4 stars4 stars4 stars4 stars4 stars / 6
    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:
      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
     
     
    FaxWave - Free Trial.
     
    ADVERTISEMENT

    The Web Buyer's Guide is your best source for white papers on a wide range of IT products and services. This Week's Featured White Papers: Help Simplify Virtualization by IBM

    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


       · I got into an unaccustomed spirit to add the title to this blog, but really it is...
     

       

    ORACLE ARTICLES

    - 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...
    - Sub-templates and More with Oracle HTML DB
    - Focusing on Templates in Oracle HTML DB

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway