Hi, We observed following behavior in API Manager 1.7.0 which built on top of synapse 2.1.2.wso2v5. We sent same request to API created by fronting basic jaxrs service. Only difference is setting 2 content types. Backend service support both content types and we can invoke it without any issue.
01. Content-Type: text/xml [2014-05-07 18:36:31,114] DEBUG - headers http-outgoing-6 >> POST http://10.100.1.65:9764/jaxrs_basic/services/customers HTTP/1.1 02. Content-Type: application/xml [2014-05-07 18:36:11,805] DEBUG - headers http-outgoing-6 >> POST http://10.100.1.65:9764/jaxrs_basic/services/customers/ *customerservice/customers* HTTP/1.1 When content type is text/xml we can see part of the request is dropping. It send request directly to the endpoint defined in API without appending other things in client request url. Any idea what went wrong? Here is my API <api name="admin--jaxrs" context="/jaxrs" version="1.0.0" version-type="url"> <resource methods="POST GET DELETE OPTIONS PUT" uri-template="/*"> <inSequence> <property name="POST_TO_URI" value="true" scope="axis2"/> <filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION"> <then> <send> <endpoint name="admin--jaxrs_APIproductionEndpoint_0"> <http uri-template=" http://10.100.1.65:9764/jaxrs_basic/services/customers"> <timeout> <duration>30000</duration> <responseAction>fault</responseAction> </timeout> <suspendOnFailure> <errorCodes>-1</errorCodes> <initialDuration>0</initialDuration> <progressionFactor>1.0</progressionFactor> <maximumDuration>0</maximumDuration> </suspendOnFailure> <markForSuspension> <errorCodes>-1</errorCodes> </markForSuspension> </http> </endpoint> </send> </then> <else> <sequence key="_sandbox_key_error_"/> </else> </filter> </inSequence> <outSequence> <send/> </outSequence> </resource> <handlers> <handler class="org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler"/> <handler class="org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler"> <property name="id" value="A"/> <property name="policyKey" value="gov:/apimgt/applicationdata/tiers.xml"/> </handler> <handler class="org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageHandler"/> <handler class="org.wso2.carbon.apimgt.usage.publisher.APIMgtGoogleAnalyticsTrackingHandler"> <property name="configKey" value="gov:/apimgt/statistics/ga-config.xml"/> </handler> <handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/> </handlers> </api> Thanks, sanjeewa. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
