[ Неустранимая ошибка] :26:30: За типом элемента "HdrInfo" должна следовать
либо спецификация атрибута, ">" или "/>". За типом элемента "HdrInfo"
должны следовать либо спецификации атрибута, ">" или "/>".
org.xml.sax.SAXParseException; Номер строки: 26; columnsNumber: 30;
За типом элемента «HdrInfo» должна следовать спецификация атрибута
: «>» или «/>».
Это результат Маршаллера
Код: Выделить всё
001
0
Код: Выделить всё
private String marshal(SoapEnvelope req) throws JAXBException {
StringResult result = new StringResult();
Marshaller marshaller = JAXBContext.newInstance(SoapEnvelope.class,
SoapBody.class,PaymentRequest.class, CsiPaymentRequest.class,
CsiRequestHeader.class).createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
marshaller.marshal(req, result);
System.out.println(result);
return result.toString();
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... ifications
Мобильная версия