chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1492996 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java
Date Fri, 14 Jun 2013 08:31:31 GMT
Author: fmui
Date: Fri Jun 14 08:31:30 2013
New Revision: 1492996

URL: http://svn.apache.org/r1492996
Log:
CMIS-672: load WSDL from jar

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java?rev=1492996&r1=1492995&r2=1492996&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java
Fri Jun 14 08:31:30 2013
@@ -186,7 +186,13 @@ public abstract class AbstractPortProvid
         private Service createServiceObject() throws Exception {
             final Constructor<? extends Service> serviceConstructor = service.getServiceClass().getConstructor(
                     new Class<?>[] { URL.class, QName.class });
-            return serviceConstructor.newInstance(new Object[] { null, service.getQName()
});
+
+            URL wsdlUrl = service.getPortClass().getResource("/wsdl/cmis11/CMISWS-Service.wsdl");
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("WSDL URL: " + wsdlUrl.toExternalForm());
+            }
+
+            return serviceConstructor.newInstance(new Object[] { wsdlUrl, service.getQName()
});
         }
 
         public CmisWebSerivcesService getService() {



Mime
View raw message