Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
211 views
in Technique[技术] by (71.8m points)

spring

@WebService(serviceName = "Comn")
@Component
public class UserService {
 @WebMethod(operationName = "saveUser")
 @WebResult
 public String saveUser(@WebParam User user) {
 return "";
    }
}

这是一个webservice项目,为了节约数据长度,入参是一个string(demo为#HEAD#::张三::男::16::#END,多个字段有序用::分割),但是我想在WebMethod之前把这个string转换为bean。如果我自定义convert,并把WebParam的类型改为User以后,发布的wsdl入参就不是一个string而是一个bean了,这个要如何处理呢


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...