0
:代わりに形式のSOAP応答
<soap:Envelope>
<soap:Body>
<CustomRS attr="somevalue">
<Success/>
</CustomRS>
</soap:Body>
</soap:Envelope>
を、私は
<soap:Envelope>
<soap:Body>
<PingResponse>
<CustomRS attr="somevalue">
<Success/>
</CustomRS>
</PingResponse>
</soap:Body>
</soap:Envelope>
「Ping]を」この応答を取得することです私のWebMethodとCustomRSの名前は私のシリアライズ可能なレスポンスオブジェクトです。 PingResponse要素を取り除き、ルート要素としてCustomRSを使用するにはどうすればよいですか?
マイ実装
@WebService (name = '', serviceName = ''targetNamespace = '')
@Stateless (mappedName = '')
public class TestEjb implements Testnterface {
@SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL, parameterStyle=ParameterStyle.BARE)
@WebResult (name = "CustomRS", targetNamespace = "name space")
@WebMethod (operationName = "CustomRS")
public CustomRS_OutPut Ping(@WebParam (name = "header",Type type,
@WebParam (name = "parameters", Param param) throws Exception
{
}