destination.invoke(request, response);
}
public void getWsdl(Request request, Response response) throws Exception {
WSDLWriter wsdlWriter = WSDLFactory.newInstance().newWSDLWriter();
EndpointInfo ei = this.destination.getEndpointInfo();
Definition def = new ServiceWSDLBuilder(ei.getService()).build();
/* FIXME: this doesn't quite work yet
Port port = def.getService(ei.getService().getName()).getPort(ei.getName().getLocalPart());
List<?> exts = port.getExtensibilityElements();
if (exts.size() > 0) {
ExtensibilityElement el = (ExtensibilityElement)exts.get(0);
if (SOAPBindingUtil.isSOAPAddress(el)) {
SoapAddress add = SOAPBindingUtil.getSoapAddress(el);
add.setLocationURI(request.getURI().toString());
}
if (el instanceof AddressType) {
AddressType add = (AddressType)el;
add.setLocation(request.getURI().toString());
}
}
*/
wsdlWriter.writeWSDL(def, response.getOutputStream());
}