2009-10-18 3 views
1

로컬 서비스에서 이름 (받은 편지함 서비스)으로 웹 서비스를 개발했습니다. 내가 웹 참조 를 추가했을 때 내가 내 웹 서비스 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가 우수합니다. 감사합니다.

답변

2

web.config/app.config에서 URL을 편집하셨습니까? 웹 참조가 dll (웹 계층 자체가 아님)에 있으면 을 참조하십시오.을 참조하십시오. web.config; 그런 경우에는 VS의 dll 구성에서 web.config로 설정을 복사하십시오. dll configs는 그 값을 복사/붙여 넣기를 제공하는 것을 제외하고는 실제로 아무 것도하지 않습니다. 마크 Gravell \t \t 재생을위한

+0

덕분에 < ": // localhost를 : HTTP 1518/팝업 메시지/InboxService.asmx"키 = "localhost.InboxService"값 =를 추가 /> \t 내 웹 설정에이 줄이 있습니다. 그래서 whta 변경 내가 여기 – happysmile

+0

실제 웹 서비스의 주소로 변경해야 ... 나는 그게 뭔지 당신에게 말할 수 없습니다. –

+0

Marc Gravell에게 감사드립니다. 잘 작동합니다. – happysmile