Java服务 - webmethods

时间:2015-12-03 07:19:33

标签: java webmethods

package Folder.Service;

import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;

public final class new_javaService_SVC
{

public static final void new_javaService(IData pipeline)
        throws ServiceException {

    // pipeline
    IDataCursor pipelineCursor = pipeline.getCursor();
    String  input1 = IDataUtil.getString( pipelineCursor, "input1" );
    String  input2 = IDataUtil.getString( pipelineCursor, "input2" );
    pipelineCursor.destroy();

    String output1 = "hello back, you gave me " + input1 +" and " + input2;

    // pipeline
    IDataCursor pipelineCursor_1 = pipeline.getCursor();
    IDataUtil.put( pipelineCursor_1, "output1", output1 );
    pipelineCursor_1.destroy();
} }

每当我运行任何java服务时,我都会收到错误。错误是: 已在此编译单元中定义Folder.Service import com.wm.app.b2b.server.Service;

任何人都可以帮忙。

1 个答案:

答案 0 :(得分:1)

我假设你做到了(或类似的东西)

enter image description here

如果您将Service重命名为Service2,您的问题就会得到解决。

试用版本9.8。