portType绑定wsdl解析错误

时间:2017-05-19 15:24:11

标签: php xml web-services soap wsdl

我在为soap服务创建wsdl文件时遇到问题。我在wsdl文件中声明了

<portType name="RegistrationService">
    <operation name="registration">
        <input message="tns:registration"/>
        <output message="tns:registrationResponse"/>
        <fault message="tns:ServerException" name="ServerException" />
        <fault message="tns:ValidationException" name="ValidationException" />
        <fault message="tns:DenialOfServiceException" name="DenialOfServiceException" />
    </operation>
</portType>

然后尝试像这样使用它

    <binding name="RegistrationBinding" type="tns:RegistrationService">
</binding>

但验证员抛弃了我

Could not find the portType definition for 'tns:RegistrationService' in the binding'RegistrationBinding'.

我无法弄清楚它有什么问题,因为我正在使用并正确调用它。

0 个答案:

没有答案