Web参照またはサービス参照を追加すると、VisualStudio2010に次のエラーメッセージが表示されます。実際のwsdlURLはhttp://x.x.x.x:9999/PersonCRUD.asmx?wsdl
です。VisualStudioがダウンロードしようとする理由がわかりませんhttp://x.x.x.x/PersonCRUD.asmx?wsdl
Metadata contains a reference that cannot be resolved: 'http://x.x.x.x/PersonCRUD.asmx?wsdl'.
There was an error downloading 'http://x.x.x.x/PersonCRUD.asmx?wsdl'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'http://x.x.x.x:9999/PersonCRUD.asmx'.
Metadata contains a reference that cannot be resolved: 'http://x.x.x.x:9999/PersonCRUD.asmx'.
If the service is defined in the current solution, try building the solution and adding the service reference again.
wsdlの最後に、間違ったURLを含む部分があります。それが問題の原因だと思います。(ポート:9999がありません)
<wsdl:port name="PersonCRUDSoap" binding="tns:PersonCRUDSoap">
<soap:address location="http://78.186.32.181/PersonCRUD.asmx"/>
</wsdl:port>
<wsdl:port name="PersonCRUDSoap12" binding="tns:PersonCRUDSoap12">
<soap12:address location="http://78.186.32.181/PersonCRUD.asmx"/>
</wsdl:port>
ところで、私はこれを新しいWebサイトプロジェクトで試しました。
このエラーが発生する理由の手がかりを持っている人はいますか?
ありがとう。