로컬 서비스에서 이름 (받은 편지함 서비스)으로 웹 서비스를 개발했습니다. 내가 웹 참조 를 추가했을 때 내가 내 웹 서비스 descpition 파일web add webservices issue에서 참조하십시오.
<?xml version="1.0" encoding="utf-8"?>
<discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/disco/">
<contractRef ref="http://localhost:1518/popup-message/InboxService.asmx?wsdl" docRef="http://localhost:1518/popup-message/InboxService.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<soap address="http://localhost:1518/popup-message/InboxService.asmx" xmlns:q1="http://tempuri.org/" binding="q1:InboxServiceSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
<soap address="http://localhost:1518/popup-message/InboxService.asmx" xmlns:q2="http://tempuri.org/" binding="q2:InboxServiceSoap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
</discovery>
에 같이있어하지만 난 서버에 내 응용 프로그램 (프로젝트)를 배포 할 때. 나는 내 프로젝트 URL이 예 : http://abc.com, 이제 내 webservice이 http://localhost:1518/popup-message/InboxService.asmx입니다.
내 페이지에서 호출하는 메소드에 연결하면 문제가 발생하지 않습니다.
anyhelp가 우수합니다. 감사합니다.
덕분에 < ": // localhost를 : HTTP 1518/팝업 메시지/InboxService.asmx"키 = "localhost.InboxService"값 =를 추가 /> \t appSettings는> 내 웹 설정에이 줄이 있습니다. 그래서 whta 변경 내가 여기 – happysmile
실제 웹 서비스의 주소로 변경해야 ... 나는 그게 뭔지 당신에게 말할 수 없습니다. –
Marc Gravell에게 감사드립니다. 잘 작동합니다. – happysmile