You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Anil Kumar <an...@gmail.com> on 2012/06/14 00:54:07 UTC
(Unknown)
Hi:
I have a requirement to deploy Apache Synapse 2.1 in a servlet container
and to use the containers transport ( in this case the tomcat BIO) . Once
deployed in Tomcat , Synapse is dropping query strings, when it sends
the request to the endpoint , in this case the end point is a servlet and
the request is an Http Get.
My Proxy configuration is as follows , I am searching in the dark to find
out why its not working , Could you please help me to figure out whats
going wrong here . I realy appreciate it .
When I call the proxy with
http://localhost:8080/services/UGCcreateWebProofDirectory?Createdirctory=Y&userId=12345654&cardId=3247658
, its calling the end point with out the query string
ie:- https://www.iprint.com/ugc/createWebProofDirectory
If I deploy the same proxy configs in a stand alone Synapse , and hit the
NIO port on 8280 every thing works fine .
Thanks
Anil
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="UGCcreateWebProofDirectory" transports="http"
serviceGroup="HttpSvc" startOnLoad="true" trace="enable">
<target inSequence="main" faultSequence="fault">
<endpoint>
<address uri="
http://www.iprint.com/ugc/createWebProofDirectory"/>
</endpoint>
<outSequence>
<send/>
</outSequence>
</target>
<publishWSDL>
<wsdl2:description xmlns:wsdl2="http://www.w3.org/ns/wsdl"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:tns="
http://ws.apache.org/axis2" xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"
xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc" xmlns:wsdlx="
http://www.w3.org/ns/wsdl-extensions" xmlns:whttp="
http://www.w3.org/ns/wsdl/http" targetNamespace="http://ws.apache.org/axis2
">
<wsdl2:types/>
<wsdl2:interface name="ServiceInterface">
<wsdl2:operation name="mediate" pattern="
http://www.w3.org/ns/wsdl/in-out">
<wsdl2:input element="#none"
wsaw:Action="urn:mediate"/>
<wsdl2:output element="#none"
wsaw:Action="urn:mediateResponse"/>
</wsdl2:operation>
</wsdl2:interface>
<wsdl2:binding name="UGCcreateWebProofDirectoryHttpBinding"
interface="tns:ServiceInterface" whttp:methodDefault="GET" type="
http://www.w3.org/ns/wsdl/http">
<wsdl2:operation ref="tns:mediate"
whttp:location="mediate">
<wsdl2:input/>
<wsdl2:output/>
</wsdl2:operation>
</wsdl2:binding>
<wsdl2:service name="UGCcreateWebProofDirectory"
interface="tns:ServiceInterface">
<wsdl2:endpoint
name="UGCcreateWebProofDirectoryHttpEndpoint"
binding="tns:UGCcreateWebProofDirectoryHttpBinding" address="
http://localhost:9080/services/UGCcreateWebProofDirectory.UGCcreateWebProofDirectoryHttpEndpoint
"/>
</wsdl2:service>
</wsdl2:description>
</publishWSDL>
<parameter name="HTTP_METHOD">GET</parameter>
<parameter
name="messageType">application/x-www-form-urlencoded</parameter>
</proxy>
<sequence name="fault">
<log level="full">
<property name="MESSAGE" value="Executing default 'fault'
sequence"/>
<property name="ERROR_CODE"
expression="get-property('ERROR_CODE')"/>
<property name="ERROR_MESSAGE"
expression="get-property('ERROR_MESSAGE')"/>
</log>
<drop/>
</sequence>
<sequence name="main">
<in>
<log level="full"/>
<filter source="get-property('To')"
regex="http://localhost:9000.*">
<send/>
</filter>
</in>
<out>
<send/>
</out>
<description>The main sequence for the message
mediation</description>
</sequence>
</definitions>
--
Cheers
Anil