jaxws/src/share/jaxws_classes/javax/xml/soap/SOAPFactory.java
changeset 16791 fe5141eabb0e
parent 12009 4abb694f273a
child 18372 4d90cbb0d70a
--- a/jaxws/src/share/jaxws_classes/javax/xml/soap/SOAPFactory.java	Wed Jul 05 18:49:16 2017 +0200
+++ b/jaxws/src/share/jaxws_classes/javax/xml/soap/SOAPFactory.java	Tue Apr 09 14:51:13 2013 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -54,6 +54,14 @@
         "javax.xml.soap.SOAPFactory";
 
     /**
+     * A constant representing the name of the default <code>SOAPFactory</code>
+     * factory class to be used if another cannot be found.
+     * a <code>SOAPFactory</code> implementation class.
+     */
+    static private final String DEFAULT_SOAP_FACTORY
+        = "com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl";
+
+    /**
      * Creates a <code>SOAPElement</code> object from an existing DOM
      * <code>Element</code>. If the DOM <code>Element</code> that is passed in
      * as an argument is already a <code>SOAPElement</code> then this method
@@ -255,7 +263,8 @@
         throws SOAPException
     {
         try {
-            SOAPFactory factory = (SOAPFactory) FactoryFinder.find(SOAP_FACTORY_PROPERTY);
+            SOAPFactory factory = (SOAPFactory) FactoryFinder.find(
+                    SOAP_FACTORY_PROPERTY, DEFAULT_SOAP_FACTORY, false);
             if (factory != null)
                 return factory;
             return newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);