당신은 당신이 단순히 SOAPMessageContext#getMessage()
를 사용하여 메시지가 당신이 클라이언트 측에서 SOAP 핸들러 여기에 대해 읽을 수 있습니다 또한
public static String getXmlMessage(SOAPMessage message) throws Exception
{
ByteArrayOutputStream os = new ByteArrayOutputStream();
message.writeTo(os);
final String encoding = (String) message.getProperty(SOAPMessage.CHARACTER_SET_ENCODING);
if (encoding == null)
{
return new String(os.toByteArray());
}
else
{
return new String(os.toByteArray(), encoding);
}
}
방법을 사용하여 String으로 메시지를 변환 할 수 있습니다
javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
를 사용하여 수행 할 수
Article
그래도이 문자열을 내 기본 응용 프로그램으로 어떻게 반환 할 수 있는지는 잘 모르겠지만. – FrustratedWithFormsDesigner
인쇄 요청/응답 로그에 대해이 프로젝트를 사용하고 있습니다. – Ilya
전역 변수 ArrayList를 만들고 모든 문자열을 여기에 넣을 수 있습니다. – Ilya