你可以在vbs中先作测试.看看到达是脚本的问题,还是iis的问题.如果是ntfs格式,可能有权限限制.
还有,调试脚本程序可以使用脚本调试器.

解决方案 »

  1.   

    再VB Script中不支持返回的具体类型,只能是Variant类型。修改建议: interface IMyWeb : IDispatch
    {
    [id(1), helpstring("method Test")] HRESULT Test([in]BSTR sName,[out,retval]BSTR* sAnswers);
    };或:
    interface IMyWeb : IDispatch
    {
    [id(1), helpstring("method Test")] HRESULT Test([in]BSTR sName,[out]VARIANT* sAnswers);
    };
      

  2.   

    sorry,应该是输出类型。在IDL定义中的[out]返回值没有影响,即[out, retval]