`

sca中的interface.wsdl和binding.ws

    博客分类:
  • SCA
阅读更多

1、interface.wsdl的用法:

interface.wsdl元素有如下属性:

interface - portType|interface 如下格式的URI地址 

<WSDL-namespace-URI>#wsdl.interface(<portType或Interface-name>)

对于WSDL 1.1,interface属性指向WSDL中的某个portType。

对于WSDL 2.0 ,interface属性指向WSDL里的某个interface

 

2、interface.java元素有如下属性:

interface -Java interface的全限定名(qualified name)

该文件的根目录是由Interface所在的contribution定义的

 

example:

 

<!--service promote interface.wsdl-->
	<service name="AccountInfo" promote="AccountInfoComponent">
	
	<interface.wsdl
			interface="http://accountinfo#wsdl.interface(AccountInfoPortType)"
			/>
		<binding.ws uri="http://localhost:8080/AccountInfo"/>
	</service>
	<!--
		<service name="AccountInfo" promote="AccountInfoComponent">
		<interface.java
		interface="com.kingsun.sca.demo.service.AccountInfo"/>
		<binding.ws
		wsdlElement="http://accountinfo#wsdl.endpoint(AccountInfo/AccountInfoSoapBinding)"/>
		</service>
	-->
	
	<!--accountInfoImplWithInterface-->
	<component name="AccountInfoComponent1">
		<implementation.java
			class="com.kingsun.sca.demo.service.impl.AccountInfoImplWithInterface"/>
	</component>
	
	<!--accountInofImplWithPojo-->
	<component name="AccountInfoComponent">
		<implementation.java
			class="com.kingsun.sca.demo.service.impl.AccountInfoImplWithPOJO"/>
	</component>
	
	<!--ws consumer	in the same sca domain -->
	<!--<component name="AccountInfoConsumerComponent">
		in the same sca	domain
		<reference name="accountInfo" target="AccountInfoComponent"/>
		<implementation.java class="com.kingsun.sca.demo.service.impl.AccountInfoConsumerImpl"/>
	</component>
--></composite>
 

 

3、binding.ws中的wsdlElement的用法:

The wsdlElement attribute indicates that a WSDL document exists

which should be used and it points to the element within that WSDL

to use. The value of the wsdlElement attribute can have one of the

following four forms: 

1)Service:

<WSDL-namespace-URI>#wsdl.service(<service-name>) In this case, all

the endpoints in the WSDL Service that have equivalent PortTypes

with the SCA service or reference must be available to the SCA

service or reference. 

2)Port 

(WSDL 1.1):

<WSDL-namespace-URI>#wsdl.port(<service-name>/<port-name>) In this

case, the identified port in the WSDL 1.1 Service must have an

equivalent PortType with the SCA service or reference. 

3)Endpoint (WSDL 2.0):

<WSDL-namespace-URI>#wsdl.endpoint(<service-name>/<endpoint-name>)

In this case, the identified endpoint in the WSDL 2.0 Service must

have an equivalent PortType with the SCA service or reference.

4)Binding:

<WSDL-namespace-URI>#wsdl.binding(<binding-name>) In this

case, the identified WSDL binding must have an equivalent PortType

with the SCA service or reference. In this case the endpoint address

URI for the SCA service or reference must be provided via the URI

attribute on the binding.

 

example:

 

<?xml version="1.0" encoding="utf-8" ?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
	targetNamespace="http://accountinfoconsumer" xmlns:ns="http://accountinfoconsumer"
	name="AccountInfoConsumer">
	<!--ws consumer	in different sca domain -->
	<component name="AccountInfoConsumerComponent">
		<!--in different sca domain-->
		<reference name="accountInfo">
		<interface.wsdl interface=""></interface.wsdl>
			<interface.java interface="com.kingsun.sca.demo.service.AccountInfo"  />
			<binding.ws uri="http://localhost:8080/AccountInfo"
				wsdlElement="http://accountinfo#wsdl.port(AccountInfo/AccountInfoSOAP11port)" />
		</reference>
		<implementation.java
			class="com.kingsun.sca.demo.service.impl.AccountInfoConsumerImpl" />
	</component>
</composite>
 

 

 

分享到:
评论

相关推荐

    SCA_PowerAllocation.m SCA算法matlab代码

    利用连续凸逼近(SCA)优化D2D对和CU用户的功率,使得D2D对的速率和最大,同时满足CU的速率要求

    2020年fortify SCA最新rules.zip

    2020年发布的"fortify SCA最新rules.zip"包含了这一年中对于源代码审计的最新规则集,这些规则旨在帮助开发团队更好地进行代码静态扫描,提升软件的安全性和可靠性。 Fortify SCA的工作原理主要基于静态分析技术,...

    apache-tuscany-sca-1.6.zip

    7. **示例和文档**:压缩包中很可能包含了示例应用程序和详细的用户文档,这些可以帮助新用户理解如何使用Tuscany SCA来构建和部署SOA解决方案。 8. **社区和支持**:作为Apache项目的一部分,Tuscany拥有活跃的...

    Addison.Wesley.Understanding.SCA.Service.Component.Architecture.Jun.2009.rar

    在SCA中,服务被视为可重用的组件,这些组件可以通过不同的通信机制(如SOAP、REST等)相互交互,实现松耦合和高内聚。 SCA的核心概念包括: 1. **组件(Components)**:SCA中的基本构建块,封装了特定的业务逻辑...

    SCA_Spring.rar_SCA_SOA_SOA JAVA _java soa

    SCA中的数据绑定(Data Binding)和引用(Reference)在Spring中可以通过`@Value`注解和`@Autowired`注解实现。`@Value`用于注入配置属性,`@Autowired`则用于注入依赖的服务实例。 **服务生命周期管理** SCA规范中...

    2020年fortify SCA最新rules.7z

    Fortify SCA(Software Composition Analysis)是一款强大的静态代码分析工具,用于在软件开发过程中发现潜在的安全漏洞和质量缺陷。2020年的“fortify SCA最新rules.7z”压缩包包含了最新的规则集,这些规则是针对...

    sca103t.pdf

    文档中提到的功能模块图展示了SCA103T系列的主要组件和它们之间的连接关系,如自我测试、传感元件、数字SPI接口、信号调理和滤波、A/D转换、校准存储器等。这些组件协同工作,确保传感器的可靠性和准确性。 以上...

    变频器说明书大全系列-SCA-05.rar

    变频器说明书大全系列-SCA-05.rar是一个压缩包文件,包含了...通过SCA-05.pdf这份说明书,用户可以详细了解如何选择、安装、操作和维护变频器,从而充分发挥其性能,确保设备稳定运行,同时提高生产效率和降低能耗。

    SCA and DEM.zip_DEM模型_sca_dem_各向异性_各向异性SCA_岩石物理

    在地质学和地球物理学领域,SCA(Statistical Continuum Approximation,统计连续体近似)和DEM(Discrete Element Method,离散元方法)是两种广泛使用的数值模拟技术,它们在岩石物理研究中占据着重要的地位。...

    开源SCA项目调研.pdf

    尽管给定的部分内容中没有详细介绍OpenSCA-cli,但从其命名和功能来看,它很可能与Dependency-Check类似,但提供了命令行接口的方式来进行扫描和报告生成。 **检测原理**:类似于Dependency-Check,OpenSCA-cli也...

    sca.rar_SCA_tuscany

    `sca.doc`文件可能是Apache Tuscany SCA的用户指南,其中可能包含以下内容: 1. SCA的基本概念和原理介绍。 2. 如何创建和配置SCA组件,包括定义接口、服务和引用。 3. 使用Tuscany开发工具创建和管理SCA项目的方法...

    Fortify SCA 2018.1.1.003 中文规则库

    Fortify SCA 2018.1.1.003 中文规则库 Fortify SCA 代码规则库-支持Java、C、C++、C#、PHP、Swift等静态代码扫描 ,符合代码安全的编码参考 Fortify SCA 。

    SCA3300.rar

    `Asse_InstructionsforDFLPKG_sca3300.pdf`是DFLPKG封装的安装指南,指导用户如何正确安装和使用SCA3300,避免在组装过程中出现损坏或性能下降的问题。 最后,`SCA3300-D01 3-axis Industrial Accelerometer and ...

    SCA100T.rar_SCA100_SCA100T_ironal5_sca100t-d02

    SCA100T是一款专用于读取和处理倾角数据的硬件设备,而"SCA100T.rar_SCA100_SCA100T_ironal5_sca100t-d02"是与该设备相关的压缩包文件。这个压缩包包含了重要的软件资源,尤其是"SCA100T.txt",很可能是SCA100T的...

    Fortify SCA 19.1.0-fiona.zip

    Fortify Software Security Center (SCA) 是一款由Micro Focus公司开发的强大静态代码分析工具,用于检测应用程序中的安全漏洞。版本19.1.0-fiona是该软件的一个更新版本,包含了一些新特性、修复和改进。这个压缩包...

    SCA100T.rar_ SCA100T _SCA100T_sca100t-d02

    SCA100T是一款高性能的微控制器,广泛应用于各种电子设备中,特别是对处理速度和功耗有严格要求的场合。这个压缩包文件“SCA100T.rar”包含了关于SCA100T的重要信息,如数据表、电气性能参数以及编程指南,这些内容...

    SCA100T.rar_SCAT100 PDF_SCA的时序_sca100t 中文_电气系统SCAT_说明书

    通过学习PDF文档中的编程指南,工程师可以学会如何编写和调试程序,实现SCA100T的精确控制。 在实际应用中,SCA100T的说明书是不可或缺的参考资料。它提供了详细的硬件连接示意图、软件安装步骤以及故障排查指南。...

    Fortify SCA 19.zip

    在代码审计过程中,Fortify SCA 使用白盒测试方法,即内部视角来检查应用程序的源代码,而不是依赖于外部输入或输出。这种测试方法能够深入到代码的每一个角落,找出那些常规运行时测试可能遗漏的安全问题。 ...

Global site tag (gtag.js) - Google Analytics