} catch (WSDLException ex) { ex.printStackTrace();
wex.printStackTrace(); } catch (FileNotFoundException fnfe) { throw new ToolException("Output file " + file + " not found", fnfe);
wex.printStackTrace(); } catch (FileNotFoundException fnfe) { throw new ToolException("Output file " + file + " not found", fnfe);
void serviceRequest(final PipeResponse response) throws IOException { if (!response.getURLConnection().getDoInput()) { try { Definition def = EndpointReferenceUtils.getWSDLDefinition(bus.getWSDLManager(), reference); Map<String, List<String>> headers = new LinkedHashMap<String, List<String>>(); headers.put("Content-Type", Arrays.asList(new String[] {"text/xml"})); OutputStream out = response.setResponse(headers); bus.getWSDLManager().getWSDLFactory().newWSDLWriter().writeWSDL(def, out); out.flush(); out.close(); return; } catch (WSDLException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } HTTPServerInputStreamContext ctx = new HTTPServerInputStreamContext(this) { public void initContext() throws IOException { super.initContext(); inStream = response.getRequestInputStream(); origInputStream = inStream; } }; ctx.put(PIPE_RESPONSE, response); ctx.initContext(); callback.dispatch(ctx, this); }
private void createSoapExtensors(Bus bus, EndpointInfo ei, SoapBindingInfo bi, boolean isSoap12) { try { String address = ei.getAddress(); if (address == null) { address = "http://localhost:9090"; } ExtensionRegistry registry = bus.getExtension(WSDLManager.class).getExtensionRegistry(); SoapAddress soapAddress = SOAPBindingUtil.createSoapAddress(registry, isSoap12); soapAddress.setLocationURI(address); ei.addExtensor(soapAddress); } catch (WSDLException e) { e.printStackTrace(); } }
private void createSoapExtensors(Bus bus, EndpointInfo ei, SoapBindingInfo bi, boolean isSoap12) { try { String address = ei.getAddress(); if (address == null) { address = "http://localhost:9090"; } ExtensionRegistry registry = bus.getExtension(WSDLManager.class).getExtensionRegistry(); SoapAddress soapAddress = SOAPBindingUtil.createSoapAddress(registry, isSoap12); soapAddress.setLocationURI(address); ei.addExtensor(soapAddress); } catch (WSDLException e) { e.printStackTrace(); } }
public void generate() { Binding binding = definition.createBinding(); binding.setQName(new QName(WSDLConstants.NS_WSDL, wmodel.getPortTypeName() + "Binding")); binding.setPortType(definition.getPortType(new QName(wmodel.getTargetNameSpace(), wmodel .getPortTypeName()))); // genearte the soap binding javax.wsdl.extensions.soap.SOAPBinding soapBinding; try { soapBinding = (javax.wsdl.extensions.soap.SOAPBinding)extensionRegistry .createExtension(Binding.class, new QName(WSDLConstants.SOAP11_NAMESPACE, "binding")); soapBinding.setTransportURI("http://schemas.xmlsoap.org/soap/http"); soapBinding.setStyle(wmodel.getStyle().toString().toLowerCase()); binding.addExtensibilityElement(soapBinding); } catch (WSDLException e) { // TODO Auto-generated catch block e.printStackTrace(); } generateBindingOperation(binding); binding.setUndefined(false); definition.addBinding(binding); }
} catch (WSDLException ex) { ex.printStackTrace();
createSoapBinding(info); } catch (WSDLException e) { e.printStackTrace();
createSoapBinding(info); } catch (WSDLException e) { e.printStackTrace();