Binding Name
Posted: Sun Oct 26, 2014 6:19 pm
I think that the question has an error. The port name derives from portType, end the binding derives from serviceName. Therefore, the correct wsdl is:
<wsdl:portType name="LogService">
<wsdl:operation name="log">
<wsdl:input message="tns:log" name="log"></wsdl:input>
<wsdl:output message="tns:logResponse" name="logResponse"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="LogWebServiceSoapBinding" type="tns:LogService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="log">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="log">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="logResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="LogWebService">
<wsdl:port binding="tns:LogWebServiceSoapBinding" name="LogServicePort">
<soap:address location="http://localhost:8080/ocejwsd/LogWebService"/>
</wsdl:port>
</wsdl:service>
<wsdl:portType name="LogService">
<wsdl:operation name="log">
<wsdl:input message="tns:log" name="log"></wsdl:input>
<wsdl:output message="tns:logResponse" name="logResponse"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="LogWebServiceSoapBinding" type="tns:LogService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="log">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="log">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="logResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="LogWebService">
<wsdl:port binding="tns:LogWebServiceSoapBinding" name="LogServicePort">
<soap:address location="http://localhost:8080/ocejwsd/LogWebService"/>
</wsdl:port>
</wsdl:service>