Hey thanks but my call is not going to my backend microservice when i am
injecting mediation sequence.My sequence is as follows:

<sequence xmlns="http://ws.apache.org/ns/synapse"; name="TestSequence2">
  <property name="JsonPayload" expression="json-eval($.)"></property>
      <class name="com.custom.json.payload.CustomJsonPayloadSetter"></class>
       <log level="custom">
          <property name="json" expression="get-property('JsonPayload')"/>
          </log>
</sequence>


And my backend microservice is as follows:

        @POST
            @Path("/testService")
            @Produces({"text/plain"})
            public Response testService(@RequestBody JsonObject json){
        
        
                        return
Response.status(Response.Status.OK).entity("Hello World").build();
            }


Can you please tell me where I have not configured properly?



Many thanks,
Priyadarshini

On Thu, 21 Nov 2019, 10:50 Fazlan Nazeem, <[email protected]> wrote:

> Hi Priyadarshini,
>
> If you need to customize the encryption of the payload, you should be able
> to do it by implementing a class mediator with your custom encryption logic
> and engaging it in the request path via a mediation sequence.
>
> On Wed, Nov 20, 2019 at 6:56 PM Priyadarshini Punjabi <
> [email protected]> wrote:
>
>> Hi,
>>
>> Can we achieve custom encryption decryption of payload of target backend
>> service in wso2 api manager 2.6.0?
>>
>>
>> Many thanks,
>> Priyadarshini
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Thanks & Regards,
>
> *Fazlan Nazeem | *Associate Technical Lead | WSO2 Inc
> Mobile : +94772338839 | [email protected]
>
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to