wso2esb

WSO2 XML Declaration

限于喜欢 提交于 2019-11-28 09:44:22
问题 I'm using WSO2 ESB 4.0.3 to deploy a simple service. I have a service returning the following XML: <Employees> <Employee> <EmployeeID>JOHNDOE1</EmployeeID> <FirstName>JOHN</FirstName> <LastName>DOE</LastName> </Employee> <Status>1</Status> </Employees> The problem I'm having is that there is no XML declaration. Is there a setting that will return the response with the XML declaration included, or do I need to use the ESB response to add it? I was hoping for something like: <?xml version="1.0"

wso2 ei server, error 403 forbidden, Does not access the core, error:required token is missing from the request

社会主义新天地 提交于 2019-11-28 08:22:29
问题 I am installing WSO2 EI 6.1.1 integrator --run : https://localhost:9445/carbon/admin/login.jsp -> OK wso2serber.bat : EI-Business-Process Server https://localhost:9445/carbon/admin/login_action.jsp Error 403 - Forbidden [EI-Business-Process] WARN {org.owasp.csrfguard.log.JavaLogger} - potential cross-site request forgery (CSRF) attack thwarted (user:<anonymous>, ip:192.168.1.11, method:POST, uri:/carbon/admin/login_action.jsp, error:required token is missing from the request) and wso2serber

WSO2 ESB : DYNAMICALLY CHANGE ENDPOINT ADDRESS

好久不见. 提交于 2019-11-28 01:57:15
how can i set endpoint address dynamically i set endpoint address in to a property in run time and need to replace URI of endpoint address with it's value. how can i set URI value of address with this value? You can create your endpoint like <endpoint xmlns="http://ws.apache.org/ns/synapse" name="MyEndpoint"> <http uri-template="{uri.var.full}?f={uri.var.f}{+uri.var.extra}" method="put"> </http> </endpoint> Then before calling the endpoint 'MyEndpoint' set the properties .. the properties, to be parsed for an endpoint must begin with uri. I also found out, that if you put a + before the

WSO2 ESB Tracking Request-Response

喜欢而已 提交于 2019-11-28 01:21:44
问题 I'm working on WSO2 ESB 4.8.1 By observing ESB HOME/repository/logs/wso2carbon.log i need to know the connection between one request and its relative response going through my proxy services. I tried following the MessageID property printed in the insequence and the out sequence of my proxies, but i realize, even if i'm not so sure, that this property is different from one to the other. So what's the way i could know which are the requests all the responses are connected with? Should have i

WSO2 ESB Unable to convert complete JSON data to XML

守給你的承諾、 提交于 2019-11-27 07:54:52
问题 I am constructing a POC. And I created a pass through proxy service for Google Plus. Without using any proxy service I get this is my output : { "kind":"plus#person", "etag":"\"ExituU7aUpmkkfyD52VulzptThw/4J1clegrhxYC2fsJOu2XWCs1Ewg\"", "id":"117488614303967062311", "displayName":"Abhi NeoN", "name":{ "familyName":"NeoN", "givenName":"Abhi" }, "tagline":"hey guys ! ssup!! check out ma recnt videos... uploaded", "gender":"male", "aboutMe":"\u003cb\u003ehie, abhishek - ma full name \u003c/b

how to read http headers in esb

不羁的心 提交于 2019-11-27 07:13:51
问题 How do I set a property to the value of an incoming http request header? I tried a few things (see following), but my log values are all null, so I'm clearly not reading the header values correctly. The header value I really care about is X-EMPID. Using wso2esb 4.8.1. Here are a couple of posts that led me to believe this would work, but I'm not having any luck yet. <proxy xmlns="http://ws.apache.org/ns/synapse" name="getaccount2" transports="https,http" statistics="disable" trace="disable"