How to know about what authentication method a wcf service from wsdl -


i consuming wcf service, have wsdl me. trying consume getting 401 (authorization error).

is possible know authentication method service supports wsdl have , if not how can authenticate against service?

in wsdl see following binding

  <wsdl:binding name="webcontractorsoap12" type="tns:webcontractorsoap">     <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />     <wsdl:operation name="callwebcontractor"> 

does mean supports transport level security, i.e. https , doesn't need username password authentication?

<?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="https://www.ramm.co.nz/webservices/6.1webcontractor" xmlns:s="http://www.w3.org/2001/xmlschema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textmatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetnamespace="https://www.ramm.co.nz/webservices/6.1webcontractor" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">   <wsdl:types>     <s:schema elementformdefault="qualified" targetnamespace="https://www.ramm.co.nz/webservices/6.1webcontractor">       <s:import />       <s:element name="callwebcontractor">         <s:complextype>           <s:sequence>             <s:element minoccurs="0" maxoccurs="1" ref="webcontractor" />           </s:sequence>         </s:complextype>       </s:element>       <s:element name="callwebcontractorresponse">         <s:complextype>           <s:sequence>             <s:element minoccurs="0" maxoccurs="1" ref="callwebcontractorresult" />           </s:sequence>         </s:complextype>       </s:element>     </s:schema>    </wsdl:types>   <wsdl:message name="callwebcontractorsoapin">     <wsdl:part name="parameters" element="tns:callwebcontractor" />   </wsdl:message>   <wsdl:message name="callwebcontractorsoapout">     <wsdl:part name="parameters" element="tns:callwebcontractorresponse" />   </wsdl:message>   <wsdl:porttype name="webcontractorsoap">     <wsdl:operation name="callwebcontractor">       <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">cjn web contractor.</wsdl:documentation>       <wsdl:input message="tns:callwebcontractorsoapin" />       <wsdl:output message="tns:callwebcontractorsoapout" />     </wsdl:operation>   </wsdl:porttype>   <wsdl:binding name="webcontractorsoap" type="tns:webcontractorsoap">     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />     <wsdl:operation name="callwebcontractor">       <soap:operation soapaction="https://www.ramm.co.nz/webservices/6.1webcontractor/callwebcontractor" style="document" />       <wsdl:input>         <soap:body use="literal" />       </wsdl:input>       <wsdl:output>         <soap:body use="literal" />       </wsdl:output>     </wsdl:operation>   </wsdl:binding>   <wsdl:binding name="webcontractorsoap12" type="tns:webcontractorsoap">     <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />     <wsdl:operation name="callwebcontractor">       <soap12:operation soapaction="https://www.ramm.co.nz/webservices/6.1webcontractor/callwebcontractor" style="document" />       <wsdl:input>         <soap12:body use="literal" />       </wsdl:input>       <wsdl:output>         <soap12:body use="literal" />       </wsdl:output>     </wsdl:operation>   </wsdl:binding>   <wsdl:service name="webcontractor">     <wsdl:port name="webcontractorsoap" binding="tns:webcontractorsoap">       <soap:address location="https://webservice.ramm.co.nz/webcontractor6-1/webcontractor.asmx" />     </wsdl:port>     <wsdl:port name="webcontractorsoap12" binding="tns:webcontractorsoap12">       <soap12:address location="https://webservice.ramm.co.nz/webcontractor6-1/webcontractor.asmx" />     </wsdl:port>   </wsdl:service> </wsdl:definitions> 


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -