2016-09-05 30 views
1

8月1日以降、WebサービスのURLが変更され、以前のURLで正常に動作していましたが、新しいアプリケーションでは1人のユーザー、2つのその他のものは、このエラーメッセージが発生します。WebサービスのURLを変更してからアプリケーションが動作しない

は権威「e-factura.sunat.gob.pe」で

をSSL/TLSのセキュアチャネル の信頼関係を確立できませんでした私のプロジェクトはコンソールです。その中に証明書ファイルを使用してxmlファイルに署名し、証明書がサーバー上にあり、installeではありません証明書ストアのd。さらに、Webサービスを使用するには、wsse:セキュリティ認証が必要です。私は、Webサービスを上に消費することはできません、私はさらに、問題を解決するために何をすべきか見当がつかない

<?xml version="1.0"?> 
<configuration> 
<configSections> 
</configSections> 
<system.diagnostics> 
<sources> 
<source name="DefaultSource" switchName="DefaultSwitch"> 
    <listeners> 
     <add name="FileLog"/> 
    </listeners> 
    </source> 
</sources> 
<switches> 
    <add name="DefaultSwitch" value="Information"/> 
</switches> 
<sharedListeners> 
    <add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/> 
</sharedListeners> 
</system.diagnostics> 
    <startup useLegacyV2RuntimeActivationPolicy="true"> 
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> 
</startup> 
<system.serviceModel> 
<bindings> 
    <basicHttpBinding> 
    <binding name="BillServicePortBinding" closeTimeout="00:01:00" 
      openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
      allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
      maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
      messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" 
      useDefaultWebProxy="true"> 
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
      maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
     <security mode="Transport"> 
     <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> 
     <message clientCredentialType="UserName" algorithmSuite="Default" /> 
     </security> 
    </binding> 
    <binding name="secured"> 
     <security mode="TransportWithMessageCredential"> 
     <message clientCredentialType="UserName" /> 
     </security> 
    </binding> 
    </basicHttpBinding> 
</bindings> 
<client> 
    <endpoint address="https://e-factura.sunat.gob.pe:443/ol-ti-itcpfegem/billService" 
     binding="basicHttpBinding" bindingConfiguration="BillServicePortBinding" 
     contract="Production.billService" name="BillServicePort" > 
    <headers> 
     <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> 
     <wsse:UsernameToken > 
      <wsse:Username>XXXXXXXX</wsse:Username> 
      <wsse:Password Type='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText'>XXXXXX</wsse:Password> 
     </wsse:UsernameToken> 
     </wsse:Security> 
    </headers> 
    </endpoint> 
</client> 
</system.serviceModel> 
</configuration> 

: 私のapp.configファイルはこの1つである(:セキュリティ証明私はWSSEを隠しました)私のマシン(Webサービスは税務署に実際の請求書を送付するために使用されます)。 ありがとう

答えて

1

私は彼らのサーバーに接続し、私はそこにインターネットエクスプローラで走った、私は信頼されたサイトのリストにWebサーバーのアドレスを追加しました。 私は、各自のPCで同じことをするためにそれぞれの使い方を尋ねましたが、今のところ、アプリケーションの現在動作していることを確認したユーザーからのフィードバックがあります。

関連する問題