这可能是一个简单的问题,但我似乎无法确定它。
我有一个简单的表单,有 2 个字段,文本和文件,即
<form>
<input type="text" name="textfield">
<input type="file" name="filefield">
</form>
捕获该内容的 CXF 方法声明是什么?
谢谢!
最佳答案
您可以像这样创建简单的网络服务:
@WebService
public class SimpleWs
{
@WebMethod
public String upload(String textfield, byte[] filefield) {
// ...
return "OK";
}
}
然后是these instructions在 CXF 的网站上。
关于java - 表单的 CXF 方法声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10780668/