首页 > 解决方案 > WSDL 和字段验证

问题描述

我正在研究网络服务肥皂和休息。测试我的网络服务,我传递了一个重复的字段 ProductId,如下例所示,并且没有任何问题通过。

我问这是正常行为还是错误?

任何帮助,非常感谢。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:v1="http://nameSpace/">
<soapenv:Header/>
<soapenv:Body>
  <getProductService>
        <arg0>
            <ProductDate>2016-04-01</ProductDate>
            <ProductId>prod1</ProductId>
            ##<ProductId>prod1</ProductId>##
        </arg0>
  </getProductService>
</soapenv:Body>
</soapenv:Envelope>

标签: javaweb-services

解决方案


推荐阅读