private void build(Service service) { for( Iterator<Port> itr=service.ports(); itr.hasNext(); ) { build(itr.next() ); } }
private void build(Service service) { for( Iterator<Port> itr=service.ports(); itr.hasNext(); ) { build(itr.next() ); } }
private void build(Service service) { for( Iterator<Port> itr=service.ports(); itr.hasNext(); ) { build(itr.next() ); } }
private void build(Service service) { for( Iterator<Port> itr=service.ports(); itr.hasNext(); ) { build(itr.next() ); } }
private void build() { for(Iterator<Service> itr=wsdlDocument.getDefinitions().services(); itr.hasNext(); ) { build(itr.next()); } }
private void build() { for(Iterator<Service> itr=wsdlDocument.getDefinitions().services(); itr.hasNext(); ) { build(itr.next()); } }
private void build() { for(Iterator<Service> itr=wsdlDocument.getDefinitions().services(); itr.hasNext(); ) { build(itr.next()); } }
private void build() { for(Iterator<Service> itr=wsdlDocument.getDefinitions().services(); itr.hasNext(); ) { build(itr.next()); } }
public static List<InputSource> build(WSDLModeler wsdlModeler, WsimportOptions options, ErrorReceiver errReceiver) { PseudoSchemaBuilder b = new PseudoSchemaBuilder(wsdlModeler.document); b.wsdlModeler = wsdlModeler; b.options = options; b.build(); int i; for(i = 0; i < b.schemas.size(); i++){ InputSource is = b.schemas.get(i); is.setSystemId(sysId+(i + 1)); } //add w3c EPR binding if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){ InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding))); is.setSystemId(sysId+(++i +1)); b.schemas.add(is); } //TODO: uncomment after JAXB fixes the issue related to passing multiples of such bindings //add member submission EPR binding // InputSource is1 = new InputSource(new ByteArrayInputStream(memberSubmissionEPR.getBytes())); // is1.setSystemId(sysId+(++i + 1)); // b.schemas.add(is1); return b.schemas; }
public static List<InputSource> build(WSDLModeler wsdlModeler, WsimportOptions options, ErrorReceiver errReceiver) { PseudoSchemaBuilder b = new PseudoSchemaBuilder(wsdlModeler.document); b.wsdlModeler = wsdlModeler; b.options = options; b.build(); int i; for(i = 0; i < b.schemas.size(); i++){ InputSource is = b.schemas.get(i); is.setSystemId(sysId+(i + 1)); } //add w3c EPR binding if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){ InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding))); is.setSystemId(sysId+(++i +1)); b.schemas.add(is); } //TODO: uncomment after JAXB fixes the issue related to passing multiples of such bindings //add member submission EPR binding // InputSource is1 = new InputSource(new ByteArrayInputStream(memberSubmissionEPR.getBytes())); // is1.setSystemId(sysId+(++i + 1)); // b.schemas.add(is1); return b.schemas; }
public static List<InputSource> build(WSDLModeler wsdlModeler, WsimportOptions options, ErrorReceiver errReceiver) { PseudoSchemaBuilder b = new PseudoSchemaBuilder(wsdlModeler.document); b.wsdlModeler = wsdlModeler; b.options = options; b.build(); int i; for(i = 0; i < b.schemas.size(); i++){ InputSource is = b.schemas.get(i); is.setSystemId(sysId+(i + 1)); } //add w3c EPR binding if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){ InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding))); is.setSystemId(sysId+(++i +1)); b.schemas.add(is); } //TODO: uncomment after JAXB fixes the issue related to passing multiples of such bindings //add member submission EPR binding // InputSource is1 = new InputSource(new ByteArrayInputStream(memberSubmissionEPR.getBytes())); // is1.setSystemId(sysId+(++i + 1)); // b.schemas.add(is1); return b.schemas; }
public static List<InputSource> build(WSDLModeler wsdlModeler, WsimportOptions options, ErrorReceiver errReceiver) { PseudoSchemaBuilder b = new PseudoSchemaBuilder(wsdlModeler.document); b.wsdlModeler = wsdlModeler; b.options = options; b.build(); int i; for(i = 0; i < b.schemas.size(); i++){ InputSource is = b.schemas.get(i); is.setSystemId(sysId+(i + 1)); } //add w3c EPR binding if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){ InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding))); is.setSystemId(sysId+(++i +1)); b.schemas.add(is); } //TODO: uncomment after JAXB fixes the issue related to passing multiples of such bindings //add member submission EPR binding // InputSource is1 = new InputSource(new ByteArrayInputStream(memberSubmissionEPR.getBytes())); // is1.setSystemId(sysId+(++i + 1)); // b.schemas.add(is1); return b.schemas; }
/** * @param portType * @param operation * @param bindingOperation */ private void buildAsync(PortType portType, Operation operation, BindingOperation bindingOperation) { String operationName = getCustomizedOperationName(operation);//operation.getName(); if(operationName == null) return; Message outputMessage = null; if(operation.getOutput() != null) outputMessage = operation.getOutput().resolveMessage(wsdlDocument); if(outputMessage != null){ List<MessagePart> allParts = new ArrayList<MessagePart>(outputMessage.getParts()); if(options != null && options.additionalHeaders) { List<MessagePart> addtionalHeaderParts = wsdlModeler.getAdditionHeaderParts(bindingOperation, outputMessage, false); allParts.addAll(addtionalHeaderParts); } if(allParts.size() > 1) build(getOperationName(operationName), allParts); } }
/** * @param portType * @param operation * @param bindingOperation */ private void buildAsync(PortType portType, Operation operation, BindingOperation bindingOperation) { String operationName = getCustomizedOperationName(operation);//operation.getName(); if(operationName == null) return; Message outputMessage = null; if(operation.getOutput() != null) outputMessage = operation.getOutput().resolveMessage(wsdlDocument); if(outputMessage != null){ List<MessagePart> allParts = new ArrayList<MessagePart>(outputMessage.getParts()); if(options != null && options.additionalHeaders) { List<MessagePart> addtionalHeaderParts = wsdlModeler.getAdditionHeaderParts(bindingOperation, outputMessage, false); allParts.addAll(addtionalHeaderParts); } if(allParts.size() > 1) build(getOperationName(operationName), allParts); } }
/** * @param portType * @param operation * @param bindingOperation */ private void buildAsync(PortType portType, Operation operation, BindingOperation bindingOperation) { String operationName = getCustomizedOperationName(operation);//operation.getName(); if(operationName == null) return; Message outputMessage = null; if(operation.getOutput() != null) outputMessage = operation.getOutput().resolveMessage(wsdlDocument); if(outputMessage != null){ List<MessagePart> allParts = new ArrayList<MessagePart>(outputMessage.getParts()); if(options != null && options.additionalHeaders) { List<MessagePart> addtionalHeaderParts = wsdlModeler.getAdditionHeaderParts(bindingOperation, outputMessage, false); allParts.addAll(addtionalHeaderParts); } if(allParts.size() > 1) build(getOperationName(operationName), allParts); } }
/** * @param portType * @param operation * @param bindingOperation */ private void buildAsync(PortType portType, Operation operation, BindingOperation bindingOperation) { String operationName = getCustomizedOperationName(operation);//operation.getName(); if(operationName == null) return; Message outputMessage = null; if(operation.getOutput() != null) outputMessage = operation.getOutput().resolveMessage(wsdlDocument); if(outputMessage != null){ List<MessagePart> allParts = new ArrayList<MessagePart>(outputMessage.getParts()); if(options != null && options.additionalHeaders) { List<MessagePart> addtionalHeaderParts = wsdlModeler.getAdditionHeaderParts(bindingOperation, outputMessage, false); allParts.addAll(addtionalHeaderParts); } if(allParts.size() > 1) build(getOperationName(operationName), allParts); } }
protected void buildJAXBModel(WSDLDocument wsdlDocument) { JAXBModelBuilder tempJaxbModelBuilder = new JAXBModelBuilder(options, classNameCollector, forest, errReceiver); //set the java package where wsdl artifacts will be generated //if user provided package name using -p switch (or package property on wsimport ant task) //ignore the package customization in the wsdl and schema bidnings //formce the -p option only in the first pass if (explicitDefaultPackage != null) { tempJaxbModelBuilder.getJAXBSchemaCompiler().forcePackageName(options.defaultPackage); } else { options.defaultPackage = getJavaPackage(); } //create pseudo schema for async operations(if any) response bean List<InputSource> schemas = PseudoSchemaBuilder.build(this, options, errReceiver); for (InputSource schema : schemas) { tempJaxbModelBuilder.getJAXBSchemaCompiler().parseSchema(schema); } tempJaxbModelBuilder.bind(); this.jaxbModelBuilder = tempJaxbModelBuilder; }
protected void buildJAXBModel(WSDLDocument wsdlDocument) { JAXBModelBuilder tempJaxbModelBuilder = new JAXBModelBuilder(options, classNameCollector, forest, errReceiver); //set the java package where wsdl artifacts will be generated //if user provided package name using -p switch (or package property on wsimport ant task) //ignore the package customization in the wsdl and schema bidnings //formce the -p option only in the first pass if (explicitDefaultPackage != null) { tempJaxbModelBuilder.getJAXBSchemaCompiler().forcePackageName(options.defaultPackage); } else { options.defaultPackage = getJavaPackage(); } //create pseudo schema for async operations(if any) response bean List<InputSource> schemas = PseudoSchemaBuilder.build(this, options, errReceiver); for (InputSource schema : schemas) { tempJaxbModelBuilder.getJAXBSchemaCompiler().parseSchema(schema); } tempJaxbModelBuilder.bind(); this.jaxbModelBuilder = tempJaxbModelBuilder; }
protected void buildJAXBModel(WSDLDocument wsdlDocument) { JAXBModelBuilder tempJaxbModelBuilder = new JAXBModelBuilder(options, classNameCollector, forest, errReceiver); //set the java package where wsdl artifacts will be generated //if user provided package name using -p switch (or package property on wsimport ant task) //ignore the package customization in the wsdl and schema bidnings //formce the -p option only in the first pass if (explicitDefaultPackage != null) { tempJaxbModelBuilder.getJAXBSchemaCompiler().forcePackageName(options.defaultPackage); } else { options.defaultPackage = getJavaPackage(); } //create pseudo schema for async operations(if any) response bean List<InputSource> schemas = PseudoSchemaBuilder.build(this, options, errReceiver); for (InputSource schema : schemas) { tempJaxbModelBuilder.getJAXBSchemaCompiler().parseSchema(schema); } tempJaxbModelBuilder.bind(); this.jaxbModelBuilder = tempJaxbModelBuilder; }
protected void buildJAXBModel(WSDLDocument wsdlDocument) { JAXBModelBuilder tempJaxbModelBuilder = new JAXBModelBuilder(options, classNameCollector, forest, errReceiver); //set the java package where wsdl artifacts will be generated //if user provided package name using -p switch (or package property on wsimport ant task) //ignore the package customization in the wsdl and schema bidnings //formce the -p option only in the first pass if (explicitDefaultPackage != null) { tempJaxbModelBuilder.getJAXBSchemaCompiler().forcePackageName(options.defaultPackage); } else { options.defaultPackage = getJavaPackage(); } //create pseudo schema for async operations(if any) response bean List<InputSource> schemas = PseudoSchemaBuilder.build(this, options, errReceiver); for (InputSource schema : schemas) { tempJaxbModelBuilder.getJAXBSchemaCompiler().parseSchema(schema); } tempJaxbModelBuilder.bind(); this.jaxbModelBuilder = tempJaxbModelBuilder; }