私はWSDLなどを備えた通常のサードパーティのSOAPサービスを持っています。問題は、GETリクエストのみを受け入れることです。C#でアクセスするにはどうすればよいですか?
When I add that service to VS via Add Service Reference
and try to use it as usual:
var service = new BaseSvcClient(
new BasicHttpContextBinding(),
new EndpointAddress("http://some.internal.ip/WebServices/Base.svc"));
var ver = service.Version();
I see (via fiddler) that it actually sends POST requests and web-service responds with Endpoint not found
error message.
If I simply hit http://some.internal.ip/WebServices/Base.svc/Version
in a browser the proper xml is returned.
I can use WebClient, but then I have to construct all the GET requests manually, which doesn't look good. Are there other solutions?