情報を取得するためにこの Web サービスにリクエストを送信したときに問題が発生しました これが私の設定コードです
<bindings>
<basicHttpBinding>
<binding name="Z_SI_ADVANCE_VENDORBinding" messageEncoding="Text" textEncoding="utf-8">
<security mode="Transport">
<transport clientCredentialType="Basic" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
そして、これがこのWebサービスにリクエストを送信した背後にある私のコードです(http://www.xxxx.com)
Dim epAddress As New EndpointAddress("http://www.xxxx.com")
Dim binding As New BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly)
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic
Dim client As XI_ADVANCE_VENDOR.Z_SI_ADVANCE_VENDORClient = New XI_ADVANCE_VENDOR.Z_SI_ADVANCE_VENDORClient(binding, epAddress)
Dim p_output As XI_ADVANCE_VENDOR.BAPIRETURN1
client.ClientCredentials.UserName.UserName = "xxxxx"
client.ClientCredentials.UserName.Password = "xxxxx"
p_output = client.Z_SI_ADVANCE_VENDOR(param1,param2)
リクエストの呼び出しが完了すると、ブラウザの Web ページに「サーバー エラー」が表示されます。