SOAP-ENV:Server всегда имеет одно и то же значение в SOAP и Spring WS.JAVA

Программисты JAVA общаются здесь
Anonymous
SOAP-ENV:Server всегда имеет одно и то же значение в SOAP и Spring WS.

Сообщение Anonymous »


I am to try catching the exception from a SOAP web service in Spring WS (java) with the follows code:

String faultString = "String Y"; String faultCodeValue = "Code X"; QName faultCode = new QName("http://schemas.xmlsoap.org/soap/envelope/", faultCodeValue); SOAPFault soapFault = null; soapFault = SOAPFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL).createFault(faultString, faultCode); throw new SOAPFaultException(soapFault); However I always getting the same like this (SOAP-ENV:Server)

(even when I changed the value in faultCodeValue variable):

SOAP-ENV:Server String Y Does Someone knows how to change this value in the web service response?


Источник: https://stackoverflow.com/questions/448 ... p-and-spri

Вернуться в «JAVA»