Hi Nuwan,

Please find the attachment of API configuration file and I added few
breakpoints as follows:

API in sequence - Log mediator, payload mediator, send mediator

API out sequence - Property, payload and send mediators

Regards,
Dilshani


On Tue, May 3, 2016 at 2:27 PM, Nuwan Pallewela <[email protected]> wrote:

> Hi Dilshani,
>
> Can you send me the api configuration file and the breakpoints you marked?
>
> Thanks,
> Nuwan
>
> On Tue, May 3, 2016 at 2:22 PM, Dilshani Subasinghe <[email protected]>
> wrote:
>
>> Hi ESB Team,
>>
>> As I found, mediation debugging feature does not work for APIs. I didn't
>> even see any functional test cases related to APIs.
>>
>> Did you not developed that feature to cover APIs or missed covering APIs ?
>>
>> Any clarifications will be really helpful.
>>
>> Thank you.
>>
>> --
>> Best Regards,
>>
>> Dilshani Subasinghe
>> Software Engineer - QA
>> WSO2, Inc.;http://wso2.com/
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
>> lean.enterprise.middleware
>>
>> Mobile: +94773375185
>>
>> Blog: dilshanilive.blogspot.com
>>
>
>
>
> --
> ----------------------------------------------------------
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *[email protected] <[email protected]>*
> Mobile  *+94719079739 <%2B94719079739>@*
>
>
>


-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
lean.enterprise.middleware

Mobile: +94773375185

Blog: dilshanilive.blogspot.com
<?xml version="1.0" encoding="UTF-8"?>
<api context="/echoservice" name="EchoAPI" xmlns="http://ws.apache.org/ns/synapse";>
    <resource faultSequence="fault" methods="HEAD DELETE POST GET OPTIONS PUT PATCH" uri-template="/name/{symbol}">
        <inSequence>
            <log level="full">
                <property name="Message" value="====================This is sequence1==========="/>
            </log>
            <property expression="//login/user/displayname" name="Name" scope="default" type="STRING" xmlns:ns="http://org.apache.synapse/xsd"/>
            <payloadFactory media-type="xml">
                <format>
                    <ns1:echoString xmlns:ns1="http://echo.services.core.carbon.wso2.org";>
                        <in>$1</in>
                    </ns1:echoString>
                </format>
                <args>
                    <arg evaluator="xml" expression="get-property('uri.var.symbol')" xmlns:ns="http://org.apache.synapse/xsd"/>
                </args>
            </payloadFactory>
            <log level="full">
                <property expression="get-property('Name')" name="Name"/>
            </log>
            <send>
                <endpoint>
                    <address trace="disable" uri="http://localhost:8280/services/echo"/>
                </endpoint>
            </send>
        </inSequence>
        <outSequence>
            <log level="full">
                <property name="Message" value="====================This is sequence2==========="/>
            </log>
            <property expression="//ns:echoStringResponse/return" name="EchoName" scope="default" type="STRING" xmlns:ns="http://echo.services.core.carbon.wso2.org"/>
            <payloadFactory media-type="xml">
                <format>
                    <user>
                        <message>
                            <welcome>Welcome</welcome>
                            <name>$1</name>
                            <end>for WSO2 technologies !!!</end>
                        </message>
                    </user>
                </format>
                <args>
                    <arg evaluator="xml" expression="get-property('EchoName')" xmlns:ns="http://org.apache.synapse/xsd"/>
                </args>
            </payloadFactory>
            <send/>
        </outSequence>
    </resource>
</api>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to