synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r573183 - in /webservices/synapse/trunk/java/repository/conf/sample: ./ resources/script/ resources/transform/ resources/validate/
Date Thu, 06 Sep 2007 08:56:33 GMT
Author: asankha
Date: Thu Sep  6 01:56:32 2007
New Revision: 573183

URL: http://svn.apache.org/viewvc?rev=573183&view=rev
Log:
change namespace used in samples from http://www.apache-synapse.org/test to http://services.samples/xsd
as axis2 1.3 forced us to make this correction for RPC sample services

Modified:
    webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.js
    webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb
    webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform.xslt
    webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_back.xslt
    webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_unittest.xslt
    webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate.xsd
    webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate2.xsd
    webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_501.xml
    webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml

Modified: webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.js
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.js?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.js
(original)
+++ webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.js
Thu Sep  6 01:56:32 2007
@@ -32,7 +32,7 @@
      var symbol = mc.getPayloadXML()..*::symbol.toString();
      var price = mc.getPayloadXML()..*::last.toString();
      mc.setPayloadXML(
-        <m:CheckPriceResponse xmlns:m="http://www.apache-synapse.org/test">
+        <m:CheckPriceResponse xmlns:m="http://services.samples/xsd">
 	   <m:Code>{symbol}</m:Code>
 	   <m:Price>{price}</m:Price>
         </m:CheckPriceResponse>);

Modified: webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb
(original)
+++ webservices/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb
Thu Sep  6 01:56:32 2007
@@ -28,13 +28,13 @@
 end
 
 def transformResponse(mc)
-  newResponse = Document.new '<m:CheckPriceResponse xmlns:m="http://www.apache-synapse.org/test"><m:Code>'
<<
+  newResponse = Document.new '<m:CheckPriceResponse xmlns:m="http://services.samples/xsd"><m:Code>'
<<
     '</m:Code><m:Price></m:Price></m:CheckPriceResponse>'
   lastPrice=mc.getPayloadXML().root.elements[1].get_elements('ns:last')
-  code=mc.getPayloadXML().root.elements[1].get_elements('ns:symbol') 
-
-  newResponse.root.elements[1].text =code[0].get_text
-  newResponse.root.elements[2].text =lastPrice[0].get_text 
+  code=mc.getPayloadXML().root.elements[1].get_elements('ns:symbol') 
+
+  newResponse.root.elements[1].text =code[0].get_text
+  newResponse.root.elements[2].text =lastPrice[0].get_text 
   mc.setPayloadXML(newResponse)
 end
 ]]></x>

Modified: webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform.xslt
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform.xslt?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform.xslt
(original)
+++ webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform.xslt
Thu Sep  6 01:56:32 2007
@@ -20,7 +20,7 @@
 <xsl:stylesheet version="2.0" 
 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 	xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
-	xmlns:m0="http://www.apache-synapse.org/test"
+	xmlns:m0="http://services.samples/xsd"
 	exclude-result-prefixes="m0 fn">
 <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
 

Modified: webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_back.xslt
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_back.xslt?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_back.xslt
(original)
+++ webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_back.xslt
Thu Sep  6 01:56:32 2007
@@ -30,7 +30,7 @@
   
 <xsl:template match="m0:return">
 
-<m:CheckPriceResponse xmlns:m="http://www.apache-synapse.org/test">
+<m:CheckPriceResponse xmlns:m="http://services.samples/xsd">
 	<m:Code><xsl:value-of select="m0:symbol"/></m:Code>
 	<m:Price><xsl:value-of select="m0:last"/></m:Price>
 </m:CheckPriceResponse>

Modified: webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_unittest.xslt
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_unittest.xslt?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_unittest.xslt
(original)
+++ webservices/synapse/trunk/java/repository/conf/sample/resources/transform/transform_unittest.xslt
Thu Sep  6 01:56:32 2007
@@ -20,7 +20,7 @@
 <xsl:stylesheet version="2.0" 
 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 	xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
-	xmlns:m0="http://www.apache-synapse.org/test"
+	xmlns:m0="http://services.samples/xsd"
 	exclude-result-prefixes="m0 fn">
 <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
 

Modified: webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate.xsd
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate.xsd?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate.xsd
(original)
+++ webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate.xsd
Thu Sep  6 01:56:32 2007
@@ -18,7 +18,7 @@
   ~  under the License.
   -->
 
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.apache-synapse.org/test"
elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://www.apache-synapse.org/test">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://services.samples/xsd"
elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://services.samples/xsd">
 	<xs:element name="CheckPriceRequest">
 		<xs:complexType>
 			<xs:sequence>

Modified: webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate2.xsd
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate2.xsd?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate2.xsd
(original)
+++ webservices/synapse/trunk/java/repository/conf/sample/resources/validate/validate2.xsd
Thu Sep  6 01:56:32 2007
@@ -18,8 +18,8 @@
   ~  under the License.
   -->
 
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:m1="http://www.apache-synapse.org/test"
xmlns:m2="http://www.apache-synapse.org/test2" targetNamespace="http://www.apache-synapse.org/test2"
elementFormDefault="qualified" attributeFormDefault="unqualified">
-	<xs:import namespace="http://www.apache-synapse.org/test" schemaLocation="validate.xsd"/>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:m1="http://services.samples/xsd"
xmlns:m2="http://services.samples/xsd2" targetNamespace="http://services.samples/xsd2" elementFormDefault="qualified"
attributeFormDefault="unqualified">
+	<xs:import namespace="http://services.samples/xsd" schemaLocation="validate.xsd"/>
 	
 	<xs:element name="CheckPriceRequest2">
 		<xs:complexType>

Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_501.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_501.xml?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_501.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_501.xml Thu Sep 
6 01:56:32 2007
@@ -41,7 +41,7 @@
                var symbol = mc.getPayloadXML()..*::symbol.toString();
                var price = mc.getPayloadXML()..*::last.toString();
                mc.setPayloadXML(
-                  <m:CheckPriceResponse xmlns:m="http://www.apache-synapse.org/test">
+                  <m:CheckPriceResponse xmlns:m="http://services.samples/xsd">
                <m:Code>{symbol}</m:Code>
                <m:Price>{price}</m:Price>
                   </m:CheckPriceResponse>);

Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml?rev=573183&r1=573182&r2=573183&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_7.xml Thu Sep  6
01:56:32 2007
@@ -21,7 +21,7 @@
 
     <localEntry key="validate_schema">
         <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
-                    xmlns="http://www.apache-synapse.org/test" elementFormDefault="qualified"
+                    xmlns="http://services.samples/xsd" elementFormDefault="qualified"
                     attributeFormDefault="unqualified"
                     targetNamespace="http://services.samples/xsd">
             <xs:element name="getQuote">



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message