DOC PREVIEW
CMU ISM 95733 - UDDI Overview

This preview shows page 1-2-3-4-5-6-45-46-47-48-49-50-51-91-92-93-94-95-96 out of 96 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 96 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

UDDI OverviewToday’s TopicXML OVER HTTP (Understanding SOAP)PowerPoint PresentationRequest and Response DocumentsSlide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15Slide 16Slide 17Slide 18Slide 19Slide 20Slide 21Slide 22Slide 23Slide 24Slide 25Slide 26Slide 27Slide 28Slide 29Slide 30Slide 31Slide 32Slide 33Slide 34Slide 35Slide 36Slide 37Slide 38Slide 39Slide 40Slide 41Slide 42Slide 43Slide 44Slide 45Slide 46Slide 47Slide 48Slide 49Slide 50Slide 51Slide 52Slide 53Slide 54Slide 55Slide 56Slide 57Slide 58Slide 59Slide 60Slide 61Slide 62Slide 63Slide 64Slide 65Slide 66Slide 67Slide 68Slide 69Slide 70Slide 71Slide 72Slide 73Slide 74Slide 75Slide 76Slide 77Slide 78Slide 79Slide 80Slide 81Slide 82Slide 83Slide 84Slide 85Slide 86Slide 87Slide 88Slide 89Slide 90Slide 91Slide 92Slide 93Slide 94Slide 95HomeworkInternet TechnologiesUDDI OverviewService ProviderWSDL Description of serviceSOAP ServiceUDDI RegistryWSDL Description of serviceSOAP clientService ClientSOAP DocumentThis slide adapted fromPage 353 of “Java and XML”By McLaughlinCodesSearches forGeneratesInteracts withRegistersAuthors CodesFindsHPIBMMicrosoftInternet TechnologiesToday’s TopicService ProviderWSDL Description of serviceSOAP ServiceUDDI RegistryWSDL Description of serviceSOAP clientService ClientSOAP DocumentThis slide adapted fromPage 353 of “Java and XML”By McLaughlinCodesSearches forGeneratesInteracts withRegistersAuthors CodesFindsHPIBMMicrosoftInternet TechnologiesXML OVER HTTP(Understanding SOAP)We’ll look at a client that communicates with an HTTP serverby using XML. This example is from an article entitled “XML ThroughThe Wall” by Daniel Nehren. It appears in the April/May 2001 edition of XML Magazine. The code is availableonline at www.xmlmag.com (XM0102DN).Internet TechnologiesDBServiceClient• built with a URL• will accept sql statements• will return result sets• makes use of HTTPServiceClient• makes use of DBServiceRequestHTTPServiceClient• knows about HTTP• works with generic requests• knows how to handle sockets and URL’s• returns generic responsesServlet• Takes a generic request• Examines request type• Dynamically loads appropriate handlerHTTPServiceHandler• Generic methods needed by all specific handlers• Knows HTTP • Knows about generic responsesDBHandler• Knows how to handle database queries, resultsets, and database responsesInternet TechnologiesRequest and Response DocumentsRequest DocumentResponse DocumentInternet Technologiespackage httpservice; // DBServiceClient.javapublic class DBServiceClient{ private Vector resultSet; private String serviceURL; public static void main(String[] args) { String serviceURL = "http://localhost:8080/servlet/httpservice.HttpService"; // Request a service// from a servlet.// In this case the service// is a database query.// Hold the retrieved ResultSet// in a Vector of Vectors.Internet Technologiestry { DBServiceClient serviceClient = new DBServiceClient(serviceURL); serviceClient.executeSQLStatement("SELECT * FROM TABLE"); System.out.println(serviceClient.getResultSet()); } catch(Exception ex) { System.out.println("something went wrong: " + ex.getMessage()); ex.printStackTrace(System.err); } } public DBServiceClient(String serviceURL) { this.serviceURL = serviceURL; } public Vector getResultSet() { return resultSet; } // Create the DBService// Client with a URL.// Give it the SQL// and tell it to execute.// Ask for its result set.Internet Technologiespublic void executeSQLStatement(String statement) throws Exception { HttpServiceClient client = new HttpServiceClient(serviceURL); DBServiceRequest request = new DBServiceRequest(); request.setSqlStatement(statement); DBServiceResponse response = new DBServiceResponse(client.executeRequest(request)); resultSet = response.getResultSet(); } }// The DBServiceClient passes a// DBServiceRequest to an// HtpServiceClient.Internet Technologies/** HTTPServiceClient.java * Title: <p> * Description: <p> * Copyright: Copyright (c) Daniel Nehren<p> * Company: Openport Technology Inc.<p> * @author Daniel Nehren * @version 1.0 */package httpservice;import java.net.*;import java.util.*;import java.io.*;import org.w3c.dom.*;import org.apache.xerces.parsers.DOMParser;import org.apache.xerces.*;import org.xml.sax.InputSource;Internet Technologies// This class encapsulates all the interaction with an HttpService public class HttpServiceClient{ private static final String HTTP_VERSION = "1.0"; private static final String HTTP_POST_REQUEST = "POST"; private static final String HEADER_HOST = "Host"; private static final String HEADER_CONTENT_TYPE = "Content-Type"; private static final String XML_MIME_TYPE = "text/xml"; private static final String HEADER_CONTENT_LENGTH = "Content-Length"; private static final int DEFAULT_PORT = 80;Internet Technologies private String serviceUrl; // URL of server private int returnCode; // From server private String returnMessage; // From server private Reader responsePayload; // From server public HttpServiceClient( String serviceUrl) { this.serviceUrl = serviceUrl; } public ServiceResponse executeRequest(ServiceRequest request) throws HttpServiceException { try //executeRequest takes//a ServiceRequest. A DBService//Request “is a” ServiceRequest.//It returns a ServiceResponse.Internet Technologies { // Take the request from the ServiceRequest object String data = request.serializeRequestToString("utf-8"); // Send HTTP headers and the request to the servlet. // The HTTP headers are transmitted within postRequest(). // The XML request is inside ‘data’. postRequest(data); // postRequest sets the member ResponsePayload Reader that is // pointing to the server’s payload //check for failures if(returnCode != 200) throw new HttpServiceException(returnMessage);Internet Technologies//Build a DOM tree around the responsePayload ReaderInputSource source = new


View Full Document

CMU ISM 95733 - UDDI Overview

Download UDDI Overview
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view UDDI Overview and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view UDDI Overview 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?