Failed to generate code for the service reference WSDL

Failed to generate code for the service reference
Style Document inferred from messages in operation does not match expected style Rpc spedfied via bindings

Данную ошибку исправить на самом деле просто:
1. Добавить сервис в проект
2. Ребилдить и словить ошибку
3. Закрыть студию
4. Открыть проект вновь
5. Сбилдить

Если такой вариант не сработал, то рекомендую, при возможности, удалить все референсы на веб-сервисы и добавить их заново

Также можно использовать svcutil.exe

+:
http://social.msdn.microsoft.com/Forums/en/wcf/thread/fab01c1a-11e7-4b7c-8b27-e5e9732fd22b

This web service uses the rpx/literal pattern which is not supprted in .Net in all cases. In particular "part" elements in the wsdl should have "type" attribute and not "element". It might be possible to do hard work and fix this wsdl but it can take time.

I suggest you will get a sample request soap message (either from the servie author or from a python client) and use .Net to send raw http messages based on this sample.

Комментариев нет:

Отправить комментарий

Можете оставить свой комментарий