質問編集履歴
1
情報の追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,4 +9,45 @@
|
|
9
9
|
IIS上ではパケットキャプチャに表示もされなくステータスコードも確認できませんでした。
|
10
10
|
|
11
11
|
そもそもIIS上に配置しているWEBAPIから別サーバのWEBサービスにアクセス可能なのでしょうか?
|
12
|
-
できる、できないの文献があまりなくなまじローカル稼働で行えている為判断ができません。
|
12
|
+
できる、できないの文献があまりなくなまじローカル稼働で行えている為判断ができません。
|
13
|
+
|
14
|
+
WEBサービス参照の追加を行い。
|
15
|
+
WEBサービスへアクセスしています。
|
16
|
+
|
17
|
+
var ws = webサービス参照で追加した項目;
|
18
|
+
ws.ClientCredentials.UserName.UserName = wsUserName;
|
19
|
+
ws.ClientCredentials.UserName.Password = wsPassWord;
|
20
|
+
ws.Connect(wsSystemID, wsLoginID, wsLoginPwd);
|
21
|
+
strData = ws.GetDataXML(param);
|
22
|
+
ws.DisConnect();
|
23
|
+
ws.Close();
|
24
|
+
|
25
|
+
-- web.config
|
26
|
+
<system.serviceModel>
|
27
|
+
<protocolMapping>
|
28
|
+
<remove scheme="http" />
|
29
|
+
<add scheme="http" binding="wsHttpBinding" />
|
30
|
+
<add scheme="https" binding="wsHttpBinding" />
|
31
|
+
</protocolMapping>
|
32
|
+
<bindings>
|
33
|
+
<wsHttpBinding>
|
34
|
+
<binding name="WSHttpBinding_class1">
|
35
|
+
<reliableSession enabled="true" />
|
36
|
+
<security mode="TransportWithMessageCredential">
|
37
|
+
<transport clientCredentialType="None" />
|
38
|
+
</security>
|
39
|
+
</binding>
|
40
|
+
<binding name="WSHttpBinding_class12" maxBufferPoolSize="4288" maxReceivedMessageSize="2147483647" openTimeout="01:00:00" closeTimeout="01:00:00" sendTimeout="01:00:00" receiveTimeout="01:00:00">
|
41
|
+
<reliableSession enabled="true" />
|
42
|
+
<readerQuotas maxDepth="32" maxStringContentLength="819200000" maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
|
43
|
+
<security mode="TransportWithMessageCredential">
|
44
|
+
<transport clientCredentialType="None" />
|
45
|
+
<message clientCredentialType="UserName" />
|
46
|
+
</security>
|
47
|
+
</binding>
|
48
|
+
</wsHttpBinding>
|
49
|
+
</bindings>
|
50
|
+
<client>
|
51
|
+
<endpoint address="https://hogehoge.jp/hogehoge.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_class12" contract="ServiceReference.clshogehoge" name="WSHttpBinding_class1" />
|
52
|
+
</client>
|
53
|
+
</system.serviceModel>
|