Package com.sun.xml.internal.stream.buffer.stax

Examples of com.sun.xml.internal.stream.buffer.stax.StreamWriterBufferCreator.writeEndElement()


            writer.writeStartDocument();
            writer.writeStartElement(version.getPrefix(),"EndpointReference", version.nsUri);
            writer.writeNamespace(version.getPrefix(),version.nsUri);
            writer.writeStartElement(version.getPrefix(),"Address", version.nsUri);
            writer.writeCharacters(address);
            writer.writeEndElement();
            if(referenceParameters != null) {
                writer.writeStartElement(version.getPrefix(),"ReferenceParameters", version.nsUri);
                for (Element e : referenceParameters)
                    DOMUtil.serializeNode(e, writer);
                writer.writeEndElement();
View Full Code Here


            writer.writeEndElement();
            if(referenceParameters != null) {
                writer.writeStartElement(version.getPrefix(),"ReferenceParameters", version.nsUri);
                for (Element e : referenceParameters)
                    DOMUtil.serializeNode(e, writer);
                writer.writeEndElement();
            }

            switch(version) {
            case W3C:
                writeW3CMetaData(writer, service, port, portType, metadata, wsdlAddress);
View Full Code Here

                    writer.writeAttribute(MemberSubmissionAddressingConstants.MEX_METADATA_DIALECT_ATTRIBUTE,
                            MemberSubmissionAddressingConstants.MEX_METADATA_DIALECT_VALUE);

                    writeWsdl(writer, service, wsdlAddress);

                    writer.writeEndElement();
                    writer.writeEndElement();
                }

                break;
            }
View Full Code Here

                            MemberSubmissionAddressingConstants.MEX_METADATA_DIALECT_VALUE);

                    writeWsdl(writer, service, wsdlAddress);

                    writer.writeEndElement();
                    writer.writeEndElement();
                }

                break;
            }
            writer.writeEndElement();
View Full Code Here

                    writer.writeEndElement();
                }

                break;
            }
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.flush();

            return writer.getXMLStreamBuffer();
        } catch (XMLStreamException e) {
View Full Code Here

                    AddressingVersion.W3C.nsUri);
            //write wsa:Address
            writer.writeStartElement(AddressingVersion.W3C.getPrefix(),
                    W3CAddressingConstants.WSA_ADDRESS_NAME, AddressingVersion.W3C.nsUri);
            writer.writeCharacters(msEpr.addr.uri);
            writer.writeEndElement();
            //TODO: write extension attributes on wsa:Address
            if ((msEpr.referenceProperties != null && msEpr.referenceProperties.elements.size() > 0) ||
                    (msEpr.referenceParameters != null && msEpr.referenceParameters.elements.size() > 0)) {

                writer.writeStartElement(AddressingVersion.W3C.getPrefix(), "ReferenceParameters", AddressingVersion.W3C.nsUri);
View Full Code Here

                if (msEpr.referenceParameters != null) {
                    for (Element e : msEpr.referenceParameters.elements) {
                        DOMUtil.serializeNode(e, writer);
                    }
                }
                writer.writeEndElement();
            }
            // Supress writing ServiceName and EndpointName in W3CEPR,
            // Until the ns for those metadata elements is resolved.
            /*
            //Write Interface info
View Full Code Here

            if (wsdlElement != null) {
                DOMUtil.serializeNode(wsdlElement, writer);
            }

            if (w3cMetadataWritten)
                writer.writeEndElement();
            //TODO revisit this
            //write extension elements
            if ((msEpr.elements != null) && (msEpr.elements.size() > 0)) {
                for (Element e : msEpr.elements) {
                    if (e.getNamespaceURI().equals(WSDLConstants.NS_WSDL) &&
View Full Code Here

            }

            //TODO:write extension attributes

            //</EndpointReference>
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.flush();
        } catch (XMLStreamException e) {
            throw new WebServiceException(e);
        }
View Full Code Here

            w.writeNamespace(version.getPrefix(),
                version.nsUri);
            w.writeStartElement(version.getPrefix(),
                W3CAddressingConstants.WSA_ADDRESS_NAME, version.nsUri);
            w.writeCharacters(address);
            w.writeEndElement();
            w.writeEndElement();
            w.writeEndDocument();
            w.close();
            return xsb;
        } catch (XMLStreamException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.