esb

PHP and ESB (with Mule) (ESB: Enterprise Service Bus)

我的未来我决定 提交于 2019-12-10 02:28:14
问题 Where, when and why did you use ESB in a PHP-project? Where, when and why do you think that it would make sense to use ESB in a PHP-project? Does ESB (and ESB-facilitators like Mule) do provide any capability PHP and native LAMP-technologies are lacking? Edit My motivation for this question is stemming from my assumption that you actually never really need Mule. Mule will facilitate communication with external services which you could handle without mule. At the end of the day also Mule will

How to convert SOAP web service to REST web service in Mule

若如初见. 提交于 2019-12-09 19:31:28
问题 I would like to convert SOAP ws to REST. Is there any elegant solution to this problem? REST should take input in json format. {key:value} This json should be put inside Body/Order/data tags: <soapenv:Body> <myApp:Order> <data>{key:value}</data> </myApp:Order> </soapenv:Body> 回答1: I guess Mule ESB should be best in doing this. Step 1 : You can expose a rest service via http endpoint which should accept your JSON. Step 2: Then a Custom Transformer can be used to prepare the SOAP request for

CDATA in payload factory in WSO2 ESB

大兔子大兔子 提交于 2019-12-09 13:35:03
问题 I am trying to write a sequence in ESB and populate my payload data by using payload factory as i stated below example. <payloadFactory> <format> <p:echoInt xmlns:p="http://echo.services.core.carbon.wso2.org"> <in xmlns="">$1</in> </p:echoInt> </format> <args> <arg xmlns:ns="http://org.apache.synapse/xsd" expression="an-xml-formatted-string"/> </args> </payloadFactory> <send> <endpoint> <address uri="http://noon101:8280/services/echo" format="soap11"/> </endpoint> </send> Because my string is

Multiple Inboud Endpoints in Mule ESB Flow?

馋奶兔 提交于 2019-12-08 10:46:44
问题 I need to support an operation both via SOAP and file dropping on a folder. Most of the logic will be he same. Is it possible to trigger the same flow with two message sources? I cant seem to find a way. Thanks 回答1: Use a composite message source: <composite-source> <file:inbound-endpoint ... /> <http:inbound-endpoint ... /> </composite-source> If you use CXF, you'll have to stick the service element inside the HTTP inbound endpoint. 来源: https://stackoverflow.com/questions/20530337/multiple

wso2 esb customURI / serviceURI with expression

南楼画角 提交于 2019-12-08 10:24:51
问题 I am trying to implement ESB solution to replace a web-tier part of a complex web-service architecture. The web-tier just receives the request from clients and distributes to a given set of app-tier instances. Since the end-points are already defined and used by clients, I had to build the ESB proxy using the "CustomURI" approach as described here - http://achala11.blogspot.com/2012/08/access-wsdl-for-customuri-wso2-esb.html - to expose the end-point and wsdl. Note that ServiceURI only allows

Consuming a JAX-WS in a Mule ESB flow

雨燕双飞 提交于 2019-12-08 09:25:51
问题 I want to consume a JAX-WS service method. the methode is named find and accept a String as argument. this the Mule flow : <flow name="InvokeAWebServiceFlow1" doc:name="InvokeAWebServiceFlow1"> <file:inbound-endpoint path="C:\MuleStudio\SandBox\input" pollingFrequency="3000" responseTimeout="10000" doc:name="File"/> <file:file-to-string-transformer encoding="UTF-8" mimeType="text/xml" doc:name="File to String"/> <cxf:jaxws-client port="douaneWSPort" serviceClass="WSDL.DouaneWS" doc:name="SOAP

Is there a while loop in Camel?

空扰寡人 提交于 2019-12-08 09:08:54
问题 Is there an idea of a while loop in Camel? We are using Camel for doing batch processing (not really the remit of an ESB I know). I want to keep checking on the status of something else whilst I am processing messages in the ESB. I can only find a loop that loops for a defined number of times, i.e. for testing or a quartz timer that will check every x seconds. Neither of these are really suitable. Any suggestions, or am I asking for something simply outside of the remit of an ESB? 回答1: What

How can i get HEADER in my ESB i am using following property, its not not working

泄露秘密 提交于 2019-12-08 07:53:07
问题 i am getting the data from mobile client they are sending data in JSON as well as sending some values as HEADER to WSO2ESB i am getting normal values using this property <property name="asset" expression="//asset/text()" scope="default"/> but how can i get HEADER in my ESB i am using this property its not not working <property name="username" expression="get-property('transport', 'Accept')"/> how it will work will you revert me as soon as Thanks in advance 回答1: if what you are trying to

getting inbound properties of ESB Mule message using Groovy

倾然丶 夕夏残阳落幕 提交于 2019-12-08 07:37:53
问题 I have groovy transformer component which is to get the inbound properties and set it in the flow vars as like below. if(message.inboundProperties.'http.query.params'.Brand != null){ flowVars ['Brand'] = message.inboundProperties.'http.query.params'.Brand } return payload; But I am getting below specified error. It seems inboundProperties are not in the scope of groovy. Can you please tell me how to access inbound properties in groovy. Note : I dont want to alter the payload. My aim is to

Mule ESB 3.4 Context property

房东的猫 提交于 2019-12-08 04:36:21
问题 How can one access the properties loaded by context:place-holder in a scripting component other than having to use ${property-name} ? I want to get to the object that holds these key value pairs. Something like context.getProperty("property-name") . 回答1: Spring property placeholders are resolved at configuration time and not stored anywhere, so they cant be loaded afterwards. If you need to store it you can always inject them into a bean and retrieve that from the registry. Basically all you