I have a WSDL which defines a SOAP 1.2 endpoint. However, when using Spring boot with Apache CXF the endpoint which is presented to me seems to offer a SOAP 1.1 and SOAP 1.2 endpoint at the same location! Obviously this is not good and I don't want to the SOAP 1.1 endpoint at all. Does anyone know how to get rid of it, i.e. only produce the SOAP 1.2 endpoint which is defined in the WSDL.
I've tried using annotations, which didn't work. I could explicitly set the SOAP version when defining the endpoint configuration in code (which did work), but I'd rather use a bean/jaxws config file as this enables me to add different interceptors and amend the endpoint without amending the code.
Any suggestions / tutorials on the subject are most welcome
posted 2 years ago
I'll add some more information.
My wsdl definition only has an endpoint for SOAP 1.2
Annoyingly, there are both defined to be the same endpoint location, so I can't access the SOAP 1.2 endpoint, all requests are rejected with "A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint."
I can get around this by defining the endpoint in Java (although I cannot figure out how to replicate the jaxb-validation-event-handler in Java code!), but I'd rather use XML configuration.
Does anyone have any suggestions to either only generate a SOAP 1.2 endpoint, or seperate out the endpoint locations?
Climb the rope! CLIMB THE ROPE! You too tiny ad:
Devious Experiments for a Truly Passive Greenhouse!