如何让axis2 的webservice 返回自定义的xml给客户端

2024-12-28 11:59:32
推荐回答(1个)
回答1:

public OMElement AssertionRequest(OMElement soapBody)
{
logger.debug(soapBody.getText());
//解析请求信息
OMElement xmlRespElement = 生成要返回的信息;
return xmlRespElement;
}

service.xml中配置信息




This is the service for assertion.

com.jit.service.province.AssertService


class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
urn:AssertionRequest