You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/06/19 06:11:47 UTC
svn commit: r548578 - in /incubator/tuscany/java/sca/samples:
binding-echo-extension/src/main/java/echo/
binding-echo-extension/src/main/java/echo/impl/
binding-echo-extension/src/test/resources/ binding-echo/src/main/resources/
databinding-echo/src/ma...
Author: jsdelfino
Date: Mon Jun 18 21:11:46 2007
New Revision: 548578
URL: http://svn.apache.org/viewvc?view=rev&rev=548578
Log:
Fixed echo binding namespace, binding extensions should not use the core SCA spec namespace.
Modified:
incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/EchoBindingFactory.java
incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/impl/EchoBindingProcessor.java
incubator/tuscany/java/sca/samples/binding-echo-extension/src/test/resources/EchoBinding.composite
incubator/tuscany/java/sca/samples/binding-echo/src/main/resources/EchoBinding.composite
incubator/tuscany/java/sca/samples/databinding-echo/src/main/resources/EchoDataBinding.composite
Modified: incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/EchoBindingFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/EchoBindingFactory.java?view=diff&rev=548578&r1=548577&r2=548578
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/EchoBindingFactory.java (original)
+++ incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/EchoBindingFactory.java Mon Jun 18 21:11:46 2007
@@ -27,7 +27,7 @@
/**
* Creates a new Echo binding.
*
- * @return a new Echi binding
+ * @return a new Echo binding
*/
EchoBinding createEchoBinding();
}
Modified: incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/impl/EchoBindingProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/impl/EchoBindingProcessor.java?view=diff&rev=548578&r1=548577&r2=548578
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/impl/EchoBindingProcessor.java (original)
+++ incubator/tuscany/java/sca/samples/binding-echo-extension/src/main/java/echo/impl/EchoBindingProcessor.java Mon Jun 18 21:11:46 2007
@@ -19,8 +19,6 @@
package echo.impl;
-import static org.osoa.sca.Constants.SCA_NS;
-
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;
@@ -39,7 +37,7 @@
*/
public class EchoBindingProcessor implements StAXArtifactProcessor<EchoBinding> {
- private QName BINDING_ECHO = new QName(SCA_NS, "binding.echo");
+ private QName BINDING_ECHO = new QName("http://echo", "binding.echo");
private final EchoBindingFactory factory;
Modified: incubator/tuscany/java/sca/samples/binding-echo-extension/src/test/resources/EchoBinding.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/binding-echo-extension/src/test/resources/EchoBinding.composite?view=diff&rev=548578&r1=548577&r2=548578
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-echo-extension/src/test/resources/EchoBinding.composite (original)
+++ incubator/tuscany/java/sca/samples/binding-echo-extension/src/test/resources/EchoBinding.composite Mon Jun 18 21:11:46 2007
@@ -18,13 +18,14 @@
* under the License.
-->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- targetNamespace="http://echo"
- xmlns:echo="http://echo"
+ targetNamespace="http://sample/echo"
+ xmlns:se="http://sample/echo"
+ xmlns:e="http://echo"
name="EchoBinding">
<service name="EchoService" promote="EchoComponent">
<interface.java interface="echo.Echo"/>
- <binding.echo uri="http://tempuri.org" />
+ <e:binding.echo uri="http://tempuri.org" />
</service>
<component name="EchoComponent">
@@ -33,7 +34,7 @@
<reference name="EchoReference" promote="EchoComponent/echoReference">
<interface.java interface="echo.Echo"/>
- <binding.echo uri="http://tempuri.org" />
+ <e:binding.echo uri="http://tempuri.org" />
</reference>
</composite>
Modified: incubator/tuscany/java/sca/samples/binding-echo/src/main/resources/EchoBinding.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/binding-echo/src/main/resources/EchoBinding.composite?view=diff&rev=548578&r1=548577&r2=548578
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-echo/src/main/resources/EchoBinding.composite (original)
+++ incubator/tuscany/java/sca/samples/binding-echo/src/main/resources/EchoBinding.composite Mon Jun 18 21:11:46 2007
@@ -18,13 +18,14 @@
* under the License.
-->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- targetNamespace="http://echo"
- xmlns:echo="http://echo"
+ targetNamespace="http://sample/echo"
+ xmlns:se="http://sample/echo"
+ xmlns:e="http://echo"
name="EchoBinding">
<service name="EchoService" promote="EchoComponent">
<interface.java interface="echo.Echo"/>
- <binding.echo uri="http://tempuri.org" />
+ <e:binding.echo uri="http://tempuri.org" />
</service>
<component name="EchoComponent">
@@ -33,7 +34,7 @@
<reference name="EchoReference" promote="EchoComponent/echoReference">
<interface.java interface="echo.Echo"/>
- <binding.echo uri="http://tempuri.org" />
+ <e:binding.echo uri="http://tempuri.org" />
</reference>
</composite>
Modified: incubator/tuscany/java/sca/samples/databinding-echo/src/main/resources/EchoDataBinding.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/databinding-echo/src/main/resources/EchoDataBinding.composite?view=diff&rev=548578&r1=548577&r2=548578
==============================================================================
--- incubator/tuscany/java/sca/samples/databinding-echo/src/main/resources/EchoDataBinding.composite (original)
+++ incubator/tuscany/java/sca/samples/databinding-echo/src/main/resources/EchoDataBinding.composite Mon Jun 18 21:11:46 2007
@@ -17,9 +17,13 @@
* specific language governing permissions and limitations
* under the License.
-->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:local="http://tuscany.apache.org/xmlns/sca/binding/1.0" xmlns:f="http://foo"
- xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" name="EchoDataBinding">
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:local="http://tuscany.apache.org/xmlns/sca/binding/1.0"
+ xmlns:f="http://foo"
+ xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+ xmlns:e="http://echo"
+ name="EchoDataBinding">
<component name="ComponentA">
<implementation.java class="dbecho.ComponentAImpl" />
@@ -41,7 +45,7 @@
wsdli:wsdlLocation="http://example.com/echo.wsdl wsdl/echo.wsdl">
<db:databinding xmlns:db="http://tuscany.apache.org/xmlns/sca/databinding/1.0" name="org.apache.axiom.om.OMElement" />
</interface.wsdl>
- <binding.echo/>
+ <e:binding.echo/>
</reference>
<property name="messagePrefix" type="xsd:string">ABC</property>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org