import org.springframework.oxm.jaxb.Jaxb2Marshaller;
@Bean
public Jaxb2Marshaller marshaller(){
Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
// this package must match the package in the <generatePackage> specified in
// pom.xml
marshaller.setContextPath("phoneverify.wsdl");
return marshaller;
}
1条答案
按热度按时间kgsdhlau1#
下面是一个很好的例子,你可以直接用jaxb转换它