English 中文(简体)
如何逐个发送请求?
原标题:How to send request one by one?

I have a service like this. The Client request is a multiple records. For example, the client request is :

parameter1, parameter2, parameter3, parameter4, parameter5
parameter1, parameter2, parameter3, parameter4, parameter5
parameter1, parameter2, parameter3, parameter4, parameter5
parameter1, parameter2, parameter3, parameter4, parameter5

我要逐个发送这些记录到真正的服务处 如何在WSO2中做到这一点?

问题回答

In that case you can use callout mediator with the iterate mediator. Where in the iteration you can iterate over Each set of parameters and in the iterate target you can do a call out (use Callout mediator) to the service using the each set of parameters.

您需要在 < a href=" http:// wso2. org/ project/esb/java/ 4/ 3/docs/ medicers/ iterate.html" rel = “ nofollow” >itate调解员 < / a > 中设定序列参数为真 。 调用调解员是封隔电话。 因此, 它会阻断响应 。 见http:// wso2. org/ project/esb/java/4. 0.3/docs/ medictors/callout. html" rel=“ nofollow” > 调用调解员 < /a> 。

如果您能提供准确的信息格式, 我可以提供更多细节。 样本信息会很好 。

我猜你的数据是格式化的

<data>
<record>param1</record>
<record>param2</record>
<record>param3</record>
<record>param4</record>
</data>

如果是这样的话, 您的要求是将这些数据逐个通过元素逐个循环发送。 您可以使用 WSO2 ESB 的循环调解员, 并通过参数进行循环, 并逐个发送。 您需要在循环调解员中将参数“ 序列” 设置为真实, 以便将其设置为单线 。

http://wso2.org/project/esb/java/4.0.3/docs/samples/advanced_ medication_samples.html#Splitter" rel=“nofollow'>http://wso2.org/project/esb/java/4.0.3/docs/samples/advanced_medition_samples.html#Splitter

cheers, Charith

如果您更详细地阐述您的具体要求, 回答会更容易些。 因此, 我假设您的要求是将客户端的某些值以顺序方式发送到服务处。 为此, 您可以简单地提取请求中的任何参数( 作为使用财产调解员的属性), 然后按顺序引用每个参数的服务 。 ( 发送调解员, 接收顺序)





相关问题
how do create a test connection to informix with jdbc?

i dowloaded the Informix JDBC driver connect for deploy it a datasource in my project, they indicated to me that i should download the Informix developer edition from Docker Hub to do a test ...

AXIS2/C and ONVIF

I m trying to create the stub of the wsdl http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl using AXIS2/C (c++), using the following command: ./WSDL2CPP.sh -uri http://www.onvif.org/...

How to build WSO2 WSF/PHP 2.1.0 for FreeBSD 8.1?

I have a problem with building WSO2 WSF/PHP on my FreeBSD 8.1. It seems that something broken in the source. I check all prerequisites then run ./configure && make and receive next error: ...

Test whether SOAP is running properly

Programatically, I want to test whether SOAP is working fine on my clients machine. The machine can be windows/linux. I want to get the SOAP version as well. I m using PHP. Similarly, I want to do it ...

SOAP authentication with PHP

I need to connect to a web service that requires authentication credentials in the form of a plain text user name and password. I have a basic understanding of SOAP and have managed to connect to ...

PHP WSO2 s WSF/PHP

I am trying to use WSO2 WSF for PHP and I am using a WS Security object. I am making the request to the server and getting an Authentication error. I believe the WS Security Object is missing ...

热门标签