wso2esb

How to Configure HTTP Basic Auth for WSO2 EI proxy service

三世轮回 提交于 2021-01-29 15:10:36
问题 i am using WSO2 Enterprise Integrator 6.5.0 (lastest) I need to enable HTTP Basic Authentication through a Proxy Service (SOAP, REST) I have tried below resource - WSO2 EI and WSO2 Developer - Setup an ESB Proxy with http basic authentication <?xml version="1.0" encoding="UTF-8"?> <proxy name="ProxyWithBasicAuth" startOnLoad="true" trace="disable" transports="https" xmlns="http://ws.apache.org/ns/synapse"> <target> <endpoint name="endpoint_urn_uuid_xxxxxxxx-yyyy-zzzz-1111-234567892345">

in wso2 ei i am getting org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: DOCTYPE is not allowed exception

自作多情 提交于 2021-01-29 12:29:50
问题 After calling an endpoint I am getting the response as <!DOCTYPE html> <. ..> So, it is throwing exception org.apache.axis2.AxisFault: Error while building Passthrough stream at org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:384) at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:196) at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:113) at org.apache.synapse.mediators

WSO2 EI: Dataservice using giving INCOMPATIBLE_PARAMETERS_ERROR when calling through REST API

匆匆过客 提交于 2021-01-28 19:57:26
问题 I am using WSO2 EI 6.3.0 version. I am creating data service within the application which reads data from CSV. I am running into very unusual case where I have created two data services. One with sample Product.csv which is shipped with WSO2 EI. When calling Sample (Product.CSV) I am able to get the json response message. but when I am trying to invoke another API which other data service it is giving me below error: [2018-10-10 17:57:31,916] [EI-Core] ERROR - JsonStreamFormatter Error

how to set different authorization header for different endpoint in wso2 esb

与世无争的帅哥 提交于 2021-01-28 14:26:13
问题 I have a scatter gather proxy implementation in which I need to call multiple endpoint systems which have different authorization header (username and password is different for different systems). Currently my esb calls only one endpoint and it discards others having different credentials. Please help. 回答1: If your backends use basic authentication, it should work if you set the "Authorization" header before each call of the backends. <property xmlns:ns="http://org.apache.synapse/xsd" name=

Wso2 ESB GET PROXY NAME

感情迁移 提交于 2021-01-28 06:24:38
问题 I would like to know how can I get the name of the proxy in use in a sequence: <proxy xmlns="http://ws.apache.org/ns/synapse" name="PROXYNAME" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <property> *GET-NAME OF THIS PROXY...* </property> </inSequence> </target> <publishWSDL uri="http://localhost/Test2/Service.asmx?wsdl" /> </proxy> EDIT In order to get the Name of the proxy (which should be contained in the header 'To' I am trying

Remove external tag with xpath wso2

不打扰是莪最后的温柔 提交于 2020-12-15 05:28:40
问题 how can I achieve this with xpath in wso2? Example: <TEMP> <NAME>GEORGE</NAME> <COGNOME>MENDEZ</COGNOME> <BUSINESSNAME/> <CHANNEL>X091</CHANNEL> </TEMP> Result: <NAME>GEORGE</NAME> <COGNOME>MENDEZ</COGNOME> <BUSINESSNAME/> <CHANNEL>X091</CHANNEL> Thanks 回答1: The XML generated needs to have a root element. Therefore you will not be able to create the following payload, which does not have a root element. <NAME>GEORGE</NAME> <COGNOME>MENDEZ</COGNOME> <BUSINESSNAME/> <CHANNEL>X091</CHANNEL>

WSO2 ESB: How to download a file over HTTP?

半世苍凉 提交于 2020-12-13 07:39:09
问题 I want to download an XML file from a Web site using WSO2 ESB. Assume that the URL is static for the sake of simplicity. I have tried VFS both as a proxy service and an individual sequence without success, and couldn't find any relevant material on the Internet. Here is the sequence XML: <sequence xmlns="http://ws.apache.org/ns/synapse" name="download"> <in> <log level="headers"> <property name="?" value="[download] in: started"/> </log> <property name="OUT_ONLY" value="true" scope="default"

WSO2 ESB: How to download a file over HTTP?

半腔热情 提交于 2020-12-13 07:37:45
问题 I want to download an XML file from a Web site using WSO2 ESB. Assume that the URL is static for the sake of simplicity. I have tried VFS both as a proxy service and an individual sequence without success, and couldn't find any relevant material on the Internet. Here is the sequence XML: <sequence xmlns="http://ws.apache.org/ns/synapse" name="download"> <in> <log level="headers"> <property name="?" value="[download] in: started"/> </log> <property name="OUT_ONLY" value="true" scope="default"

WSO2 ESB error on deploying custom mediator

对着背影说爱祢 提交于 2020-12-13 04:09:39
问题 I'm trying to implement a custom mediator in wso2 ESB 4.8. I used this article as a reference, and reffered to the docs as well, but couldn't get ESB to recognize my xml configuration for my mediator. I followed all the steps mentioned in the docs, moved the mediator's project .jar to <ESB_HOME>/ repository/components/lib and restarted the server, but I keep receiving the following error during deployment: ERROR - MediatorFactoryFinder Unknown mediator referenced by configuration element :

Getting following error while creating a user in WSO2 IS 5.9.0 using scim API?

女生的网名这么多〃 提交于 2020-08-11 05:01:31
问题 My username is mapped to email while creating a user with payload { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "name": { "formatted": "Careerex Admin" }, "userName": "careerex.admin@in.aanasonic.com", "password": "abc!12345", "profileUrl": "www.gmail.com", "phoneNumbers": [ { "type": "mobile", "value": "9876543210" } ], "locale": "Delhi" } I am getting following error regarding restrictions of username- { "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ],