Я не могу получить этот результат из Java.Мне нужно воссоздать точный ответ ниже.Я не очень знаком с аннотациями
public TestIface(){
private String code;
private String codeDesc;
@WebMethod(operationName = "Test")
public TestIface Test(@WebParam (name = "Code", targetNamespace = "http://aaa.com.ph/") String ac,) {
TestIface testIface= new TestIface();
testIface.setCode("0000");
testIface.setCodeDesc("TEST");
return testIface;
}
}
Фактический результат:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:TestResponse xmlns:ns2="http://aaa.com.ph/">
<return>
<code>0000</code>
<codeDesc>TEST</codeDesc>
</return>
</ns2:TestResponse>
</S:Body>
</S:Envelope>
Ожидаемый результат:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<NS1:TestResponse xmlns:NS1="http://aaa.com.ph/">
<code>0000</code>
<codeDesc>TEST</codeDesc>
</NS1:TestResponse>
</soapenv:Body>
</soapenv:Envelope>