public void write(WSDLInterfaceContract wsdlInterfaceContract, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { // Write an <interface.wsdl> writer.writeStartElement(WSDLConstants.SCA11_NS, INTERFACE_WSDL); // Write interface name WSDLInterface wsdlInterface = (WSDLInterface)wsdlInterfaceContract.getInterface(); if (wsdlInterface != null) { QName qname = wsdlInterface.getName(); String uri = qname.getNamespaceURI() + "#wsdl.interface(" + qname.getLocalPart() + ")"; writer.writeAttribute(INTERFACE, uri); } WSDLInterface wsdlCallbackInterface = (WSDLInterface)wsdlInterfaceContract.getCallbackInterface(); if (wsdlCallbackInterface != null) { QName qname = wsdlCallbackInterface.getName(); String uri = qname.getNamespaceURI() + "#wsdl.interface(" + qname.getLocalPart() + ")"; writer.writeAttribute(CALLBACK_INTERFACE, uri); } // Write location if (wsdlInterfaceContract.getLocation() != null) { writer.writeAttribute(WSDLI_NS, WSDL_LOCATION, wsdlInterfaceContract.getLocation()); } policyProcessor.writePolicyAttributes(wsdlInterface, writer); writer.writeEndElement(); }
public void write(WSDLInterfaceContract wsdlInterfaceContract, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { // Write an <interface.wsdl> writer.writeStartElement(WSDLConstants.SCA11_NS, INTERFACE_WSDL); // Write interface name WSDLInterface wsdlInterface = (WSDLInterface)wsdlInterfaceContract.getInterface(); if (wsdlInterface != null) { QName qname = wsdlInterface.getName(); String uri = qname.getNamespaceURI() + "#wsdl.interface(" + qname.getLocalPart() + ")"; writer.writeAttribute(INTERFACE, uri); } WSDLInterface wsdlCallbackInterface = (WSDLInterface)wsdlInterfaceContract.getCallbackInterface(); if (wsdlCallbackInterface != null) { QName qname = wsdlCallbackInterface.getName(); String uri = qname.getNamespaceURI() + "#wsdl.interface(" + qname.getLocalPart() + ")"; writer.writeAttribute(CALLBACK_INTERFACE, uri); } // Write location if (wsdlInterfaceContract.getLocation() != null) { writer.writeAttribute(WSDLI_NS, WSDL_LOCATION, wsdlInterfaceContract.getLocation()); } policyProcessor.writePolicyAttributes(wsdlInterface, writer); writer.writeEndElement(); }
WSDLInterface wsdl = (WSDLInterface)wsdlIC.getCallbackInterface(); WSDLDefinition wsdlDefinition = wsdl.getWsdlDefinition(); writeWSDL(outStream, wsdlDefinition);
WSDLInterface wsdlCallbackInterface = resolveWSDLInterface((WSDLInterface)wsdlInterfaceContract.getCallbackInterface(), resolver, context); if( intrinsicWSDLCallbackInterface != null ) { if( wsdlCallbackInterface != null ) {
WSDLInterface wsdlCallbackInterface = resolveWSDLInterface((WSDLInterface)wsdlInterfaceContract.getCallbackInterface(), resolver, context); if( intrinsicWSDLCallbackInterface != null ) { if( wsdlCallbackInterface != null ) {