質問

いベンダーに聞かせていただきましては、石鹸のヘッダはhttpsですが、まだコミックのボタンを使用します。当社の懸念を伝えたいのは、SSLを介してそのサンプルコードがどのようなろうとしているのです。

そのサンプルプログラムに提供するというこのコード:

    if (valservice.Url.StartsWith("https"))
    {
        valservice.Destination = new Microsoft.Web.Services3.Addressing.EndpointReference(
            new Uri(valservice.Url.Replace("https:", "http:")));
    } 

からかなり手を加えることで一部のデバッグで変更したときには、先のURLに自動的に変化します。

if (valservice.Url.StartsWith("https"))
{
    // fix the endpoint just in case (usually not necessary)
    //original code is just this next line 
    //valservice.Destination = new Microsoft.Web.Services3.Addressing.EndpointReference(
    //    new Uri(valservice.Url.Replace("https:", "http:")));


    //test code 
    string holdOriginalURL = valservice.Url;

    Response.WriteLine("1 URL=" + valservice.Url);
    Response.WriteLine("1 Destination=" + valservice.Destination);
    Response.WriteLine("1 Destination.Address.Value=" + valservice.Destination.Address.Value);
    Response.WriteLine("1 Destination.TransportAddress=" + valservice.Destination.TransportAddress);

    //test 
    string newURL = valservice.Url;
    newURL = newURL.Replace("https:", "http:"); 
    //valservice.Destination = new Microsoft.Web.Services3.Addressing.EndpointReference(
    //    new Uri(newURL));
    Microsoft.Web.Services3.Addressing.EndpointReference tempEndPoint = new Uri(newURL);
    valservice.Destination = tempEndPoint; 
    //valservice.Url = holdOriginalURL; 
    Response.WriteLine("2 URL=" + valservice.Url);
    Response.WriteLine("2 Destination=" + valservice.Destination);
    Response.WriteLine("2 Destination.Address.Value =" + valservice.Destination.Address.Value);
    Response.WriteLine("2 Destination.TransportAddress=" + valservice.Destination.TransportAddress);
}

出力:

1 URL=https://someaddress.net/orgid/SomeApplication/SomeService.asmx
1 Destination.Address.Value=https://someaddress.net/orgid/SomeApplication/SomeService.asmx
1 Destination.TransportAddress=https://someaddress.net/orgid/SomeApplication/SomeService.asmx

2 URL=http://someaddress.net/orgid/SomeApplication/SomeService.asmx
2 Destination.Address.Value=http://someaddress.net/orgid/SomeApplication/SomeService.asmx
2 Destination.TransportAddress=http://someaddress.net/orgid/SomeApplication/SomeService.asmx

質問 にすることは可能で別のURLの先のURL?その場合いかがですか?

また、すればリセットのURLにアップデート後の先に、先のものが変更されます。うのは何とかそのときない、ということでしょうか?

おかげさ

ウウォルターズ

更新1:研究のベンダーが追加することができる SoapActor属性 そのサイトです。

た時にhttpsでのURLで、このエラー:

ヘッダに一致しなければならない 俳優のURI値のウェブサービスです。の俳優のURI値を明示的に を使用して指定されSoapActorAttributeに のASMXクラスです。が在籍していない場合 属性には、俳優のURIは 同HTTPリクエストのUrl 受信メッセージ。のヘッダ 受容 "https://somesite.net/orgid/SomeApp/SomeService.asmx" を受けることので "http://somesite.net/orgid/SomeApp/SomeService.asmx".

役に立ちましたか?

解決

ベンダーの試料を実際に間違っていて、使用しないボタンを使用します。この溶液を加え、"経由"のパラメータのコンストラクタの評価項目:

 valservice.Destination =
            new Microsoft.Web.Services3.Addressing.EndpointReference(
                new Uri(valservice.Url.Replace("https:", "http:")), 
                new Uri(valservice.Url));

http://msdn.microsoft.com/en-us/library/microsoft.web.services3.addressing.endpointreference.via.aspx

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top