diff -r cc682329886b -r b0610cd08440 src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLModel.java --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLModel.java Thu Sep 26 10:43:28 2013 -0700 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLModel.java Fri Oct 04 16:21:34 2013 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -34,10 +34,12 @@ import com.sun.xml.internal.ws.api.policy.PolicyResolverFactory; import com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser; import com.sun.xml.internal.ws.policy.PolicyMap; + import org.xml.sax.SAXException; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamException; + import java.io.IOException; import java.util.Map; @@ -96,7 +98,7 @@ * * @return an empty Map if the wsdl document has no wsdl:binding */ - @NotNull Map getBindings(); + @NotNull Map getBindings(); /** * Gives a {@link Map} of wsdl:service qualified name and {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLService} @@ -106,6 +108,25 @@ @NotNull Map getServices(); /** + * Returns the first service QName from insertion order + */ + public QName getFirstServiceName(); + + /** + * Returns the message with the given QName + * @param name Message name + * @return Message + */ + public WSDLMessage getMessage(QName name); + + /** + * Gives a {@link Map} of wsdl:message qualified name and {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLMesage} + * + * @return an empty Map if the wsdl document has no wsdl:message + */ + @NotNull Map getMessages(); + + /** * Gives the PolicyMap associated with the WSDLModel * * @return PolicyMap @@ -115,7 +136,6 @@ */ public PolicyMap getPolicyMap(); - /** * Main purpose of this class is to parsing of a WSDL and get the {@link WSDLModel} from it. */