This is the source of the proxy service;

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse";
       name="ESBHttpComplianceTest"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <property name="ContentType" value="text/xml" scope="axis2"
type="STRING"/>
         <switch source="$axis2:HTTP_METHOD">
            <case regex="GET">
               <switch source="$trp:Response-Server">
                  <case regex="5xxResponse">
                     <property name="HTTP_METHOD" value="GET" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/5xx/get";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="4xxResponse">
                     <property name="HTTP_METHOD" value="GET" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/4xx/get";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="3xxResponse">
                     <property name="HTTP_METHOD" value="GET" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/3xx/get";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="2xxResponse">
                     <property name="HTTP_METHOD" value="GET" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/2xx/get";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="1xxResponse">
                     <property name="HTTP_METHOD" value="GET" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/1xx/get";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
               </switch>
            </case>
            <case regex="POST">
               <switch source="$trp:Response-Server">
                  <case regex="5xxResponse">
                     <property name="HTTP_METHOD" value="POST"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/5xx/post";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="4xxResponse">
                     <property name="HTTP_METHOD" value="POST"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/4xx/post";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="3xxResponse">
                     <property name="HTTP_METHOD" value="POST"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/3xx/post";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="2xxResponse">
                     <property name="HTTP_METHOD" value="POST"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/2xx/post";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="1xxResponse">
                     <property name="HTTP_METHOD" value="POST"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/1xx/post";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
               </switch>
            </case>
            <case regex="HEAD">
               <switch source="$trp:Response-Server">
                  <case regex="5xxResponse">
                     <property name="HTTP_METHOD" value="HEAD"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/5xx/head";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="4xxResponse">
                     <property name="HTTP_METHOD" value="HEAD"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/4xx/head";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="3xxResponse">
                     <property name="HTTP_METHOD" value="HEAD"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/3xx/head";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="2xxResponse">
                     <property name="HTTP_METHOD" value="HEAD"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/2xx/head";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="1xxResponse">
                     <property name="HTTP_METHOD" value="HEAD"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/1xx/head";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
               </switch>
            </case>
            <case regex="PUT">
               <switch source="$trp:Response-Server">
                  <case regex="5xxResponse">
                     <property name="HTTP_METHOD" value="PUT" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/5xx/put";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="4xxResponse">
                     <property name="HTTP_METHOD" value="PUT" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/4xx/put";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="3xxResponse">
                     <property name="HTTP_METHOD" value="PUT" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/3xx/put";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="2xxResponse">
                     <property name="HTTP_METHOD" value="PUT" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/2xx/put";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="3xxResponse">
                     <property name="HTTP_METHOD" value="PUT" scope="axis2"
type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/1xx/put";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
               </switch>
            </case>
            <case regex="DELETE">
               <switch source="$trp:Response-Server">
                  <case regex="5xxResponse">
                     <property name="HTTP_METHOD" value="DELETE"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/5xx/delete";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="4xxResponse">
                     <property name="HTTP_METHOD" value="DELETE"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/4xx/delete";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="3xxResponse">
                     <property name="HTTP_METHOD" value="DELETE"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/3xx/delete";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="2xxResponse">
                     <property name="HTTP_METHOD" value="DELETE"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/2xx/delete";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
                  <case regex="3xxResponse">
                     <property name="HTTP_METHOD" value="DELETE"
scope="axis2" type="STRING"/>
                     <send>
                        <endpoint>
                           <address uri="http://localhost:3000/1xx/delete";
format="pox"/>
                        </endpoint>
                     </send>
                  </case>
               </switch>
            </case>
            <default/>
         </switch>
      </inSequence>
      <outSequence>
         <send/>
      </outSequence>
   </target>
   <description/>
</proxy>


Regards,

On Tue, Mar 10, 2015 at 10:40 AM, Nirmal Fernando <[email protected]> wrote:

> Can you copy-paste your proxy service source here?
>
> On Tue, Mar 10, 2015 at 10:36 AM, Achintha Reemal <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am currently developing a test suite for ESB,to check for HTTP/1.1
>> compliance. I enabled Response caching in a Proxy service to check for
>> caching capability and it started to give out an error. Then I disabled
>> caching and now it gives out a new error, even after restarting the server.
>> Error is as follows;
>>
>> ERROR - AxisEngine Http binding is disabled for this service.
>> org.apache.axis2.AxisFault: Http binding is disabled for this service.
>>     at
>> org.apache.axis2.engine.DispatchPhase.validateBindings(DispatchPhase.java:279)
>>     at
>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:111)
>>     at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
>>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>     at
>> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
>>     at
>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
>>     at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>     at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>     at java.lang.Thread.run(Thread.java:745)
>> [2015-03-10 10:24:12,864] ERROR - ServerWorker Error processing PUT
>> request for : /services/ESBHttpComplianceTest
>> org.apache.axis2.AxisFault: Http binding is disabled for this service.
>>     at
>> org.apache.axis2.engine.DispatchPhase.validateBindings(DispatchPhase.java:279)
>>     at
>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:111)
>>     at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
>>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>     at
>> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
>>     at
>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
>>     at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>     at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>     at java.lang.Thread.run(Thread.java:745)
>>
>> Regards,
>>
>> --
>> *G.H.Achintha Reemal*
>> *BSc Eng Undergraduate| Department of Computer Science & Engineering |
>> University of Moratuwa*
>> *Intern Software Engineer**| WSO2 Lanka (Pvt) Ltd.*
>> *Blog|** rimmythepaperclip.blogspot.com
>> <http://rimmythepaperclip.blogspot.com>*
>> *Twitter|* @rimmynuts(A.Reemal)
>> *LinkedIn|* lk.linkedin.com/in/achinthareemal/
>> *Mobile| *0715471301
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
*G.H.Achintha Reemal*
*BSc Eng Undergraduate| Department of Computer Science & Engineering |
University of Moratuwa*
*Intern Software Engineer**| WSO2 Lanka (Pvt) Ltd.*
*Blog|** rimmythepaperclip.blogspot.com
<http://rimmythepaperclip.blogspot.com>*
*Twitter|* @rimmynuts(A.Reemal)
*LinkedIn|* lk.linkedin.com/in/achinthareemal/
*Mobile| *0715471301
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to