1 / 16

Exchanging Simple Data

Exchanging Simple Data. Overview. When you complete this lesson you should be able to:. Describe the difference between simple data and complex data Describe how XML Schema data maps to or from 4GL data types Invoke a Web service operation using simple data types

ciro
Download Presentation

Exchanging Simple Data

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exchanging Simple Data

  2. Overview When you complete this lesson you should be able to: • Describe the difference between simple data and complex data • Describe how XML Schema data maps to or from 4GL data types • Invoke a Web service operation using simple data types • Invoke a Web service operation where the Web service types do not match 4GL types • Invoke a Web service operation which returns an array • Invoke a Web service operation that exchanges binary data

  3. Simple data 4GL application DEFINE VARIABLE iData as INTEGER NO-UNDO. RUN SendIt IN hPortType (INPUT iData) NO-ERROR. Web service operation SendIt_Request(iData type = “xsd:int”) http request

  4. Job Aid: WSDL Analyzer suggested 4GL types for simple data

  5. Default 4GL mapping

  6. Operation detail for ValidateCustomer

  7. 4GL WSDL documentation for GetShipDate

  8. Result of casting an xsd:float value

  9. Lab 5-1:Handling DATE and DECIMAL parameters

  10. MEMPTR as xsd:base64Binary

  11. Sending binary data DEFINE VARIABLE pSalesSS as MEMPTR NO-UNDO. COPY-LOB from FILE “FebSales.xls” TO pSalesSS. RUN SendSalesSS IN hPortType (INPUT pSalesSS) NO-ERROR. FebSales.xls http request <SOAP-ENV:Body> <ns1:SendSalesSS_Request . . . <pSalesSS xsi:type=“xsd:base64Binary”> 8%Asd08#4ga9384281tafs+lasdf… </pSalesSS> </ns1:SendSalesSS_Request> </SOAP-ENV:body>

  12. Arrays of STRING types

  13. Integrity of data 4GL Application Web service Value1 = 256.69484. RUN SendValue in hPortType (INPUT Value1). . . . RUN GetValue in hPortType (OUTPUT Value2). Value = 256.69 xsd:decimal with restriction of 2 decimal places Is 256.69 acceptable?

  14. Lab 5-2:Handling arrays and binary data

  15. Summary You should now be able to: • Describe the difference between simple data and complex data • Describe how XML Schema data maps to or from 4GL data types • Invoke a Web service operation using simple data types • Invoke a Web service operation where the Web service types do not match 4GL types • Invoke a Web service operation which returns an array • Invoke a Web service operation that exchanges binary data

  16. Review

More Related