webservice调用java的普通接口,要求返回soap报文,该怎么写呢
有帮助的话 采纳一下
webservice调用java普通接口并返回soap响应的方法如下:
public class ServiceImpl implements ServiceInterface {
public String invokeNormal(String arg) {
NormalInterface interface = new NormalInterfaceImpl();
return interface.normalMethod(arg);
}
}
public class ServiceImpl implements ServiceInterface {
//...
}
@WebMethod
@WebResult(name="response")
public String invokeNormal(String arg) {
//...
}