cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r592910 - in /incubator/cxf/trunk/rt/javascript: pom.xml src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java src/main/resources/org/apache/cxf/javascript/cxf-utils.js
Date Wed, 07 Nov 2007 21:37:36 GMT
Author: bimargulies
Date: Wed Nov  7 13:37:35 2007
New Revision: 592910

URL: http://svn.apache.org/viewvc?rev=592910&view=rev
Log:
Fix build problem with dependency.

Modified:
    incubator/cxf/trunk/rt/javascript/pom.xml
    incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
    incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js

Modified: incubator/cxf/trunk/rt/javascript/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/pom.xml?rev=592910&r1=592909&r2=592910&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/pom.xml (original)
+++ incubator/cxf/trunk/rt/javascript/pom.xml Wed Nov  7 13:37:35 2007
@@ -67,7 +67,6 @@
             <groupId>org.apache.cxf</groupId>
             <artifactId>cxf-rt-transports-http</artifactId>
             <version>${project.version}</version>
-            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf</groupId>

Modified: incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java?rev=592910&r1=592909&r2=592910&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
(original)
+++ incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
Wed Nov  7 13:37:35 2007
@@ -28,6 +28,7 @@
 import java.util.logging.Logger;
 
 import org.apache.cxf.binding.soap.SoapBindingConstants;
+import org.apache.cxf.binding.soap.SoapVersion;
 import org.apache.cxf.binding.soap.model.SoapBindingInfo;
 import org.apache.cxf.common.i18n.Message;
 import org.apache.cxf.common.logging.LogUtils;
@@ -71,6 +72,10 @@
         this.nameManager = nameManager;
         xmlSchemaCollection = serviceInfo.getXmlSchemaCollection();
     }
+    
+    public String getCode() {
+        return code.toString();
+    }
 
     @Override
     public void begin(FaultInfo fault) {
@@ -172,6 +177,10 @@
                 utils.appendLine("wrapper.set" + StringUtils.capitalize(param) + "(" + param
+ ");");
             }
         }
+        
+        SoapVersion soapVersion = soapBindingInfo.getSoapVersion();
+        assert soapVersion.getVersion() == 1.1;
+        // we could have less code cooked in 
 
         utils.appendLine("}");
     }

Modified: incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js?rev=592910&r1=592909&r2=592910&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
(original)
+++ incubator/cxf/trunk/rt/javascript/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
Wed Nov  7 13:37:35 2007
@@ -141,3 +141,20 @@
 }
 
 CxfApacheOrgUtil.prototype.getNodeText = org_apache_cxf_getNodeText;
+
+function org_apache_cxf_begin_soap11_message()
+{
+	return
+		'<?xml version="1.0" encoding="UTF-8"?><soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"'
+
+		' xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"' +
+	    '><soap-env:Body>';
+}
+CxfApacheOrgUtil.prototype.beginSoap11Message = org_apache_cxf_begin_soap11_message; 
+
+function org_apache_cxf_end_soap11_message()
+{
+	return '</soap-env:Body>';
+}
+	
+CxfApacheOrgUtil.prototype.envSoap11Message = org_apache_cxf_end_soap11_message; 
+	



Mime
View raw message