I've written a web service in Visual Studio .Net 2003 and access it with IE
using webservice.htc without a problem. I'm trying to make it work with
Mozilla 1.6 and it connects to the web service but all the parameters are
empty! I set up the debugger in VS and it traps the call like it should...
however all the parameters evaluate to "Nothing".
I think I've tried every variation on how to create the parameter list, I've
event tried setting all the parameters to simple string constants but no
difference. The web service code runs like it should... I can trap it in
debug and follow it from line to line except its trying to work with
parameters of "Nothing" which isn't quite what I was wanting to happen.
SO CLOSE... and yet so far. Any help would be greatly appreciated. This
has got the better of me for a VERY long time.
Thanks so much,
Steve
The web method on the server side looks like:
<WebMethod(Description:="Launchs a SCO based on the CADE LMW")> _
Public Function LMSLaunch(ByVal org_int As String, ByVal person_int As
String, ByVal course_int As String, ByVal sco_identifier As String, ByVal
strData As String) As String
On the client side I'm using an .asp, and the code... although it seems like
I've tried a thousand variations... looks like:
var method = "LMSLaunch"
var soapVersion = 0
var headers = [ ]
var params = [
new SOAPParameter(org_int,"org_int"),
new SOAPParameter(person_int,"person_int"),
new SOAPParameter(course_int,"course_int"),
new SOAPParameter(SCO,"SCO"),
new SOAPParameter("<%=url%>","strData")
]
var CADEAPI = new SOAPCall();
CADEAPI.transportURI = "http://www.velocedge.com/net/LMWAPI/service1.asmx"
CADEAPI.actionURI = "SCORM12/" + method
CADEAPI.encode(soapVersion, method, "SCORM12/", headers.length, headers,
params.length, params);
var results = CADEAPI.invoke()
if (results.fault) {
alert(results.fault.faultString)
}
else {
var returnValue = new Array()
returnValue = results.getParameters(false,{})
alert('Returned ' + returnValue[0].value)
}
|