Hi All,

Thanks a lot guys for the Replies.

@Malaka as you said Placing the end point inside a send mediator worked :) .

Regards,
Sam

On Mon, Mar 23, 2015 at 8:46 AM, Malaka Silva <mal...@wso2.com> wrote:

> Hi Sam,
>
> Try the following config,
>
> <?xml version="1.0" encoding="UTF-8"?>
> <proxy xmlns="http://ws.apache.org/ns/synapse";
>        name="GetFullClientInformation"
>        transports="https,http"
>        statistics="disable"
>        trace="disable"
>        startOnLoad="true">
>    <target>
>       <inSequence>
>          <clone>
>             <target>
>                <sequence>
>                   <payloadFactory media-type="xml">
>                      <format>
>                         <soap:Envelope xmlns:soap="
> http://www.w3.org/2003/05/soap-envelope";
>                                        xmlns:xsd="
> http://services.samples/xsd";
>                                        xmlns:ser="http://services.samples
> ">
>                            <soap:Header/>
>                            <soap:Body>
>
> <ser:getQuote><!--Optional:--><ser:request><!--Optional:--><xsd:symbol>IBM</xsd:symbol>
>                                  </ser:request>
>                               </ser:getQuote>
>                            </soap:Body>
>                         </soap:Envelope>
>                      </format>
>                      <args/>
>                   </payloadFactory>
>                   <log>
>                      <property name="zzzzzzzz"
> value="ccccccccccccccccccccccc"/>
>                   </log>
>                   <send>
>                      <endpoint>
>                         <address uri="
> http://Sams-MacBook-Pro.local:8280/services/SingleBackEndService
> <http://sams-macbook-pro.local:8280/services/SingleBackEndService>"/>
>                      </endpoint>
>                  </send>
>                </sequence>
>             </target>
>          </clone>
>       </inSequence>
>       <outSequence>
>          <log>
>             <property name="Inside Aggregator" value="Aggregator........"/>
>          </log>
>          <aggregate>
>             <completeCondition>
>                <messageCount min="0" max="2"/>
>             </completeCondition>
>             <onComplete xmlns:s12="http://www.w3.org/2003/05/soap-envelope
> "
>                         xmlns:s11="
> http://schemas.xmlsoap.org/soap/envelope/";
>
> expression="/s11:Envelope/s11:Body/child::*[position()=1] |
> /s12:Envelope/s12:Body/child::*[position()=1]"
>                         sequence="aggregateSeq"/>
>          </aggregate>
>          <send/>
>       </outSequence>
>    </target>
>    <description/>
> </proxy>
>
> On Mon, Mar 23, 2015 at 8:39 AM, Awanthika Senarath <awanth...@wso2.com>
> wrote:
>
>> Hi Sam,
>>
>> It appears as if your there has been a timed out,
>>
>> [2015-03-20 16:53:30,651]  WARN - SourceHandler Connection time out after
>> request is read: http-incoming-57
>>
>> try increasing the timeout parameter, follow [1]
>>
>>
>> [1]
>> http://wso2.com/library/articles/2012/03/wso2-esb-message-transfer-mechanisms-comparative-benchmarks/#configuringtheesb
>>
>> regards
>> Awanthika
>>
>> On Fri, Mar 20, 2015 at 5:04 PM, Sam Sivayogam <s...@wso2.com> wrote:
>>
>>> Hi All
>>>
>>> I wanted to use the clone mediator to create two custom soap requests in
>>> ESB 4.8.1. so i tried to created simple proxy service and and added a clone
>>> mediator then a target. then i added a endpoint to target and invoked the
>>> proxy it worked fine.
>>>
>>> but when i add a payloadmediator and tried to call the proxy i didn't
>>> get any response.when i checked the wire logs i found that the endpoints is
>>> not called. i have attached the carbon log and the proxy configuration
>>> after adding a payload mediator. can anyone please tell me where i went
>>> wrong ?
>>>
>>> carbon log
>>>
>>> [2015-03-20 16:53:05,086] DEBUG - SynapseArtifactDeploymentStore
>>> Removing restored file :
>>> /Users/Sam/DevTools/wso2esb-4.8.1/repository/deployment/server/synapse-configs/default/proxy-services/GetFullClientInformation.xml
>>> [2015-03-20 16:53:07,376] DEBUG - wire >> "POST
>>> /services/GetFullClientInformation HTTP/1.1[\r][\n]"
>>> [2015-03-20 16:53:07,376] DEBUG - wire >> "Accept-Encoding:
>>> gzip,deflate[\r][\n]"
>>> [2015-03-20 16:53:07,376] DEBUG - wire >> "Content-Type:
>>> application/soap+xml;charset=UTF-8;action="urn:getQuote"[\r][\n]"
>>> [2015-03-20 16:53:07,376] DEBUG - wire >> "Content-Length: 396[\r][\n]"
>>> [2015-03-20 16:53:07,376] DEBUG - wire >> "Host:
>>> Sams-MacBook-Pro.local:8280[\r][\n]"
>>> [2015-03-20 16:53:07,376] DEBUG - wire >> "Connection:
>>> Keep-Alive[\r][\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "User-Agent:
>>> Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "[\r][\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "<soap:Envelope xmlns:soap="
>>> http://www.w3.org/2003/05/soap-envelope"; xmlns:ser="
>>> http://services.samples"; xmlns:xsd="http://services.samples/xsd";>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "   <soap:Header/>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "   <soap:Body>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "      <ser:getQuote>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "         <!--Optional:-->[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "         <ser:request>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "
>>>  <!--Optional:-->[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "
>>>  <xsd:symbol>IBM</xsd:symbol>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "         </ser:request>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "      </ser:getQuote>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "   </soap:Body>[\n]"
>>> [2015-03-20 16:53:07,377] DEBUG - wire >> "</soap:Envelope>"
>>> [2015-03-20 16:53:07,380] DEBUG - ProxyServiceMessageReceiver Proxy
>>> Service GetFullClientInformation received a new message from : 10.100.5.192
>>> [2015-03-20 16:53:07,380] DEBUG - ProxyServiceMessageReceiver Message
>>> To: /services/GetFullClientInformation
>>> [2015-03-20 16:53:07,380] DEBUG - ProxyServiceMessageReceiver
>>> SOAPAction: urn:getQuote
>>> [2015-03-20 16:53:07,380] DEBUG - ProxyServiceMessageReceiver
>>> WSA-Action: urn:getQuote
>>> [2015-03-20 16:53:07,380] DEBUG - ProxyServiceMessageReceiver Using the
>>> anonymous in-sequence of the proxy service for mediation
>>> [2015-03-20 16:53:07,380] DEBUG - SequenceMediator Start : Sequence
>>> <anonymous>
>>> [2015-03-20 16:53:07,380] DEBUG - SequenceMediator Sequence
>>> <SequenceMediator> :: mediate()
>>> [2015-03-20 16:53:07,380] DEBUG - SequenceMediator Mediation started
>>> from mediator position : 0
>>> [2015-03-20 16:53:07,381] DEBUG - CloneMediator Start : Clone mediator
>>> [2015-03-20 16:53:07,381] DEBUG - CloneMediator Submitting 1 of 1
>>> messages for parallel processing
>>> [2015-03-20 16:53:07,381] DEBUG - Axis2SynapseEnvironment Creating
>>> Message Context
>>> [2015-03-20 16:53:07,381]  WARN - MessageHelper Deep clone not happened
>>> for property : tenant.info.id. Class type : java.lang.Integer
>>> [2015-03-20 16:53:07,382]  INFO - MessageHelper Parent's Fault Stack :
>>> [] : Child's Fault Stack :[]
>>> [2015-03-20 16:53:07,382] DEBUG - Target Target mediation : START
>>> [2015-03-20 16:53:07,382] DEBUG - Target Asynchronously mediating using
>>> the in-lined anonymous sequence
>>> [2015-03-20 16:53:07,382] DEBUG - Axis2SynapseEnvironment Injecting
>>> MessageContext for asynchronous mediation using the : Anonymous Sequence
>>> [2015-03-20 16:53:07,383] DEBUG - Target Target mediation : END
>>> [2015-03-20 16:53:07,383] DEBUG - CloneMediator End : Clone mediator
>>> [2015-03-20 16:53:07,383] DEBUG - SequenceMediator Start : Sequence
>>> <anonymous>
>>> [2015-03-20 16:53:07,383] DEBUG - SequenceMediator End : Sequence
>>> <anonymous>
>>> [2015-03-20 16:53:07,383] DEBUG - SequenceMediator Sequence
>>> <SequenceMediator> :: mediate()
>>> [2015-03-20 16:53:07,383] DEBUG - SequenceMediator Mediation started
>>> from mediator position : 0
>>> [2015-03-20 16:53:07,383] DEBUG - PayloadFactoryMediator #mediate.
>>> Transformed payload format>>> <pfPadding><soap:Envelope xmlns:soap="
>>> http://www.w3.org/2003/05/soap-envelope"; xmlns:xsd="
>>> http://services.samples/xsd"; xmlns:ser="http://services.samples
>>> "><soap:Header></soap:Header><soap:Body><ser:getQuote><!--Optional:--><ser:request><!--Optional:--><xsd:symbol>IBM</xsd:symbol></ser:request></ser:getQuote></soap:Body></soap:Envelope></pfPadding>
>>> [2015-03-20 16:53:07,383] DEBUG - LogMediator Start : Log mediator
>>> [2015-03-20 16:53:07,384]  INFO - LogMediator To:
>>> /services/GetFullClientInformation, WSAction: urn:getQuote, SOAPAction:
>>> urn:getQuote, MessageID: urn:uuid:9141b9ed-3de0-4f97-a40f-301fe9b8d998,
>>> Direction: request, zzzzzzzz = ccccccccccccccccccccccc
>>> [2015-03-20 16:53:07,384] DEBUG - LogMediator End : Log mediator
>>> [2015-03-20 16:53:07,384] DEBUG - SequenceMediator End : Sequence
>>> <anonymous>
>>> [2015-03-20 16:53:30,651]  WARN - SourceHandler Connection time out
>>> after request is read: http-incoming-57
>>>
>>>
>>> proxy config
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <proxy xmlns="http://ws.apache.org/ns/synapse";
>>>        name="GetFullClientInformation"
>>>        transports="https,http"
>>>        statistics="disable"
>>>        trace="disable"
>>>        startOnLoad="true">
>>>    <target>
>>>       <inSequence>
>>>          <clone>
>>>             <target>
>>>                <sequence>
>>>                   <payloadFactory media-type="xml">
>>>                      <format>
>>>                         <soap:Envelope xmlns:soap="
>>> http://www.w3.org/2003/05/soap-envelope";
>>>                                        xmlns:xsd="
>>> http://services.samples/xsd";
>>>                                        xmlns:ser="
>>> http://services.samples";>
>>>                            <soap:Header/>
>>>                            <soap:Body>
>>>
>>> <ser:getQuote><!--Optional:--><ser:request><!--Optional:--><xsd:symbol>IBM</xsd:symbol>
>>>                                  </ser:request>
>>>                               </ser:getQuote>
>>>                            </soap:Body>
>>>                         </soap:Envelope>
>>>                      </format>
>>>                      <args/>
>>>                   </payloadFactory>
>>>                   <log>
>>>                      <property name="zzzzzzzz"
>>> value="ccccccccccccccccccccccc"/>
>>>                   </log>
>>>                </sequence>
>>>                <endpoint>
>>>                   <address uri="
>>> http://Sams-MacBook-Pro.local:8280/services/SingleBackEndService"/>
>>>                </endpoint>
>>>             </target>
>>>          </clone>
>>>       </inSequence>
>>>       <outSequence>
>>>          <log>
>>>             <property name="Inside Aggregator"
>>> value="Aggregator........"/>
>>>          </log>
>>>          <aggregate>
>>>             <completeCondition>
>>>                <messageCount min="0" max="2"/>
>>>             </completeCondition>
>>>             <onComplete xmlns:s12="
>>> http://www.w3.org/2003/05/soap-envelope";
>>>                         xmlns:s11="
>>> http://schemas.xmlsoap.org/soap/envelope/";
>>>
>>> expression="/s11:Envelope/s11:Body/child::*[position()=1] |
>>> /s12:Envelope/s12:Body/child::*[position()=1]"
>>>                         sequence="aggregateSeq"/>
>>>          </aggregate>
>>>       </outSequence>
>>>       <endpoint>
>>>          <address uri="
>>> http://Sams-MacBook-Pro.local:8280/services/SingleBackEndService"/>
>>>       </endpoint>
>>>    </target>
>>>    <description/>
>>> </proxy>
>>>
>>> Thanks
>>> Sam
>>> --
>>> *Sam Sivayogam*
>>>
>>> Software Engineer
>>> Mobile  : +94 772 906 439
>>> Office   : +94 112 145 345
>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>> lean.enterprise.middleware.
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> _______________________________________________
>> 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
> Skype : malaka.sampath.silva
> 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.
>



-- 
*Sam Sivayogam*

Software Engineer
Mobile  : +94 772 906 439
Office   : +94 112 145 345
*WSO2, Inc. :** wso2.com <http://wso2.com/>*
lean.enterprise.middleware.
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to