如何配置 WCF終結點,可以讓外網訪問到它? 我在本機瀏覽,顯示的地址是:http://download:88/Service.svc?wsdl 但這臺服務器在外網的地址是 :202.119.188.134所以我改成了 http://202.119.188.134:88/Service.svc?wsdl 然后在添加服務器引用的時候出現(xiàn)以下錯誤 理解了文檔內容,但無法進行處理。 - WSDL 文檔包含無法解析的鏈接。 - 下載“http://download:88/Service.svc?xsd=xsd0”時出錯。 - 未能解析此遠程名稱: 'download'元數(shù)據(jù)包含無法解析的引用:“http://202.119.188.134:88/Service.svc?wsdl”。服務 http://202.119.188.134:88/Service.svc?wsdl 不支持內容類型 application/soap+xml; charset=utf-8??蛻舳撕头战壎赡懿黄ヅ?。遠程服務器返回錯誤: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'.。如果該服務已在當前解決方案中定義,請嘗試生成該解決方案,然后再次添加服務引用。我應該怎么設置 終結點?
添加回答
舉報
0/150
提交
取消