Hi, ESB 4.8.1 I was trying to $subject using the admin service [2] assuming admin console UI is not available. There are two operations namely in [2], 1. getConfiguration 2. saveConfigurationToDisk
Using SOAP UI with basic authentication, I successfully managed to get the configuration from getConfiguration operation [3]. But when I use operation saveConfigurationToDisk, I'm getting the following error [4]. What could be the reason? Are above two methods accumulating synapse configuration in two different ways? [1] https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/synapse-config-admin/org.wso2.carbon.mediation.configadmin/src/main/java/org/wso2/carbon/mediation/configadmin/ConfigAdmin.java [2] https://localhost:9443/services/ConfigServiceAdmin?wsdl [3] Request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://org.apache.synapse/xsd"> <soapenv:Header/> <soapenv:Body> <xsd:getConfiguration/> </soapenv:Body> </soapenv:Envelope> Response: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:getConfigurationResponse xmlns:ns="http://org.apache.synapse/xsd"> <ns:return><![CDATA[<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://ws.apache.org/ns/synapse"> <registry provider="org.wso2.carbon.mediation.registry.WSO2Registry"> <parameter name="cachableDuration">15000</parameter> </registry> <proxy name="StockQuoteSecure" transports="https http" startOnLoad="true" trace="disable"> <target> <endpoint> <address uri=" http://localhost:9000/services/SimpleStockQuoteService"/> </endpoint> <outSequence> <send/> </outSequence> </target> </proxy> <sequence name="fault"> <log level="full"> <property name="MESSAGE" value="Executing default 'fault' sequence"/> <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/> <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/> </log> <drop/> </sequence> <sequence name="main"> <in> <log level="full"/> <filter source="get-property('To')" regex="http://localhost:9000. *"> <send/> </filter> </in> <out> <send/> </out> <description>The main sequence for the message mediation</description> </sequence> </definitions>]]></ns:return> </ns:getConfigurationResponse> </soapenv:Body> </soapenv:Envelope> [4] HTTP/1.1 500 Internal Server Error Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 30 Jun 2015 08:45:20 GMT Connection: close Server: WSO2 Carbon Server <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server</faultcode> <faultstring>Could not locate the Synapse configuration file to save changes</faultstring> <detail/> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> Thanks, Suhan -- Suhan Dharmasuriya Software Engineer - Test Automation *WSO2, Inc. * lean . enterprise . middleware Tel: +94 112 145345 Mob: +94 779 869138 Blog: http://suhan-opensource.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
