如何在ActionScript 3中将“ Null”(真实的姓氏!)传递给SOAP Web服务

非 Y 不嫁゛ 提交于 2020-08-17 06:30:35

问题:

We have an employee whose surname is Null. 我们有一个姓为Null的员工。 Our employee lookup application is killed when that last name is used as the search term (which happens to be quite often now). 当使用该姓氏作为搜索词时,我们的员工查找应用程序将被杀死(这种情况现在经常发生)。 The error received (thanks Fiddler!) is: 收到的错误(感谢Fiddler!)是:

<soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.MissingArgumentException : The SEARCHSTRING parameter to the getFacultyNames function is required but was not passed in.]</faultstring>

Cute, huh? 可爱吧?

The parameter type is string . 参数类型为string

I am using: 我在用:

  • WSDL ( SOAP ) WSDLSOAP
  • Flex 3.5 Flex 3.5
  • ActionScript 3 动作脚本3
  • ColdFusion 8 ColdFusion 8

Note that the error does not occur when calling the webservice as an object from a ColdFusion page. 请注意,从ColdFusion页面将Webservice作为对象调用时,不会发生该错误。


解决方案:

参考一: https://stackoom.com/question/IhK2/如何在ActionScript-中将-Null-真实的姓氏-传递给SOAP-Web服务
参考二: https://oldbug.net/q/IhK2/How-to-pass-Null-a-real-surname-to-a-SOAP-web-service-in-ActionScript-3
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!