Author: midon
Date: Thu Jun 26 19:28:34 2008
New Revision: 672086
URL: http://svn.apache.org/viewvc?rev=672086&view=rev
Log:
create a specific namespace for http wsdl extensions
Modified:
ode/branches/APACHE_ODE_1.1/axis2-war/src/test/resources/TestHttpBinding/Arithmetics.wsdl
ode/branches/APACHE_ODE_1.1/axis2/src/test/resources/http-binding-validator.wsdl
ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/Namespaces.java
ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/wsdl/WsdlUtils.java
Modified:
ode/branches/APACHE_ODE_1.1/axis2-war/src/test/resources/TestHttpBinding/Arithmetics.wsdl
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/axis2-war/src/test/resources/TestHttpBinding/Arithmetics.wsdl?rev=672086&r1=672085&r2=672086&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.1/axis2-war/src/test/resources/TestHttpBinding/Arithmetics.wsdl
(original)
+++
ode/branches/APACHE_ODE_1.1/axis2-war/src/test/resources/TestHttpBinding/Arithmetics.wsdl
Thu Jun 26 19:28:34 2008
@@ -25,6 +25,7 @@
xmlns:tns="http://ode/bpel/arithmetics"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:odex="http://www.apache.org/ode/type/extension/http"
targetNamespace="http://ode/bpel/arithmetics">
@@ -102,7 +103,7 @@
<!-- It's meant to test a wsdl extension defined for RESTful BPEL -->
<wsdl:operation name="plus">
<http:operation location="plus/(left):(right)"/>
- <http:binding verb="GET"/>
+ <odex:binding verb="GET"/>
<wsdl:input>
<http:urlReplacement/>
</wsdl:input>
@@ -112,7 +113,7 @@
</wsdl:operation>
<wsdl:operation name="minus">
<http:operation location="minus"/>
- <http:binding verb="GET"/>
+ <odex:binding verb="GET"/>
<wsdl:input>
<http:urlEncoded/>
</wsdl:input>
@@ -128,7 +129,7 @@
<http:binding verb="GET"/>
<wsdl:operation name="plus">
<http:operation location="plus"/>
- <http:binding verb="POST"/>
+ <odex:binding verb="POST"/>
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded"/>
</wsdl:input>
@@ -138,7 +139,7 @@
</wsdl:operation>
<wsdl:operation name="minus">
<http:operation location="minus"/>
- <http:binding verb="POST"/>
+ <odex:binding verb="POST"/>
<wsdl:input>
<http:urlEncoded/>
</wsdl:input>
@@ -219,7 +220,7 @@
<!--
- 6 urls to handle:
+ 8 urls to handle:
(GET)
http://localhost:8080/HttpBindingTestService/OlaElMundo-GET/plus/(left):(right)
(GET) http:// ........
/OlaElMundo-GET/minus?left=&right=
(DELETE)
http://localhost:8080/HttpBindingTestService/OlaElMundo-DELETE/plus/(left):(right)
Modified:
ode/branches/APACHE_ODE_1.1/axis2/src/test/resources/http-binding-validator.wsdl
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/axis2/src/test/resources/http-binding-validator.wsdl?rev=672086&r1=672085&r2=672086&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.1/axis2/src/test/resources/http-binding-validator.wsdl
(original)
+++
ode/branches/APACHE_ODE_1.1/axis2/src/test/resources/http-binding-validator.wsdl
Thu Jun 26 19:28:34 2008
@@ -8,6 +8,7 @@
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:odex="http://www.apache.org/ode/type/extension/http"
targetNamespace="http://axis2.ode.apache.org">
<wsdl:message name="helloRequest">
<wsdl:part name="TestPart" type="xs:string"/>
@@ -449,7 +450,7 @@
</wsdl:documentation>
<wsdl:operation name="hello">
<http:operation location="DummyService/hello"/>
- <http:binding verb="GET"/>
+ <odex:binding verb="GET"/>
<wsdl:input>
<http:urlEncoded/>
</wsdl:input>
@@ -473,7 +474,7 @@
</wsdl:documentation>
<wsdl:operation name="hello">
<http:operation location="DummyService/hello"/>
- <http:binding verb="GET"/>
+ <odex:binding verb="GET"/>
<wsdl:input>
<http:urlEncoded/>
</wsdl:input>
@@ -489,7 +490,7 @@
<http:binding verb="GET"/>
<wsdl:operation name="hello">
<http:operation location="DummyService/hello"/>
- <http:binding verb="POST"/>
+ <odex:binding verb="POST"/>
<wsdl:input>
<http:urlEncoded/>
</wsdl:input>
Modified:
ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/Namespaces.java
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/Namespaces.java?rev=672086&r1=672085&r2=672086&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/Namespaces.java
(original)
+++
ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/Namespaces.java
Thu Jun 26 19:28:34 2008
@@ -56,6 +56,7 @@
/** ODE stuff */
public static final String ODE_PMAPI =
"http://www.apache.org/ode/pmapi/types/2006/08/02/";
public static final String ODE_EXTENSION_NS =
"http://www.apache.org/ode/type/extension";
+ public static final String ODE_HTTP_EXTENSION_NS =
"http://www.apache.org/ode/type/extension/http";
public static final String INTALIO_SESSION_NS =
"http://www.intalio.com/type/session";
}
Modified:
ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/wsdl/WsdlUtils.java
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/wsdl/WsdlUtils.java?rev=672086&r1=672085&r2=672086&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/wsdl/WsdlUtils.java
(original)
+++
ode/branches/APACHE_ODE_1.1/utils/src/main/java/org/apache/ode/utils/wsdl/WsdlUtils.java
Thu Jun 26 19:28:34 2008
@@ -270,7 +270,7 @@
final Collection<UnknownExtensibilityElement> unknownExtElements =
CollectionsX.filter(bindingOperation.getExtensibilityElements(),
UnknownExtensibilityElement.class);
for (UnknownExtensibilityElement extensibilityElement :
unknownExtElements) {
final Element e = extensibilityElement.getElement();
- if (Namespaces.HTTP_NS.equalsIgnoreCase(e.getNamespaceURI())
+ if
(Namespaces.ODE_HTTP_EXTENSION_NS.equalsIgnoreCase(e.getNamespaceURI())
&&
"binding".equals(extensibilityElement.getElement().getLocalName())
&& e.hasAttribute("verb")) {
return e.getAttribute("verb");