我用的不是webservice.htc,
new Ajax.Request('../WebService/WebService.asmx/PersonInfo',b),在本地可以,传上网站就不行了,不能访问,不知道是什么问题,请各位帮帮忙,谢谢
new Ajax.Request('../WebService/WebService.asmx/PersonInfo',b),在本地可以,传上网站就不行了,不能访问,不知道是什么问题,请各位帮帮忙,谢谢
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>
都加上试试建议不要用htc
我在本地调用webserices可以的,就是传上服务器上就不行了,不知道是不是路径的问题,但测试了半天还是不行,
网上的这样的地址就不能访问,但是网上的http://*****/WebService/WebService.asmx这样的地址能访问,加了后面的PersonInfo?id=0000000000001&type=1就不行,
../WebService1.asmx/HelloWorld(function) evalResponse
(function) getHeader
(function) isSameOrigin
(function) respondToReadyState
(function) getStatus
(function) success
(function) setRequestHeaders
(function) onStateChange
(boolean) _complete
(function) initialize
(object) options
(object) transport
(function) request
(string) url
(string) method
(object) parameters
(function) dispatchExceptionnull
0
我碰到这样的问题(本地都不行):
(Error) status: Unspecified error.
(Error) responseXML: The data necessary to complete this operation is not yet available.
(Error) responseBody: The data necessary to complete this operation is not yet available.
(object) onreadystatechange: null
(number) readyState
(Error) responseText: The data necessary to complete this operation is not yet available.
(Error) statusText: Unspecified error.