user1552545
user1552545

Reputation: 1331

Spring Integration : How to check whether the input wsdl message is valid?

I want to call a web services with Spring Integration. I have a soap message in a java String, and I want to validate it against the wsdl, before sending it to the external soap endpoint. How can I do that?

Upvotes: 0

Views: 358

Answers (1)

Artem Bilan
Artem Bilan

Reputation: 121347

You don't do that against the whole WSDL, because one requests is not about contract and transport description. See PayloadValidatingInterceptor, which can be supplied with an XSD schema and injected into the AbstractWebServiceOutboundGateway.

See more in docs:

https://docs.spring.io/spring-ws/docs/current/reference/html/#_code_payloadvalidatinginterceptor_code

Upvotes: 1

Related Questions