xml - Consuming SAP web service via .net -


i pretty new web service fighting strange behavior. after have imported wsdl xml file via vs2010 these unrecognized policy assertions. wsdl file created sap team, not sure did.

when ignoring these commets try consume web service expections: the provided uri scheme 'https' invalid; expected 'http'.

i know errormessage means have different transport logic uri defines, not sure if should or renew wsdl file.

    <system.servicemodel> <bindings>     <custombinding>         <binding name="binding">             <!--    wsdlimporter encountered unrecognized policy assertions in servicedescription 'urn:sap-com:document:sap:soap:functions:mc-style':    -->             <!--    <wsdl:binding name='binding'>    -->             <!--        <saptrnbnd:optimizedxmltransfer xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/">..</saptrnbnd:optimizedxmltransfer>    -->             <!--        <sapattahnd:enabled xmlns:sapattahnd="http://www.sap.com/710/features/attachment/">..</sapattahnd:enabled>    -->             <mtommessageencoding maxreadpoolsize="64" maxwritepoolsize="16"                 messageversion="soap11wsaddressing10" maxbuffersize="65536"                 writeencoding="utf-8">                 <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384"                     maxbytesperread="4096" maxnametablecharcount="16384" />             </mtommessageencoding>             <httpstransport manualaddressing="false" maxbufferpoolsize="524288"                 maxreceivedmessagesize="65536" allowcookies="false" authenticationscheme="anonymous"                 bypassproxyonlocal="false" decompressionenabled="true" hostnamecomparisonmode="strongwildcard"                 keepaliveenabled="true" maxbuffersize="65536" proxyauthenticationscheme="anonymous"                 realm="" transfermode="buffered" unsafeconnectionntlmauthentication="false"                 usedefaultwebproxy="true" requireclientcertificate="false" />         </binding>         <binding name="binding_soap12">             <!--    wsdlimporter encountered unrecognized policy assertions in servicedescription 'urn:sap-com:document:sap:soap:functions:mc-style':    -->             <!--    <wsdl:binding name='binding_soap12'>    -->             <!--        <saptrnbnd:optimizedxmltransfer xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/">..</saptrnbnd:optimizedxmltransfer>    -->             <!--        <sapattahnd:enabled xmlns:sapattahnd="http://www.sap.com/710/features/attachment/">..</sapattahnd:enabled>    -->             <mtommessageencoding maxreadpoolsize="64" maxwritepoolsize="16"                 messageversion="default" maxbuffersize="65536" writeencoding="utf-8">                 <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384"                     maxbytesperread="4096" maxnametablecharcount="16384" />             </mtommessageencoding>             <httpstransport manualaddressing="false" maxbufferpoolsize="524288"                 maxreceivedmessagesize="65536" allowcookies="false" authenticationscheme="anonymous"                 bypassproxyonlocal="false" decompressionenabled="true" hostnamecomparisonmode="strongwildcard"                 keepaliveenabled="true" maxbuffersize="65536" proxyauthenticationscheme="anonymous"                 realm="" transfermode="buffered" unsafeconnectionntlmauthentication="false"                 usedefaultwebproxy="true" requireclientcertificate="false" />         </binding>     </custombinding> </bindings> <client>     <endpoint address="http://{hostname}/sap/bc/srt/rfc/sap/zicert_kunden_auslesen/010/005056a5007b1ee2a5da43a20303be2b/binding"         binding="custombinding" bindingconfiguration="binding" contract="servicereference.zicert_kunden_auslesen"         name="binding" />     <endpoint address="http://{hostname}/sap/bc/srt/rfc/sap/zicert_kunden_auslesen/010/005056a5007b1ee2a5da43a20303be2b/binding"         binding="custombinding" bindingconfiguration="binding_soap12"         contract="servicereference.zicert_kunden_auslesen" name="binding_soap12" /> </client> 

your endpoint has http scheme, binding defines httpstransport. try changing binding httptransport, or see if endpoints available https protocol too.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -