I use JIBX to create my entity classes from XSD files. It is configured in pom.xml and creates classes when I do a "maven: compile"
I also use spring-ws. When I test my web service with SOAPUI I get the infamous error;
"No adapter for endpoint GetTransactionsResponse getTransactions(GetTransactionsRequest), Is your endpoint annotated with @Endpoint, or does.." I checked all the threads here about that error but didn't help.
I have one Parent.xsd and it imports 2 child xsd's. They are all in the same folder. This is how my spring-ws-servlet looks like;
/WEB-INF/Parent.xsd
This is my endpoint class;
@Endpoint public class TransactionsEndpoint { public static final String NAMESPACE = "nmapespace"; @PayloadRoot(namespace = NAMESPACE, localPart = "getTransactionsRequest") @ResponsePayload public GetTransactionsResponse getTransactions(@RequestPayload GetTransactionsRequest request) { GetTransactionsResponse transactionsResponse = new GetTransactionsResponse(); return transactionsResponse; } } GetTransactionsResponse/Request classes created by JIBX.
My wsdl looks like this;
pom file is;
org.springframework.ws spring-ws-core org.apache.ws.xmlschema xmlschema-core 2.0.2 I am not sure if the problem is because there are 3 xsd files and something goes wrong between those or it is a configuration problem with JIBX because When I try to use JAXB instead of JIBX, it worked!