Hi Krishantha,

The issue is not clear for us. Please explain it? Also share the axis2.xml

Also I noticed that message formatter and builder is not properly
configured,


Eg:

<messageBuilder contentType="multipart/form-data"

                        class="org.wso2.carbon.relay."/>



<messageFormatter contentType="multipart/form-data"

                          class="org.apache.axis2.transport.http."/>

Best Regards,
Malaka


On Thu, Jan 30, 2014 at 12:56 AM, Krishantha Dinesh <kr...@krishantha.com>wrote:

> *More information*
>
>
>  *Pls find the behaviors of output based on axis to relay configuration*
>
>
> *INPUT to ESB*
>
>
> POST /services/postPhotoToAlbumHttpSoap11Endpoint HTTP/1.1
>
> Accept-Encoding: gzip,deflate
>
> Content-Type: text/xml;charset=UTF-8
>
> SOAPAction: "urn:mediate"
>
> Content-Length: 488
>
> Host: localhost:8280
>
> Connection: Keep-Alive
>
> User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
>
> X-Forwarded-For: 127.0.0.1
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> ">
>
>   <soapenv:Header></soapenv:Header>
>
>   <soapenv:Body>
>
>   <root>
>
>
> <accessToken>CAACEdEose0cBAMotx64LhZBfX7VXAgdt1zsHJCnwJRewdi55clZBUIb6FdRdBKoU4INqXPI5NekgGkPEf5FwIk3ASIZBqmJQPkomlOZAxvj2tusLPl57tUk1RZBGvNq8iQmWKuoW1KsUerxhI4vA1Nol5DvQj4oVLqVO6hwTaC9rArNSWIbr99DZApGxIA5YGxFGi8E0JotgZDZD</accessToken>
>
>     <source></source>
>
>   </root>
>
>   </soapenv:Body>
>
> </soapenv:Envelope>
>
>
> output from ESB
> BinaryRelayBuilder<->ExpandingMessageFormatter
>
> POST /10150897830516344/photos HTTP/1.1
>
> Accept-Encoding: gzip,deflate
>
> X-Forwarded-For: 127.0.0.1
>
> Content-Type: multipart/form-data
>
> SOAPAction: "urn:mediate"
>
> Transfer-Encoding: chunked
>
> Host: graph.facebook.com:443
>
> Connection: Keep-Alive
>
> User-Agent: Synapse-PT-HttpComponents-NIO
>
> X-Forwarded-For: 127.0.0.1, 127.0.0.1
>
>
>
> 201
>
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header></soapenv:Header><soapenv:Body><imageData
> xmlns="http://ws.apache.org/ns/synapse
> "><access_token>CAACEdEose0cBAMotx64LhZBfX7VXAgdt1zsHJCnwJRewdi55clZBUIb6FdRdBKoU4INqXPI5NekgGkPEf5FwIk3ASIZBqmJQPkomlOZAxvj2tusLPl57tUk1RZBGvNq8iQmWKuoW1KsUerxhI4vA1Nol5DvQj4oVLqVO6hwTaC9rArNSWIbr99DZApGxIA5YGxFGi8E0JotgZDZD</access_token><source></source></imageData></soapenv:Body></soapenv:Envelope>
>
> 0
>
> BinaryRelayBuilder<-> MultipartFormDataFormatter
>
> <messageBuilder contentType="multipart/form-data"
>
>                         class="org.wso2.carbon.relay."/>
>
>
>
> <messageFormatter contentType="multipart/form-data"
>
>                           class="org.apache.axis2.transport.http."/>
>
>
>
>  fromESB
>
> --MIMEBoundary_4005c93d90f5f09d8bd30c0691e5b1ddf2192b5c862bdf91
>
> Content-Disposition: form-data; name="access_token"
>
> Content-Type: text/plain; charset=US-ASCII
>
> Content-Transfer-Encoding: 8bit
>
>
>
>
> CAACEdEose0cBAMotx64LhZBfX7VXAgdt1zsHJCnwJRewdi55clZBUIb6FdRdBKoU4INqXPI5NekgGkPEf5FwIk3ASIZBqmJQPkomlOZAxvj2tusLPl57tUk1RZBGvNq8iQmWKuoW1KsUerxhI4vA1Nol5DvQj4oVLqVO6hwTaC9rArNSWIbr99DZApGxIA5YGxFGi8E0JotgZDZD
>
> --MIMEBoundary_4005c93d90f5f09d8bd30c0691e5b1ddf2192b5c862bdf91
>
> Content-Disposition: form-data; name="source"
>
> Content-Type: text/plain; charset=US-ASCII
>
> Content-Transfer-Encoding: 8bit
>
>
>
>
>
> --MIMEBoundary_4005c93d90f5f09d8bd30c0691e5b1ddf2192b5c862bdf91--
>
>
> MultipartFormDataBuilder<-> ExpandingMessageFormatter
>
>
> POST /10150897830516344/photos HTTP/1.1
>
> Accept-Encoding: gzip,deflate
>
> X-Forwarded-For: 127.0.0.1
>
> Content-Type: multipart/form-data
>
> SOAPAction: "urn:mediate"
>
> Transfer-Encoding: chunked
>
> Host: graph.facebook.com:443
>
> Connection: Keep-Alive
>
> User-Agent: Synapse-PT-HttpComponents-NIO
>
> X-Forwarded-For: 127.0.0.1, 127.0.0.1
>
>
>
> 201
>
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header></soapenv:Header><soapenv:Body><imageData
> xmlns="http://ws.apache.org/ns/synapse
> "><access_token>CAACEdEose0cBAMotx64LhZBfX7VXAgdt1zsHJCnwJRewdi55clZBUIb6FdRdBKoU4INqXPI5NekgGkPEf5FwIk3ASIZBqmJQPkomlOZAxvj2tusLPl57tUk1RZBGvNq8iQmWKuoW1KsUerxhI4vA1Nol5DvQj4oVLqVO6hwTaC9rArNSWIbr99DZApGxIA5YGxFGi8E0JotgZDZD</access_token><source></source></imageData></soapenv:Body></soapenv:Envelope>
>
> 0
>
>
> MultipartFormDataBuilder <-> MultipartFormDataFormatter
>
> POST /10150897830516344/photos HTTP/1.1
>
> Accept-Encoding: gzip,deflate
>
> X-Forwarded-For: 127.0.0.1
>
> Content-Type: multipart/form-data
>
> SOAPAction: urn:mediate
>
> Transfer-Encoding: chunked
>
> Host: graph.facebook.com:443
>
> Connection: Keep-Alive
>
> User-Agent: Synapse-PT-HttpComponents-NIO
>
> X-Forwarded-For: 127.0.0.1, 127.0.0.1
>
>
>
> 29c
>
> --MIMEBoundary_588b3db44ce49dd52107589eea5fdcdc3d9a943eeeadcc5a
>
> Content-Disposition: form-data; name="access_token"
>
> Content-Type: text/plain; charset=US-ASCII
>
> Content-Transfer-Encoding: 8bit
>
>
>
>
> CAACEdEose0cBAMotx64LhZBfX7VXAgdt1zsHJCnwJRewdi55clZBUIb6FdRdBKoU4INqXPI5NekgGkPEf5FwIk3ASIZBqmJQPkomlOZAxvj2tusLPl57tUk1RZBGvNq8iQmWKuoW1KsUerxhI4vA1Nol5DvQj4oVLqVO6hwTaC9rArNSWIbr99DZApGxIA5YGxFGi8E0JotgZDZD
>
> --MIMEBoundary_588b3db44ce49dd52107589eea5fdcdc3d9a943eeeadcc5a
>
> Content-Disposition: form-data; name="source"
>
> Content-Type: text/plain; charset=US-ASCII
>
> Content-Transfer-Encoding: 8bit
>
>
>
>
>
> --MIMEBoundary_588b3db44ce49dd52107589eea5fdcdc3d9a943eeeadcc5a--
>
>
>
> 0
>
>
>
> On Thu, Jan 30, 2014 at 12:51 AM, Krishantha Dinesh 
> <kr...@krishantha.com>wrote:
>
>> *Pls find the behaviors of output based on axis to relay configuration*
>>
>>
>> *INPUT to ESB*
>>
>>
>> POST /services/postPhotoToAlbumHttpSoap11Endpoint HTTP/1.1
>>
>> Accept-Encoding: gzip,deflate
>>
>> Content-Type: text/xml;charset=UTF-8
>>
>> SOAPAction: "urn:mediate"
>>
>> Content-Length: 488
>>
>> Host: localhost:8280
>>
>> Connection: Keep-Alive
>>
>> User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
>>
>> X-Forwarded-For: 127.0.0.1
>>
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <soapenv:Envelope xmlns:soapenv="
>> http://schemas.xmlsoap.org/soap/envelope/";>
>>
>>   <soapenv:Header></soapenv:Header>
>>
>>   <soapenv:Body>
>>
>>   <root>
>>
>>
>> <accessToken>CAACEdEose0cBAMotx64LhZBfX7VXAgdt1zsHJCnwJRewdi55clZBUIb6FdRdBKoU4INqXPI5NekgGkPEf5FwIk3ASIZBqmJQPkomlOZAxvj2tusLPl57tUk1RZBGvNq8iQmWKuoW1KsUerxhI4vA1Nol5DvQj4oVLqVO6hwTaC9rArNSWIbr99DZApGxIA5YGxFGi8E0JotgZDZD</accessToken>
>>
>>     <source></source>
>>
>>   </root>
>>
>>   </soapenv:Body>
>>
>> </soapenv:Envelope>
>>
>>
>> output from ESB
>>
>>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/<http://wso2.com/about/team/malaka-silva/>

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to