I am trying with no success to loop through Syanpse $ctx: and $trp: objects.
I have tried XPATH as $ctx://*
How can we do this task?
Thanks
Related
I'm currently using WSO2 ESB 4.8.1 and I want to know whether it is possible to delay the ESB response from within the service.
That is, if a response arrives from the relevant backend, output it from the ESB service with a delay of a certain time.(example 60000ms)
Thanks in advance.
Have you tried adding a thread sleep [1].
<script language="js">java.lang.Thread.sleep(5000);</script>
[1]-http://sanjeewamalalgoda.blogspot.com/2013/11/how-to-add-sleep-interval-or-delay.html
is it possible to change the Signature-Algorithm in WSO2 API-Manger / Identity Server for the JWT-Token.
I'm using WSO2 API-Manager 2.0.0.
I found in the directory repository/conf/identity/identity.xml on line 229 the XML-Node
<SignatureAlgorithm>SHA256withRSA</SignatureAlgorithm>
But I can't finde a list with accepted values. I want to use the HS256-HMAC instead of SHA256withRSA. Is this possible?
That's the only signature algorithm that's currently supported. See the code.
But you can write your own JWT generator implementation like this extending AbstractJWTGenerator.
I just want to know that does WSO2 ESB by default support on soap 1.1? How to make it work on soap 1.2? Is there any global property by which I can change all the deployed services to make it work on soap 1.2?
Thanks in Advance
Regards,
Shri
Hi Thanks for your response. but I get below error when try 1.2 Soap request from the SOAP UI.
[2016-08-10 10:53:41,744] ERROR - NativeWorkerPool [msg_id=urn:uuid:4abc1b45-c6a8-4f92-9559-169d3dab403f] Uncaught exception
org.apache.axiom.om.impl.exception.OMBuilderException: detail unsupported element in SOAPFault element
at org.apache.axiom.soap.impl.builder.SOAP12BuilderHelper.handleEvent(SOAP12BuilderHelper.java:175)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:428)
WSO2 ESB supports both by default. For example, when you create a proxy service in ESB, it exposes both SOAP 1.1 and SOAP 1.2 endpoints.
It seems that this error happens when using SOAP 1.2 while communicating between .Net applications and Axis2. So far the only solution I have seen is to force the use of SOAP 1.1.
See also:
Mention of error
Apparently the definition of the SOAPfault changed slightly between versions, most importantly the capitalisation of certain elements, including the detail element. The error suggests that the received message includes the element, which is in accordance with SOAP 1.1, while in SOAP 1.2 it should be a element. For more detail, check this site
The latest WSO2 ESB (4.8.1) has documentation for configuring AMQP with RabbitMQ, which does not support AMQP 1.0. Does this mean WSO2 can not use AMQP 1.0 over QPid for example ? I'm very confused on this, since QPid seems to be referenced often in the WSO2 docs. Perhaps just as a client ? I really need a yes/no answer as to WSO2 support for both send and receive over AMQP 1.0,including remote brokers. Thanks.
I do not think it has built-in support (what, in my opinion, looks very strange)
There is a custom "WSO2 ESB Message Store and Message Processor implementation for RabbitMQ" - https://github.com/Chilcano/wso2esb-rabbitmq-message-store
It can be used to configure/implement AMPQ 1.0 support
Hi I am new to wso2 .
I want to call two different service (different URL) using a Proxy service based on some condition
I have two different service 1) One service to add and subtract two numbers 2) Another service to multiply and divide two numbers I want to create a proxy service to call this two service based on some condition,say if 1st number greater than second number,i need to call 1st service,otherwise i need to call second service
How to implement this using a proxy service
Can anyone help me how to use Conditional route mediator to implement this
Suggest me the best way to do this,Since i am new to WSO2,please help me in brief
Thanks in Advance
With WSO2 ESB, you can do this either via Filter Mediator or Conditional Router Mediator. There are many mediators and you can build your logic using desired mediators.
I would suggest you to go through documentation and samples.
There is one sample on Conditional Router Mediator, which will help you to understand on Conditional Router usage.
I think in your case, you should be able to use Filter mediator to compare your values via XPath operators.
For example, see the sample 156's filter mediator usage.
If you pass your values as URL parameters, you can get those URL parameters as properties.
Please note that these are just pointers for you to get started.
You can also try the WSO2 Developer Studio to create the ESB artifacts.
I hope this helps.