First step is to load Web Service class .
That you can do by: load(”webservices/WebServices.asc”);
Others steps are same as Web Service call from client side…
Will have to define an WebService
webServiceObj = new WebService(WSDLPath); // where WSDLPath is Web Service WSDL path.
Next we have to define onLoad and onFault methods for the ‘webServiceObj’
webServiceObj.onLoad = function(Wsdl){
trace(”result string — ” + Wsdl);
}
webServiceObj.onFault = function(fault){
trace(”wetherservice fault –” + fault.faultstring);
}
Next step is to call Web Methods…
It’s very much same as
callWebMethod = webServiceObj.webMethodName()
callWebMethod.onResult = function(returning){
trace( “callWebMethod returning String — “ + returning)
}
原文地址:http://xinsync.xju.edu.cn/index.php/archives/1872

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-04-20
  • 2021-10-17
  • 2022-12-23
猜你喜欢
  • 2021-04-13
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-01-21
相关资源
相似解决方案