简体   繁体   中英

Web reference doesn't want to add in project

I'm trying to add new web reference in my project. When I enter url in window below it shows web service description (all methods with descrption). But in the right panel there is message "Operation is not valid due to the current state of the object" and I can't add my web-service. I tried to add some other services and program has added them. So it seems like I have a problem with wsdl. What should be in wsdl for Visual Studio?

Also I tested this web-service in soapUI and everything works fine.

Try this solution , add the following to your web.config

<appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="2000" />
 </appSettings>

我遇到了类似的问题,但是我知道公司代理不允许连接到外部Web服务。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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