soap:VersionMismatch Error : Soap 1.1 is coming as response in wildfly 31 instead of soap 1.2

61 views
Skip to first unread message

VIJAYABHASKARA REDDY

unread,
Apr 11, 2024, 6:29:31 AM4/11/24
to WildFly
Hi All,

I am getting below error after deployment of my war and when i try to access my url. 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:VersionMismatch</faultcode><faultstring>A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.</faultstring></soap:Fault></soap:Body></soap:Envelope>'

how to make SOAP 1.2 end point. i am using @bindingType as @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING) in my web service class. however i am getting only soap 1.1 only endpoint by container.

Thanks
--Vijay

frank.l...@outlook.de

unread,
Apr 11, 2024, 8:32:51 AM4/11/24
to WildFly
Did you try to switch to  jakarta.xml.ws.soap ?

VIJAYABHASKARA REDDY

unread,
Apr 12, 2024, 3:21:18 AM4/12/24
to WildFly
this is working when i use @BindingType(value = "http://www.w3.org/2003/05/soap/bindings/HTTP/")

Staffan Horke

unread,
Apr 12, 2024, 8:00:23 AM4/12/24
to VIJAYABHASKARA REDDY, WildFly
Hi Vijay,  That is indeed the value of the SOAP12HTTP_BINDING in Jakarta EE. Change from javax.xml.soap to jakarta.xml.ws.soap as Franks says should help you.

Best regards,
Staffan



--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/48bbf3f1-77b3-4c4b-8e3d-f553e7d41962n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages