以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  执行服务时的问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=62538)


--  作者:TianxiangShen
--  发布时间:5/13/2008 12:42:00 PM

--  执行服务时的问题
大家好,以下代码为执行一个服务,但是通过单步调试发现当运行到
values = exec.execute(process, values);时程序就退出了,请指教,谢谢~~

public void runDictionary() throws Exception {
        OWLKnowledgeBase kb = OWLFactory.createKB();
        service = kb.readService("http://www.mindswap.org/2004/owl-s/1.1/Dictionary.owl");
        process = service.getProcess();

        // initialize the input values to be empty
        values = new ValueMap();

        inValue = "hello";
        values.setDataValue(process.getInput("InputString"), inValue);
        values = exec.execute(process, values);

        // get the output
        OWLDataValue out = (OWLDataValue) values.getValue(process.getOutput());

        // do something with output
    }


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
42.969ms