throws WSDLException Class compExtCtxClass = queryComponentExtension(parentClass, extNamespace); String msg = getErrorReporter().getFormattedMessage("WSDL015", new Object[] {extNamespace.toString(), parentClass.getName()}); throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "WSDL015: " + msg); Class[] ctorParms = new Class[] {WSDLComponent.class, URI.class, ErrorReporter.class}; Constructor ctor = compExtCtxClass.getConstructor(ctorParms); Object[] ctorParmValues = new Object[] {parentComp, extNamespace, getErrorReporter()}; compExtCtx = (ComponentExtensionContext)ctor.newInstance(ctorParmValues); String msg = getErrorReporter().getFormattedMessage("WSDL009", new Object[] {compExtCtxClass.getName()}); throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "WSDL009: " + msg, e);
private ComponentExtensionContext createComponentExtensions(Class parentClass, WSDLComponent parentComp, URI extNS) { ExtensionRegistry er = fDesc.getWsdlContext().extensionRegistry; ComponentExtensionContext compExt = null; try { compExt = er.createComponentExtension(parentClass, parentComp, extNS); //TODO remove with woden-47 ((ComponentExtensionsImpl) compExt).init(parentElem, extNS); } catch (WSDLException e) { // This exception occurs if there is no Java class registered for // the namespace, but // this namespace was obtained from the extension registry so we // know that a Java class is // registered and that this exception cannot occur. Ignore the catch // block. } return compExt; }
XMLAttr xmlAttr = extReg.createExtAttribute(wsdlClass, attrType, extEl, attrValue); if(xmlAttr != null) //TODO use an 'UnknownAttr' class in place of null
implClass = queryExtAttributeType(WSDLElement.class, new QName("http://ws.apache.org/woden", "DefaultAttr")); String msg = getErrorReporter().getFormattedMessage("WSDL011", new Object[] {attrQName.toString()}); throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "WSDL011: " + msg); Class[] ctorParms = new Class[] {XMLElement.class, QName.class, String.class, ErrorReporter.class}; Constructor<XMLAttr> ctor = implClass.getConstructor(ctorParms); Object[] ctorParmValues = new Object[] {ownerElement, attrQName, attrValue, getErrorReporter()}; attr = ctor.newInstance(ctorParmValues); String msg = getErrorReporter().getFormattedMessage("WSDL009", new Object[] {implClass.getName()}); throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "WSDL009: " + msg, e);
(SOAPModuleElement) extReg.createExtElement(parentType, elementType); soapMod.setRef(uri); } catch (URISyntaxException e) { extReg.getErrorReporter().reportError( new ErrorLocatorImpl(), //TODO line&col nos. "WSDL506",
parentType.getName() + "'."); ExtensionSerializer extSer = extReg.querySerializer(parentType, elementType); extSer.marshall(parentType, elementType, ext, pw, def, extReg);
String msg = getErrorReporter().getFormattedMessage("WSDL016", new Object[] {compExtCtxClass.getName()}); throw new IllegalArgumentException(msg);
private void setupExtensionAssertions() { fExtAsserts = new HashMap(); AssertionInfo[] infos = this.fWsdlCtx.extensionRegistry.queryAssertions(); List asserts; int len = infos.length; for(int i=0; i<len; i++) { Class target = infos[i].targetClass; asserts = (List) fExtAsserts.get(target); if(asserts == null) { asserts = new Vector(); } asserts.add(infos[i].assertion); fExtAsserts.put(target, asserts); } }
ExtensionDeserializer extDS = extReg.queryDeserializer(parentType, elementType);
.queryComponentExtensionNamespaces(InterfaceOperation.class);
(SOAPModuleElement) extReg.createExtElement(parentType, elementType); soapMod.setRef(uri); } catch (URISyntaxException e) { extReg.getErrorReporter().reportError( new ErrorLocatorImpl(), //TODO line&col nos. "WSDL506",
implClass = queryExtAttributeType(WSDLElement.class, new QName("http://ws.apache.org/woden", "DefaultAttr")); String msg = getErrorReporter().getFormattedMessage("WSDL011", new Object[] {attrQName.toString()}); throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "WSDL011: " + msg); Class[] ctorParms = new Class[] {XMLElement.class, QName.class, String.class, ErrorReporter.class}; Constructor ctor = implClass.getConstructor(ctorParms); Object[] ctorParmValues = new Object[] {ownerElement, attrQName, attrValue, getErrorReporter()}; attr = (XMLAttr)ctor.newInstance(ctorParmValues); String msg = getErrorReporter().getFormattedMessage("WSDL009", new Object[] {implClass.getName()}); throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "WSDL009: " + msg, e);
parentType.getName() + "'."); ExtensionSerializer extSer = extReg.querySerializer(parentType, elementType); extSer.marshall(parentType, elementType, ext, pw, def, extReg);
String msg = getErrorReporter().getFormattedMessage("WSDL016", new Object[] {compExtCtxClass.getName()}); throw new IllegalArgumentException(msg);
private void setupExtensionAssertions() { fExtAsserts = new HashMap(); AssertionInfo[] infos = this.fWsdlCtx.extensionRegistry.queryAssertions(); List asserts; int len = infos.length; for(int i=0; i<len; i++) { Class target = infos[i].targetClass; asserts = (List) fExtAsserts.get(target); if(asserts == null) { asserts = new Vector(); } asserts.add(infos[i].assertion); fExtAsserts.put(target, asserts); } }
ExtensionDeserializer extDS = extReg.queryDeserializer(parentType, elementType);
.queryComponentExtensionNamespaces(InterfaceOperation.class);
(HTTPHeaderElement) extReg.createExtElement(parentType, extType); httpHdr.setTypeName(qname); } catch (WSDLException e) { extReg.getErrorReporter().reportError( new ErrorLocatorImpl(), //TODO line&col nos. "WSDL505",
throws WSDLException Class compExtCtxClass = queryComponentExtension(parentClass, extNamespace); String msg = getErrorReporter().getFormattedMessage("WSDL015", new Object[] {extNamespace.toString(), parentClass.getName()}); throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "WSDL015: " + msg); Class[] ctorParms = new Class[] {WSDLComponent.class, URI.class, ErrorReporter.class}; Constructor<ComponentExtensionContext> ctor = compExtCtxClass.getConstructor(ctorParms); Object[] ctorParmValues = new Object[] {parentComp, extNamespace, getErrorReporter()}; compExtCtx = ctor.newInstance(ctorParmValues); String msg = getErrorReporter().getFormattedMessage("WSDL009", new Object[] {compExtCtxClass.getName()}); throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "WSDL009: " + msg, e);
parentType.getName() + "'."); ExtensionSerializer extSer = extReg.querySerializer(parentType, elementType); extSer.marshall(parentType, elementType, ext, pw, def, extReg);