热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

wsdl文件是怎么生成的,wsl文件在哪

这样rpcencoded能够完整地表示一个方法调用,但缺点是性能很差,而且不能校验Soap消息的有效性。rpcliteral不对参数类型进行编码,但仍然无法对Soap消息进行校


PANTONE色卡-潘通色卡-金属色色卡-GG1550.0元【wayfoon】


在myeclipse中生成wsdl文件


soap绑定选项提供了三种方法: Wsdl文件中的样式和用户组合


use属性为literal,encoded; 样式是rpc,文档。 比较rpc/literal、document/literal none-wrapper、document/literal none-wrapper这五种绑定


从生成soap消息的角度来看,rpc和document的差异是该方法的操作名称是否出现在所生成的soap消息中,而encoded和literal的编码方式的差异是生成了参数类型的soap消息


这样,rpc/encoded可以完全表示方法调用,但具有性能差、无法验证Soap消息有效性的缺点。


rpc/literal不对参数类型进行编码,但无法验证Soap消息。 文档/编码没有意义。 因为没有方法名称,所以参数类型的编码没有什么意义。


文档/轻型无书写器无法生成操作名称。 适用于完整文档作为参数传递给方法的场景。


document/literal with wrapper是目前使用最多的方法,xfire中也应该是默认配置。


示例代码的样式和use的组合设置


wsdl :绑定name=' hellohttpbinding ' type=' tns 3360 hello porttype '


wdl soap :绑定 transport=' http://schemas.XML soap.org/soap/http ' /


wsdl :操作名称=' example '


wdl soap :操作soap操作=' ' /


wdl : input name=' example request '


wsdl soap :主体use=' literal ' /


/wsdl:input


wsdl : output name=' example response '


wsdl soap :主体use=' literal ' /


/wsdl:output


/wsdl :操作


/wsdl :绑定


输入String返回对象数组的wsdl文件的示例。


是什么? XML version=' 1.0 ' encoding=' utf-8 '? wsdl 3360 definitiOnstargetnamespace=' http://way foon.org ' xmlns 3360 tns=' http://way foon.org ' xmlns 3360 wsdl soap=' 3358 way 3360 soap 12=' http://www.w3.org/2003/05/soap-envelope ' xmlns 3360 xsd=' http://www.w3.org/2001/xmlsd soap/ed soap-encoding ' xmlns 3360 soap 11=' http://Scheer ' xmlns : wsdl=' http://schemas.XML soap.org/wsdl/' wsdl :类型xsd : schemaattributeformdefault=' qualified ' elementformdefault=' qualified ' target namespace=' 3355555 XML方案' xsd :元素名称=' example in0' type=' xsd 3360 string '/xsd : complex typename=' arrayofhellobean ' xsd : sequence xsd 3360 elementmaxoccurs=' unbounded ' min occurs='0' name 0 xsd : complextypexsd : complex typename=' hello bean ' xsd : sequence xsd 360 elementminoccurs='0' name=' id ' nil lllle ame ' nil lable=' true ' type=' xsd 3360 string '/xsd 3360 sequence/xsd : complextypexsd : element name=' example out ' xsd 3360方案/wsdl :类型wsdl :消息名称=' example response ' wsdl :部件名称=' example out ' element=' tns 33660 ' tns 3360 example out ' wsdl :消息wsdl :消息名称=' example request ' wsdl :部件名称=' example in0' element=' :端口类型名称=' hello porttype ' wsdl : operation name=' example ' wsdl 3360 input name=' examplereration=' example ' wsdl : input wsdl : output name=' example response ' message=' tns : example response '/wsdl : output/wsdl 33660 wsdl : porttype wsdl :绑定name=' hellohttpbinding ' type=' tns : hello porttype ' wsdl soap 3360绑定系统wsdl 3360操作名称=' example ' wsdl soap 3360操作soap操作=' '/wsdl 3360 input name=' eeratiOnsoapaction='/wsdl 3360操作wsdl : input wsdl : output name=' example response ' wsdl soap : bodyuse=' literal '/wsdl 3360 output/wsdl 3360 op put wsdl :绑定wsdl : service name=' hello ' wsdl : port name=' hello http port ' binding=' tns 3360 helllohtp 服务/hello '//wsdl :端口/wsdl 3360服务/wsdl 3360 definitions


作者:南极光


时间: 2008-9-5


欢迎使用wayfoon@163.com


欢迎转载。 转载请留下声明信息。


推荐阅读
author-avatar
hobeson_861
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有