Answer the question
In order to leave comments, you need to log in
How to validate a soap request (jax-ws)?
Previously, in the project, for each soap service, xsd was first written, which indicated which parameters were required when requested, which were not. Limitations on the length of arrays, patterns for string fields were set up. Java classes were generated from xsd and they were already used when requested.
Now there is a desire to abandon the generation of java classes from xsd, and directly describe the service through annotations (jax-ws ri). Mapping is done through spring.
@WebService()
public class WebService{
@WebMethod()
public String printMessage(@WebParam() String name) {
return "hello "+name;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question