 |
|
 |
1.Question
When in call the webservice usign async=false it works correctly when i give async=true it does not return any alert message or exception.
2. another on question
when i call the webservice using the ip of the host message it ask security risk information how to solve this throught the javascript
any replay is welcome
email me Ramalingam@Cusdelight.com
|
|
|
|
 |
|
 |
Does anyone have a version of soapclient.js that is compatible with firefox, I too am receiving the object object error? We're in a bit of a jam here since we have to support the common browsers, IE, Chrome, Firefox and Safari. Any help would be greatly appreciated.
|
|
|
|
 |
|
 |
hello Gökmen
i crete a simple asp.net web service. when i add my url (for example "http://localhost:2494/Service1.asmx"), it work on IE but not work in Firefox. i checked the Firefox Error Console and find that below line of code has error:
var ns = (wsdl.documentElement.attributes["targetNamespace"] + "" == "undefined") ? wsdl.documentElement.attributes.getNamedItem("targetNamespace").nodeValue : wsdl.documentElement.attributes["targetNamespace"].value;
i check and find that when this line of code run in IE, "ns" variable set to "http://tempuri.org/". i changed the code and set "ns" manually to "http://tempuri.org/" and run the code again. it work in IE again but in Firefox has error again in below line:
return document.getElementsByTagName(tagName);
please help me.
|
|
|
|
 |
|
|
 |
|
 |
Hi BULUT,
I am trying to call a web service made in Java from Windows Form 2.0. Sometimes it works fine and sometimes it gives an error which is mentioned in the subject.
When I tried searching the solution on the internet most of them suggested to override the function GetWebRequest(), and in that assign the KeepAlive property to "False" and use ProtocolVersion as 1.0.
I tried the above solution but that did'nt work out for me. Kindly suggest a workable solution for my problem.
Best Regards,
Qutub.
|
|
|
|
 |
|
 |
Hello,
I have a case in which i have to call a web service created in java from javascript in html page.
I tried using webservice.htc but in that call is being made to method of webservice but i'm unable to send the parameters.
So i want to try with you example but i have a doubt because of below code
var url = document.location.href.replace("default.htm", "webservicedemo.asmx");
Here in Java we dont have asmx, instead have a wsdl file.
Rajen Raiyarela.
|
|
|
|
 |
|
 |
I want to access webserice that besides on other domain like...htttp://www.exa.com/test.asmx
what i have to do.. i got error access denied.
|
|
|
|
 |
|
 |
i got the same error.
Any help appreciated, thanks.
|
|
|
|
 |
|
 |
same problem!
I call a web service written in java.
|
|
|
|
 |
|
 |
How did you called the Java Webserver? I mean, what did you put on URL variable instead of that file.asmx from the tutorial? Thank you!
|
|
|
|
 |
|
 |
Hi,
Now's someone how to pass parameters in a SOAP call? I tried my own webservice and all works if the functions has no parameters, but not when there's a String or a XmlDocument parameter
thank's
|
|
|
|
 |
|
 |
Hi, I'm using your soapclient.js file for a WebMethod that returns a string. It seems to be working fine in IE and Chrome, but in Firefox the result returned is interpreted as "[object Object]". Am I the only one that has run into this problem and is there a solution?
Edit:
After further examination it appears the problem only appears with fairly long strings (ie, xml list of countries and country codes). Any idea what the issue may be?
Another Edit:
The problem appears to be the fact that the string is xml. As a workaround I modified the SOAPClient._onSendSoapRequest function with the code below; however, the workaround only helps with asynchronous results so a more elegant fix would be greatly appreciated.
SOAPClient._onSendSoapRequest = function(method, async, callback, wsdl, req)
{
var o = null;
var nd = SOAPClient._getElementsByTagName(req.responseXML, method + "Result");
if(nd.length == 0)
nd = SOAPClient._getElementsByTagName(req.responseXML, "return"); if(nd.length == 0)
{
if(req.responseXML.getElementsByTagName("faultcode").length > 0)
{
if(async || callback)
o = new Error(500, req.responseXML.getElementsByTagName("faultstring")[0].childNodes[0].nodeValue);
else
throw new Error(500, req.responseXML.getElementsByTagName("faultstring")[0].childNodes[0].nodeValue);
}
}
else
o = SOAPClient._soapresult2object(nd[0], wsdl);
var resultText;
if (req.responseXML.getElementsByTagName(method + "Result").item(0))
{
resultText = req.responseXML.getElementsByTagName(method + "Result").item(0).textContent;
if (!resultText) resultText = req.responseXML.getElementsByTagName(method + "Result").item(0).text;
}
if(callback)
callback(o, req.responseXML, resultText);
if(!async)
return o;
}
modified on Sunday, May 3, 2009 10:36 PM
|
|
|
|
 |
|
 |
can i please see your functions to call the soapclient? im learning this library and would like to know how to put stuff into strings to document.write etc
|
|
|
|
 |
|
 |
Thanks - this is great!
When I replace webservicedemo.asmx with another web service that is not in the same project, I can't get even the Hello World example to work (copied same Hello World and it works if I invoke it manually).
I have something like this in place of webservicedemo.asmx "http://localhost:2360/Metadata/WebService.asmx"
Any ideas?
|
|
|
|
 |
|
 |
Thanks brother
Gökmen BULUT
SENIOR SOFTWARE DEVELOPER
|
|
|
|
 |