WCFService调用问题
The document at the url http://222.211.85.236:8080/MobilePayService/MobilePayWCFService.svc was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
- Report from 'http://222.211.85.236:8080/MobilePayService/MobilePayWCFService.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
- Report from 'DISCO Document' is 'There was an error downloading 'http://server:8080/MobilePayService/MobilePayWCFService.svc?disco'.'.
- The remote name could not be resolved: 'server'
- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
Metadata contains a reference that cannot be resolved: 'http://222.211.85.236:8080/MobilePayService/MobilePayWCFService.svc'.
Content Type application/soap+xml; charset=utf-8 was not supported by service http://222.211.85.236:8080/MobilePayService/MobilePayWCFService.svc. The client and service bindings may be mismatched.
The remote server returned an error: (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'..
If the service is defined in the current solution, try building the solution and adding the service reference again.
在本机调试是正常的,但放在外网,就无法引用了,那个 Server:8080始终无法变成IP,哪位大哥救救小弟,急
服务地址:
http://222.211.85.236:8080/MobilePayService/MobilePayWCFService.svc