简体   繁体   English

从另一个C#Web服务调用C#Web服务

[英]Calling a C# web service from another C# web service

I am working on a project where I have aa program or web page which calls a C# Soap Web Service. 我正在一个项目中,我有一个称为C#Soap Web服务的程序或网页。 I need this web service to then call another Web Service. 我需要此Web服务才能调用另一个Web服务。 However, I have a problem that when the second soap web service is added to the first web service I get an error 500 page appear saying none of the supported bindings were found. 但是,我有一个问题,当将第二个soap Web服务添加到第一个Web服务时,出现错误500页面,提示找不到支持的绑定。

The second WebService is called Web Reference and I am calling it by using WebReference.BasicHttpBinding_ServiceName. 第二个Web服务称为Web参考,我通过使用WebReference.BasicHttpBinding_ServiceName对其进行调用。

Thanks for any help you can provide 感谢您的任何帮助,您可以提供

-> Please Ensure correct binding is used. ->请确保使用正确的绑定。

-> Add service reference of first service in second service. ->在第二个服务中添加第一个服务的服务引用。

-> Ensure the services are up and running. ->确保服务已启动并正在运行。

It should work fine. 它应该工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM