JavaとVisual Basicを使ったWebサービスの実装

Similar documents
IT Web NEC Corporation

WebOTXマニュアル

untitled

001.doc.pdf

Web Web ( (SOAP (SOAP/http (WSDL UDDI 1. 2.XML 3. (XDoS http, https SOAP XML Web/App ( App

CAC

WebサービスとCORBA

コンピュータ概論

1. COBOL COBOL COBOL COBOL 2

TravelXMLを利用した Webサービス実証実験デモ

Title.PDF

受動的攻撃について

intra-mart Web for SellSide ver /03/31 Oracle MS-SQL Server IBM DB2 MS-SQL Server IBM DB2 Client Side JavaScript Server Side JavaScript URL -

gSOAP, Pthreads-Win32, OpenSSLを使ったSOAS C/Sアプリ開発

講座計画書サンプル

Oracle Policy Automation 10.0システム要件

CSV ToDo ToDo

Windows Web Windows Windows WinSock

C++ ++ Wago_io.dll DLLDynamicLinkLibrary Microsoft VisualBasic Visual C Wago_io.dll Wago_io.dll Wago_io.dll WAGO_OpenCommPort WAGO_CloseCommPort WAGO_

BASICとVisual Basic

インストールマニュアル

biz-Stream v4 各種機能別動作環境一覧表

NetCOBOL for .NET 応用編

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows

インストールマニュアル

CommandMatrix_8230E

untitled

COBOLロジックのコンポーネント 化 コンポーネント 化 の 実 例 COMラッピング.NETマネージドコードからCOBOLの 利 用 Webサービスへの 展 開

FileMaker Oracle Microsoft SQL Server MySQL Salesforce.com ROI TCO RAD IT FileMaker Pro RAD RAD TCO RAD Microsoft Visual Studio 2008 Oracle Developer


B 5 (2) VBA R / B 5 ( ) / 34

.NETプログラマー早期育成ドリル ~VB編 付録 文法早見表~


Łñ“’‘‚2004

プリント


VB 資料 電脳梁山泊烏賊塾 音声認識 System.Speech の利用 System.Speech に依るディクテーション ( 音声を文字列化 ).NetFramework3.0 以上 (Visual Studio 2010 以降 ) では 標準で System.Speech が用意されて居るの

WebSphere Application Server V5.0 for Linux Ver. 1.11

Oracle Lite Tutorial

ESA_UI_1110.PDF

卒業論文.PDF

Oracle Fail Safe For Windows NT and Windows 2000 リリース・ノート、リリース 3.1.2

Lotus Domino XML活用の基礎!

WebServices4pub.PDF

Flex2とS2Flex2とAIR紹介

J2EEとMicrosoft.NETの比較

コンピュータ概論

3軸加速度センサーモジュール MM-2860 書込み済みマイコンプログラム通信コマンド概要

データ連携ソリューションスイート 「ASTERIA WARP」  ご紹介資料

_02-5.ppt

PowerPoint プレゼンテーション

intra-mart ver /10/31 1. / intra-mart 3.2 AND intra-mart (JavaMail ) ( )

XML Consortium Web Web ( ) XML Consortium XML Consortium Web TravelXML Web Web ( Web ) Web XML Consortium 2

Condition DAQ condition condition 2 3 XML key value

AccessVBA−‹ŠpŁÒ-flO“Z

Microsoft Word - 430_15_Developing_Stored_Procedure.doc

2017/8/2 HP SiteScope software 監視機能対応表 この監視機能対応表は HP SiteScope software v11.33) に対応しています モニタ モニタ説明 モニタ説明 SiteScope for Windows SiteScope for Linux ネット

45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc

Web SOAP Internet Web REST SOAP REST 3 REST SOAP 4

PowerRDBconnector説明書(SQLServer編)

XMLを基盤とするビジネスプロトコルの動向

untitled

ebXMLメッセージ構造\(V 1.0\)

MVP for VB が語る C# 入門

(J言語研究会 2007年2月14日)

Transcription:

JavaVisual Basic Web moto@sag.hitachi-sk.co.jp http://www.hitachi-sk.co.jp/

Web? Web Web Web Web Web Web SOAP Web Web

Web SOAP MicrosoftIBM Web Web SOAP, UDDI, WSDL EJB Java Java Java

Assam Commerce Server

Assam Commerce Server / XML XML XML CyberCash CyberCash SEJ SEJ HOME Ariba B2B B2C B2C B2B Ariba Buyer Ariba Buyer B2B

Web SearchForSoap @Buy24-Software search (Assam Commerce Server 4.00) Web searchitem rpcrouter SOAP Apache SOAP 2.2 IBM WebSphere 3.5.4 IBM HTTP Server (Apache 1.3.12 ) Sun Enterprise 250, Solaris 8 DB SOAP Java Apache SOAP 2.2 Windows 2000 Visual Basic Microsoft SOAP Toolkit 2.0 Windows 2000

Java JDK 1.3.1 Swing

Java JDK 1.3.1 Swing

VB6

VB6

MS SOAP Toolkit 2.0 MSSOAP.SoapServer IIS (VB6.0) COM ASP COM(DLL) (Web ) COM COM MSSOAP.SoapClient WSDL WSML WSDLGEN SOAP Toolkit 2.0SP2 WSML: Web Service Meta Language

API SOAP Toolkit 2.0 2 API WSDL Web SOAP SOAP API WSDL SOAP SOAP SOAP etc.

VB6 Web Option Explicit Public Function search(byval keyword As String) As String() Dim retstr(9) As String Dim i As Integer For i = 0 To 9 retstr(i) = keyword + CStr(i) Next i search = retstr End Function ActiveX (COM DLL) (WSDLGEN COM COM ) search.search1

WSDL(1/3) <?xml version='1.0' encoding='utf-8'?> <!-- Generated 08/21/01 by Microsoft SOAP Toolkit WSDL File Generator, Version 1.02.813.0 --> <definitions name ='Search' targetnamespace = 'http://tempuri.org/wsdl/' <types> xmlns:wsdlns='http://tempuri.org/wsdl/' xmlns:typens='http://tempuri.org/type' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/xmlschema' xmlns:stk='http://schemas.microsoft.com/soap-toolkit/wsdl-extension' xmlns='http://schemas.xmlsoap.org/wsdl/'> <schema targetnamespace='http://tempuri.org/type' xmlns='http://www.w3.org/2001/xmlschema' xmlns:soap-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' elementformdefault='qualified'> <complextype name ='ArrayOfstring'> <complexcontent> <restriction base='soap-enc:array'> http://tempuri.org/ <attribute ref='soap-enc:arraytype' wsdl:arraytype='string[]'/>

</restriction> </complexcontent> </complextype> </schema> </types> <message name='search1.search'> <part name='keyword' type='xsd:string'/> </message> <message name='search1.searchresponse'> <stk:binding preferredencoding='utf-8'/> WSDL(2/3) <part name='result' type='typens:arrayofstring'/> </message> <porttype name='search1soapport'> <operation name='search' parameterorder='keyword'> <input message='wsdlns:search1.search' /> <output message='wsdlns:search1.searchresponse' /> </operation> </porttype> <binding name='search1soapbinding' type='wsdlns:search1soapport' >

<soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http' /> <operation name='search' > <soap:operation soapaction='http://tempuri.org/action/search1.search' /> <input> <soap:body use='encoded' namespace='http://tempuri.org/message/' </input> <output> encodingstyle='http://schemas.xmlsoap.org/soap/encoding/' /> <soap:body use='encoded' namespace='http://tempuri.org/message/' </output> </operation> </binding> <service name='search' > encodingstyle='http://schemas.xmlsoap.org/soap/encoding/' /> <port name='search1soapport' binding='wsdlns:search1soapbinding' > <soap:address location='http://localhost/search/search.asp' /> </port> </service> </definitions> WSDL(3/3) Apache SOAP (WSML ) SOAP (Apache SOAP )

WSML <?xml version='1.0' encoding='utf-8'?> <!-- Generated 08/21/01 by Microsoft SOAP Toolkit WSDL File Generator, Version 1.02.813.0 --> <servicemapping name='search'> <service name='search'> <using PROGID='search.Search1' cachable='0' ID='Search1Object' /> <port name='search1soapport'> <operation name='search'> <execute uses='search1object' method='search' dispid='1610809344'> <parameter callindex='1' name='keyword' elementname='keyword' /> <parameter callindex='-1' name='retval' elementname='result' /> </execute> </operation> </port> </service> </servicemapping> COM COM COM search.search1 COM (Apache SOAP )

Apache SOAPMS SOAP (VB6.0) HTTP WSDL DD.xml COM MSSOAP.SoapClient SOAP /HTTP rpc router SearchForItem Apache (Java) Apache SOAP

Apache SOAP Dim ogsoap As SoapClient Set ogsoap = New SoapClient On Error Resume Next Call ogsoap.mssoapinit("http://miffy.tir.hitachi-sk.co.jp/soap/wsdl/search.wsdl", "Search", "Search1SoapPort") If Err <> 0 Then MsgBox "mssoapinit = " & Err.Description,, "initialization failed" Exit Sub End If Dim strdup() As String strdup = ogsoap.search(searchform.getkeyword()) If Err <> 0 Then MsgBox "search = " & Err.Description,, "search failed" Exit Sub End If (Visual Basic 6.0) WSDL Web MS SOAP

Apache SOAP WSDL namespace http://tempuri.org/message/ urn:acs:search DD.XML DD.XML deserializer <keyword> </keyword> <isd:mappings> <isd:map encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="" qname="x:keyword" xml2javaclassname="org.apache.soap.encoding.soapenc.stringdeserial izer"/> </isd:mappings>

VB (tempuri.org)

Apache SOAP

.NET SOAP (1/2) WSDL WSDL C(VB.NET ) SOAP using System.Diagnostics; using System.Xml.Serialization; using System; using System.Web.Services.Protocols; using System.Web.Services; C [System.Web.Services.WebServiceBindingAttribute(Name="Search1SoapBinding", Namespace="http://tempuri.org/wsdl/")] public class Search : System.Web.Services.Protocols.SoapHttpClientProtocol { [System.Diagnostics.DebuggerStepThroughAttribute()] public Search() { } this.url = " miffy.tir.hitachi-sk.co.jp /soap/servlet/rpcrouter";

.NET SOAP (1/2) [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/action/Search 1.search", RequestNamespace="urn:acs:search", ResponseNamespace="urn:acs:search")] [return: System.Xml.Serialization.SoapElementAttribute("Result")] public string[] search(string keyword) { } object[] results = this.invoke("search", new object[] { keyword}); return ((string[])(results[0])); ( ) object[] retitems; Search foo = new Search (); retitems = foo.search( ); C

WSDL Java WSDL WSDLGEN WSDL MS SOAP API MS SOAP Toolkit.NET ASP.NET.NET MS.NET FrameworkSOAP System.Web.Services.Protcols.SoapXXXX SOAP