wso2esb - Invalid tenant domain Wso2 ESB-AM -
i'm trying make simple proxy using 1 of store apis in wso2 am, when send request error shown.
{"error" : true, "message" : "invalid tenant domain."}
this proxy , i'm using postman test it, , send user , pass json
<?xml version="1.0" encoding="utf-8"?> <proxy name="login" startonload="true" trace="disable" transports="https http" xmlns="http://ws.apache.org/ns/synapse"> <target> <insequence> <property expression="json-eval($.user)" name="user" scope="default" type="string"/> <property expression="json-eval($.pass)" name="user" scope="default" type="string"/> <log level="full"> <property name="sequence" value="paso 1 - login am"/> </log> <payloadfactory media-type="xml"> <format> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:body> <root xmlns=""> <action>login</action> <username>$1</username> <password>$2</password> </root> </soapenv:body> </soapenv:envelope> </format> <args> <arg evaluator="xml" expression="$ctx:user" xmlns:ns="http://org.apache.synapse/xsd"/> <arg evaluator="xml" expression="$ctx:pass" xmlns:ns="http://org.apache.synapse/xsd"/> </args> </payloadfactory> <header name="content-type" scope="transport" value="application/x-www-form-urlencoded"/> <property name="messagetype" scope="axis2" type="string" value="application/x-www-form-urlencoded"/> <property name="disable_chunking" scope="axis2" type="string" value="true"/> <call> <endpoint name="login"> <address uri="http://187.217.179.35:9765/store/site/blocks/user/login/ajax/login.jag" trace="disable"/> </endpoint> </call> <property expression="$trp:set-cookie" name="setcookieheader" scope="default" type="string"/> <log level="full"> <property expression="get-property('setcookieheader')" name="==============cookie==============="/> </log> <respond/> </insequence> <outsequence/> <faultsequence/> </target> </proxy>
/store/site/blocks/user/login/ajax/login.jag not soap web service. won't work soap payload. try doing post request payload 'action=login&username=admin&password=admin'
Comments
Post a Comment