但是wsdl 校验器报告:WS-I: (BP2119) A document-literal binding which does not specify the parts attribute, has more than one wsdl
art in the associated wsdl:message element.
google上搜索:当您在定义 document/literal 服务时,只能为输入与输出消息各自设计一个part。因此,您的 Web services传送給方法的参数不能超过一個。如果您想要使用具有超过一個参数的方法,则必须改用 Document Wrapped 编码以符合标准。
但是在JAX-WS规范和WS-I Basic profile好像并没有这样的规定,只是规定了使用document/literal/wrapped时,输入和输出message只能存在一个part,请问这是怎么回事呢?
如果以上的规定存在,是不是意味着使用document/literal/bare方式时,输入参数只能有一个呢?
谢谢Sky-Tiger!!!
刚刚看到WS-I Basic Profile
R2201 A document-literal binding in a DESCRIPTION MUST, in each of its soapbind:body element(s), have at most one part listed in the parts attribute, if the parts attribute is specified
但是如果处理重载方法时,document/literal/wrapped方式不行,document/literal
原帖由 tangyangbuaa 于 2009-3-2 17:01 发表
谢谢Sky-Tiger!!!
刚刚看到WS-I Basic Profile
R2201 A document-literal binding in a DESCRIPTION MUST, in each of its soapbind:body element(s), have at most one part listed in the parts attribute, if the parts attribute is specified
但是如果处理重载方法时,document/literal/wrapped方式不行,document/literal
重载问题是WSDL1.1的约束,WSDL20会改进!