Код: Выделить всё
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);
(even when I changed the value in faultCodeValue variable):
SOAP-ENV:Server
String Y
< /code>
Кто -то знает, как изменить это значение в ответе веб -службы? < /p>
Подробнее здесь: https://stackoverflow.com/questions/448 ... p-and-spri