Presentation is loading. Please wait.

Presentation is loading. Please wait.

Pvm/ 1 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT IFC Model Server Outline of SOAP based API Data Access Layer Component.

Similar presentations


Presentation on theme: "Pvm/ 1 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT IFC Model Server Outline of SOAP based API Data Access Layer Component."— Presentation transcript:

1 Pvm/ 1 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT IFC Model Server Outline of SOAP based API Data Access Layer Component Development Plan 2001-SEP-27

2 Pvm/ 2 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT Overview  Strategy for IMS Web Service:  Outline of SOAP and IMS  SOAP Frameworks  Web Service API Overview  SOAP Client Examples:  Java Script  Excel 2000 VBA

3 Pvm/ 3 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT Outline of SOAP and IMS Application SOAP ClientSOAP Server IMS DALC SOAP Message SOAP Framework Including Web Service Layer

4 Pvm/ 4 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT SOAP Frameworks  Microsoft.NET (Microsoft)  SOAP Toolkit SDK (Microsoft)  Apache-SOAP (Java)  SOAP::LITE for Perl  Others  Many SOAP toolkits evaluation at:

5 Pvm/ 5 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT Web Service API Overview  Data Types:  string  boolean  int, float  IXMLDOMNodeList  etc.  Functions:  IFC model data query  IFC model data update  IFC model data create  etc.

6 Pvm/ 6 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT Web Service API Overview  Example of IMS API  domNodeList2 = QueryByXML(domNodeList1) domNodeList1: Query for IFC model domNodeList2: Result SOAP ClientIMS DALC SOAP domNodeList1 domNodeList2 domNodeList1 domNodeList2 XML Query ML BLIS-XML QueryByXML Query Engine Database

7 Pvm/ 7 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT SOAP Client Examples: Java Script var WSDL_URL = "http://rte2e155/IMSws/IMStest.wsdl" WScript.echo("Connecting: " + WSDL_URL) var sc = WScript.CreateObject("MSSOAP.SoapClient") sc.mssoapinit(WSDL_URL, "", "", "") var domdoc1 = WScript.CreateObject("MSXML2.DOMDocument") domdoc1.async = false domdoc1.loadXML(" SELECT * FROM IfcBuildingStorey FOR XML AUTO; ") var objNodes objNodes = sc.QueryByXML(domdoc1.documentElement.childNodes) WScript.Echo("IfcBuildginStorey: " + objNodes.length)

8 Pvm/ 8 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT SOAP Client Examples: Excel 2000 VBA

9 Pvm/ 9 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT VBA Code Public Sub proc_XMLQuery() Dim sc As MSSOAPLib.SoapClient Dim domDoc As New MSXML2.FreeThreadedDOMDocument30 domDoc.async = False domDoc.loadXML ActiveSheet.Range("D5").Value Set sc = New MSSOAPLib.SoapClient sc.mssoapinit ActiveSheet.Range("D3").Value sc.OpenDatabase ActiveSheet.Range("D4").Value Debug.Print domDoc.xml Dim objNodes As MSXML2.IXMLDOMNodeList Set objNodes = sc.QueryByXML(domDoc.documentElement.childNodes) Dim domDoc2 As New MSXML2.FreeThreadedDOMDocument30 domDoc2.async = False domDoc2.preserveWhiteSpace = True Dim strResult As String Dim domRootElement As MSXML2.IXMLDOMElement Dim domElement As MSXML2.IXMLDOMElement Set domElement = domDoc2.createElement("ROOT") Dim objNode As MSXML2.IXMLDOMNode For Each objNode In objNodes domElement.appendChild objNode Next objNode Set domDoc2.documentElement = domElement strResult = domDoc2.xml ActiveSheet.Range("D6").Value = strResult Exit Sub ErrHdl: sc.CloseDatabase MsgBox "Error:" & sc.detail End Sub

10 Pvm/ 10 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT Comments  IMS Web Service Prototype  Microsoft SOAP Toolkit 2.0  QueryByXML function Sending a query data to IMS by XML Receiving a result by XML  Client test Jscript Excel 2000 VBA  IMS Database, DALC components are still prototype version.  Query Markup Language Concidering about existing XML query language IFC Implementation View definition

11 Pvm/ 11 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT


Download ppt "Pvm/ 1 Yoshinobu Adachi (VTT Building and Transport) VTT BUILDING AND TRANSPORT IFC Model Server Outline of SOAP based API Data Access Layer Component."

Similar presentations


Ads by Google