我有一个SpringWS inplementation with the enpoint implementation
@PayloadRoot(namespace="http://college.com/schema/get_XML_Request/v2",localPart="get_XML_Request")
@ResponsePayload
public JAXBElement<GetStudentResponseType> handleStudentXML(@RequestPayload JAXBElement<GetStudentXMLRequestType> SoapRequest)throws Exception
{
String xmlResponse = "";
com.college.get_student_xml_response.v2.ObjectFactory objectFactory = new com.company.schema.get_student_xml_response.v2.ObjectFactory();
com.college.schema.get_student_xml_response.v2.GetResponseType resType = objectFactory.createGetResponseType();
return objectFactory.createGetStudentResponse(resType);
}
这里我的目标是记录Web服务发送回我的webservice和响应的请求。是否有可能从上面的方法中获取SoapRequest / Soapresponse(在Soapformat中)作为String.Here能够获得有效负载,但我需要使用整个SoapRequest(使用soapenvelope,body)进行登录。请有人就此提出建议。 / p>