Hi, I don't set any of the properties to x-www-form-urlencoded in my configs. However when I set messageType to application/json correct url is seen in outgoing message from ESB
[2016-07-28 12:04:23,049] DEBUG - wire << "GET* /abc?abc=123* HTTP/1.1[\r][\n]" [2016-07-28 12:04:23,049] DEBUG - wire << "Authorization: Token[\r][\n]" [2016-07-28 12:04:23,049] DEBUG - wire << "Accept: */*[\r][\n]" [2016-07-28 12:04:23,049] DEBUG - wire << "Content-Type: application/json[\r][\n]" [2016-07-28 12:04:23,050] DEBUG - wire << "Host: localhost:8888[\r][\n]" [2016-07-28 12:04:23,050] DEBUG - wire << "Connection: Keep-Alive[\r][\n]" [2016-07-28 12:04:23,050] DEBUG - wire << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]" [2016-07-28 12:04:23,050] DEBUG - wire << "[\r][\n]" [2016-07-28 12:04:23,050] WARN - TargetHandler Connecti ---------- Forwarded message ---------- From: Udara Liyanage <ud...@wso2.com> Date: Thu, Jul 28, 2016 at 12:00 PM Subject: Re: What is this xformValues To: Vijitha Ekanayake <vijit...@wso2.com> Hi, Did you mean in transport receiver or in our configs?. we did n't set it in our configs. However when I set messageType and Content-Type to application/json it works as expected On Thu, Jul 28, 2016 at 11:48 AM, Vijitha Ekanayake <vijit...@wso2.com> wrote: > It seems you are having x-www-form-urlencoded Data to the backend. Check > whether below to properties has set in the somewhere in the InFlow of the > message. > > <property name="messageType" value="application/x-www-form-urlencoded" > scope="axis2" type="STRING"/> > <property name="ContentType" value="application/x-www-form-urlencoded" > scope="axis2" type="STRING"/> > > > On Thu, Jul 28, 2016 at 11:26 AM, Udara Liyanage <ud...@wso2.com> wrote: > >> Hi, >> >> What is this GET */xformValues in *ESB outgoing message >> >> Request >> curl -X POST -H "Authorization: Token" " >> http://ampdevcmsst-wso2api.amp.endeavourdemo.com:8280/users/" -v >> >> >> <endpoint xmlns="http://ws.apache.org/ns/synapse" name="localendpoint"> >> <http uri-template="http://localhost:8888/abc?abc=123" method="get"> >> <suspendOnFailure> >> <progressionFactor>1.0</progressionFactor> >> </suspendOnFailure> >> <markForSuspension> >> <retriesBeforeSuspension>0</retriesBeforeSuspension> >> <retryDelay>0</retryDelay> >> </markForSuspension> >> </http> >> </endpoint> >> >> [2016-07-28 11:21:30,680] DEBUG - wire >> "POST /users/ HTTP/1.1[\r][\n]" >> [2016-07-28 11:21:30,681] DEBUG - wire >> "Host: >> ampdevcmsst-wso2api.amp.endeavourdemo.com:8280[\r][\n]" >> [2016-07-28 11:21:30,681] DEBUG - wire >> "User-Agent: >> curl/7.43.0[\r][\n]" >> [2016-07-28 11:21:30,681] DEBUG - wire >> "Accept: */*[\r][\n]" >> [2016-07-28 11:21:30,681] DEBUG - wire >> "Authorization: Token[\r][\n]" >> [2016-07-28 11:21:30,681] DEBUG - wire >> "[\r][\n]" >> [2016-07-28 11:21:30,740] INFO - LogMediator To: /users/, MessageID: >> urn:uuid:380a10da-a751-4f0b-8397-203e7079525b, Direction: request, auth >> header2 = Token >> [2016-07-28 11:21:30,748] INFO - TimeoutHandler This engine will expire >> all callbacks after : 120 seconds, irrespective of the timeout action, >> after the specified or optional timeout >> [2016-07-28 11:21:30,770] DEBUG - wire << "GET */xformValues* >> HTTP/1.1[\r][\n]" >> [2016-07-28 11:21:30,770] DEBUG - wire << "Authorization: Token[\r][\n]" >> [2016-07-28 11:21:30,770] DEBUG - wire << "Accept: */*[\r][\n]" >> [2016-07-28 11:21:30,770] DEBUG - wire << "Host: localhost:8888[\r][\n]" >> [2016-07-28 11:21:30,770] DEBUG - wire << "Connection: Keep-Alive[\r][\n]" >> [2016-07-28 11:21:30,770] DEBUG - wire << "User-Agent: >> Synapse-PT-HttpComponents-NIO[\r][\n]" >> [2016-07-28 11:21:30,770] DEBUG - wire << "[\r][\n]" >> >> -- >> >> Udara Liyanage >> Software Engineer >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> >> Blog: http://udaraliyanage.wordpress.com >> > > > > -- > Vijitha Ekanayake > Software Engineer*, *WSO2, Inc.; http://wso2.com/ > Mobile : +94 777 24 73 39 | +94 718 74 44 08 > lean.enterprise.middleware > -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware Blog: http://udaraliyanage.wordpress.com -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware Blog: http://udaraliyanage.wordpress.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev