Forum: ASP.NET |
Thema:
useservice problem |
Von:
G. Guest (
05.08.2005 22:52) |
Hello,
I have the following problem. I have some pages which are using webServices
with javascript.
When I try to initiate service using
service.useService("webservice.asmx?WSDL","myservice");
this give me a javascript error "Object doesn't support this property or
method".
I suppose this happen because of the webservice.htc cause this probably is
not loaded. This problem happening on my machine with xp+sp2 and iis5. On
windows 2000 +sp4 and iis this is not happening. What can be the problem?
code looks like this and is working on win2k+sp4
<body onload="loadService();" class="body">
<div style="behavior:webservice.htc" id="service"
onresult="storeToSession()" Navigate="true"></div>
</body>
loadService(){
try{
document.all.service.useService("WebService.asmx?WSDL", "service");
}catch(e){}
// here is the problem because it give me a javascript error "Object
doesn't support this property or method"
}
can someone tell me where is the problem?
Thanks
Betreff |
Von |
Datum |
|
|
Re: useservice problem
Hi,<br><br>it really looks like that webservice.htc isn't loaded. Maybe one of the following could help (please excuse the first Question ;-) ):<br><br>1) Do you really have webservice.htc in the same... |
|
|
|
|
|
Peter
Knoll
|
06.08.2005 11:08 |
|
|
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!