网站首页

家园论坛

老版论坛

家园博客

业界新闻

技术文档

下载中心

速查中心

图片中心

硬件资讯
上一篇:SendMessage API函数在PowerBuilder中应用 下一篇:Web Services在Powerbuilder中的应用(二)
Web Services在PowerBuilder中的应用(一)

来源: 作者: 添加日期:2005-9-4 19:19:56 点击次数:

关于Web services

Web services are loosely defined as use of Internet technologies to make distributed software components talk to each other without human intervention. Those software components might perform such business logic as getting a stock quote, searching the inventory for a catalog on the Internet, or integrating the reservation services for an airline and a car rental agency. You can reach across the Internet and use preexisting components, instead of having to write them for your application.

Web service 是一种宽松的定义,用于使用Internet 技术来实现分布式应用程序中不同的软件组件间无须人工干涉的相互通讯。

这些组件可以执行如股票行情的业务逻辑, 在因特网上搜寻一份目录的存货清单,或者为一家航空公司和一项租车公司代理预订服务等商业逻辑。你可以通过internet到达并且使用已定义的组件,而无需在你的应用程序中为你的需求再次实现它们。

Web services originated when the Simple Object Access Protocol (SOAP) was introduced. SOAP leverages Extensible Markup Language (XML) and usually employs Hypertext Transfer Protocol (HTTP) as the transport. Invoking Web services through SOAP requires serialization and deserialization of datatypes, and the building and parsing of SOAP messages.

Web services是由简单对象访问协议(SOAP)协议的提出而产生的,SOAP协议它使用可扩展描述语言(XML) 和超文本传输协议(HTTP)编码,并传输应用程序数据。调用Web services可以通过类型序列化与反序列化定义创建和分析SOAP消息的方式来实现。

Part of the value of Web services comes from the Web Services Description Language (WSDL), which enables a service to be self-describing. WSDL defines an XML grammar for describing Web services as collections of communication endpoints capable of exchanging messages. WSDL service definitions provide documentation for distributed systems and serve as a recipe for automating the details involved in applications communication.

Web services的值的部分来源于网页服务描述语言(WSDL),它可以使一种服务变成自描述变成可能。WSDL定义了一种描述Web Services的XML语法来实现从可能的终端收集交换消息。Web Service定义提供了用于分布式系统和服务中实现有关应用程序自动化通讯细节的文件。

With Sybase EAServer and the Web Services Toolkit, these descriptions can be used by applications and registered on a Web site that uses Universal Description, Discovery, and Integration (UDDI). You can search UDDI registry sites with your browser of choice and find the services you need for your application.

使用Sybase EAServer和 Web Services 开发包,这些描述可以用于一个应用程序来注册那些使用了统一描述、发现和集成(UDDI)的网站。你可以使用浏览器来查找UDDI注册网站来选择和发现你的应用程序中所需要的服务。

With SOAP, WSDL, and UDDI, using third-party components is easier because interfaces between applications become standardized across disparate platforms.

通过SOAP、 WSDL、UDDI,使使用第三方组件变得很容易,因为不同的平台之间的应用程序界面变得标准化。

PowerBuilder supports the following Web services standards:

  • SOAP 1.1
  • WSDL 1.1
  • HTTP or HTTPS

 

PowerBuilder支持以下Web服务标准:

SOAP 1.1

WSDL 1.1

HTTP或HTTPS。

You can access Web services from a PowerScript target or a JSP target. For information on accessing Web services in JSP applications that you create with PowerBuilder, see the chapter on JSP targets in the Working with Web and JSP Targets book or the JSP page authoring topic in the online Help.

你可以在PowerScript目标或JSP目标中访问Web服务。关于在PB的JSP应用中访问Web服务的信息,参见《Working with Web and JSP Targets》中的有关章节或联机帮助。

关于创建一个Web服务客户端

A PowerBuilder application can act as a client consuming a Web service that is accessed through the Internet. Using SOAP and WSDL, a collection of functions published remotely as a single entity can become part of your PowerBuilder application. A Web service accepts and responds to requests sent by applications or other Web services.

 

一个PB应用可以作为客户端使用通过互联网访问的Web服务。使用SOAP和WSDL,作为单一实体远程发布的一组函数可以成为你的PB应用的一部分。一个Web服务接收并响应由应用或其它Web服务发出的请求。

PBSoapClient90.pbd 和 PBSoapClient90.dll

   Invoking Web services through SOAP requires serialization and deserialization of data types, and the building and parsing of XML-based SOAP messages. Using the PBSoapClient90.pbd and the PBSoapClient90.dll, the Web services client proxy performs these tasks for you, thereby eliminating the need to have extensive knowledge of the SOAP specification and schema, the XML Schema specification, or the WSDL specification and schema.

通过SOAP调用Web服务需要序列化及反序列化数据类型,并创建及解析基于XML的SOAP消息。使用PBSoapClient90.pbd与pbsoapclient90.dll,Web服务客户端代理帮你完成这些任务,从而使你无需深入了解SOAP规范与模式,XML模式规范,或WSDL规范与模式。

 

 
设为首页 | 加入收藏 | 业务办理 | 友情链接 | 论坛版面 | 浙ICP备07502118号 |