Код: Выделить всё
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);
(даже когда я изменил значение переменной errorCodeValue):
Код: Выделить всё
SOAP-ENV:Server
String Y
Подробнее здесь: https://stackoverflow.com/questions/448 ... p-and-spri
Мобильная версия