doushi3322 2015-06-23 16:57
浏览 58
已采纳

根据WS-i的BP2406验证nuSoap(绑定要求为true)

Thr issue the brings me here today is the following. We've had a fully funcitonal WS for a few years now. This is being used by different customer but we are targeting a sale to a new prospect who need our Web service to be WS-i compliant.

I used PHP and nuSoap to build the WS and I use SoapUi which uses the Ws-i test tools to validate compliance. Vaidation fails with this one error ---BP2406

SOAPBody ({http://schemas.xmlsoap.org/wsdl/soap/}body):
required=null
use=encoded
encodingStyles=[http://schemas.xmlsoap.org/soap/encoding/]
namespaceURI=http://mydomain/webservice.php
Element Location:
  lineNumber=134

and on line 134 and 135 of my WSDL

<binding name="MyWSBinding" type="tns:MyWsPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

Has anyone got a clue on how to set the binding right to be compliant using php's nuSoap . Any word of advice will be helpful.

Thanks in advanced.

  • 写回答

1条回答 默认 最新

  • dongweng6241 2015-06-23 17:45
    关注

    I validated . If anyone evr comes around this error . The fix is adding 'rpc'/'literal' or false as parameters to the $server->register() method. Since this parameters are optional , you WS will work , but wont validate if not specified.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 本题的答案是不是有问题
  • ¥15 关于#r语言#的问题:(svydesign)为什么在一个大的数据集中抽取了一个小数据集
  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 蓝桥杯单片机第十三届第一场,整点继电器吸合,5s后断开出现了问题
  • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?
  • ¥15 Arcgis相交分析无法绘制一个或多个图形