You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/01/25 19:42:30 UTC
svn commit: r372285 - in /incubator/servicemix/trunk/servicemix-http/src:
main/java/org/apache/servicemix/http/
main/java/org/apache/servicemix/http/processors/ test/resources/consumer/
test/resources/provider/
Author: gnodet
Date: Wed Jan 25 10:42:23 2006
New Revision: 372285
URL: http://svn.apache.org/viewcvs?rev=372285&view=rev
Log:
Force use of POST for servicemix-http as it does not handle GET yet
Modified:
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpWsdl1Deployer.java
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ConsumerProcessor.java
incubator/servicemix/trunk/servicemix-http/src/test/resources/consumer/http.wsdl
incubator/servicemix/trunk/servicemix-http/src/test/resources/provider/http.wsdl
Modified: incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpWsdl1Deployer.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpWsdl1Deployer.java?rev=372285&r1=372284&r2=372285&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpWsdl1Deployer.java (original)
+++ incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpWsdl1Deployer.java Wed Jan 25 10:42:23 2006
@@ -46,6 +46,9 @@
return null;
}
if (portElement instanceof HTTPAddress && bindingElement instanceof HTTPBinding) {
+ if (!"POST".equals(((HTTPBinding) bindingElement).getVerb())) {
+ throw new UnsupportedOperationException(((HTTPBinding) bindingElement).getVerb() + " not supported");
+ }
HttpEndpoint endpoint = new HttpEndpoint();
endpoint.setSoap(false);
endpoint.setRole(jbiEndpoint.getRole());
Modified: incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ConsumerProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ConsumerProcessor.java?rev=372285&r1=372284&r2=372285&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ConsumerProcessor.java (original)
+++ incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ConsumerProcessor.java Wed Jan 25 10:42:23 2006
@@ -81,9 +81,12 @@
httpContext.stop();
getServerManager().remove(httpContext);
}
-
+
public void process(HttpServletRequest request, HttpServletResponse response) throws Exception {
QName envelopeName = null;
+ if (!"POST".equals(request.getMethod())) {
+ throw new UnsupportedOperationException(request.getMethod() + " not supported");
+ }
try {
SoapMessage message = soapMarshaler.createReader().read(request.getInputStream(),
request.getHeader("Content-Type"));
Modified: incubator/servicemix/trunk/servicemix-http/src/test/resources/consumer/http.wsdl
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-http/src/test/resources/consumer/http.wsdl?rev=372285&r1=372284&r2=372285&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-http/src/test/resources/consumer/http.wsdl (original)
+++ incubator/servicemix/trunk/servicemix-http/src/test/resources/consumer/http.wsdl Wed Jan 25 10:42:23 2006
@@ -10,7 +10,7 @@
</portType>
<binding name='ProviderJmsBinding' type='tns:ProviderInterface'>
- <http:binding verb="GET"></http:binding>
+ <http:binding verb="POST"></http:binding>
</binding>
<service name='ProviderInOnly'>
Modified: incubator/servicemix/trunk/servicemix-http/src/test/resources/provider/http.wsdl
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-http/src/test/resources/provider/http.wsdl?rev=372285&r1=372284&r2=372285&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-http/src/test/resources/provider/http.wsdl (original)
+++ incubator/servicemix/trunk/servicemix-http/src/test/resources/provider/http.wsdl Wed Jan 25 10:42:23 2006
@@ -10,7 +10,7 @@
</portType>
<binding name='ProviderJmsBinding' type='tns:ProviderInterface'>
- <http:binding verb="GET"></http:binding>
+ <http:binding verb="POST"/>
</binding>
<service name='Provider'>