はい、同じ WSDL を公開する場合は、[同じサービス コントラクトを公開する] をオンにする必要があります。
Java コードでは、以下に示すような単純な axis2 クライアントを作成できます。プロキシの enxpoint へ。
public OMElement sendReceive(OMElement payload, String endPointReference, String operation)
throws AxisFault {
ServiceClient sender;
Options options;
OMElement response = null;
try {
sender = new ServiceClient();
options = new Options();
options.setTo(new EndpointReference(endPointReference));
options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
options.setTimeOutInMilliSeconds(45000);
options.setAction("urn:" + operation);
sender.setOptions(options);
response = sender.sendReceive(payload);
} catch (AxisFault axisFault) {
throw new AxisFault("AxisFault while getting response :" + axisFault.getMessage(), axisFault);
}
Assert.assertNotNull(response);
return response;
}
SOAP UI のようなツールを結び付けることで、サンプル ペイロードを取得できます。
ありがとう、ダルシャナ。