dummyservice.java
来自「bpel执行引擎用来执行bpel业务流程」· Java 代码 · 共 28 行
JAVA
28 行
package org.apache.ode.axis2;import org.apache.axiom.om.OMAbstractFactory;import org.apache.axiom.om.OMElement;import org.apache.axiom.om.OMFactory;import org.apache.axis2.AxisFault;import javax.xml.namespace.QName;/** * @author Matthieu Riou <mriou@apache.org> */public class DummyService { public String hello(String in) { return in + " world"; } public String faultTest(String in) throws DummyException, AxisFault { OMFactory factory = OMAbstractFactory.getOMFactory(); OMElement root = factory.createOMElement(new QName("http://axis2.ode.apache.org", "DummyException")); OMElement reason = factory.createOMElement(new QName("http://axis2.ode.apache.org", "reason")); reason.setText("Something went wrong. Fortunately, it was meant to be."); root.addChild(reason); throw new AxisFault(new QName("http://schemas.xmlsoap.org/soap/envelope/", "Client"), "dummy reason", "dummy node", "dummy role", root); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?