Hello, I am trying out synapse (v2.1.0). I have couple of questions -
1. While creating proxy, I have been running into an issue (if I may call it that). Synapse proxy is adding service port name specific to binding to the location URL. e.g. If original service wsdl is http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL and in original wsdl the locations are provided as - <wsdl:service name="Weather"> <wsdl:port name="WeatherSoap" binding="tns:WeatherSoap"> <soap:address location="http://wsf.cdyne.com/WeatherWS/Weather.asmx"/> </wsdl:port> <wsdl:port name="WeatherSoap12" binding="tns:WeatherSoap12"> <soap12:address location="http://wsf.cdyne.com/WeatherWS/Weather.asmx"/> </wsdl:port> <wsdl:port name="WeatherHttpGet" binding="tns:WeatherHttpGet"> <http:address location="http://wsf.cdyne.com/WeatherWS/Weather.asmx"/> </wsdl:port> <wsdl:port name="WeatherHttpPost" binding="tns:WeatherHttpPost"> <http:address location="http://wsf.cdyne.com/WeatherWS/Weather.asmx"/> </wsdl:port> </wsdl:service> Synapse proxy is adding binding port name to location URL so proxy service wsdl becomes - <wsdl:service name="weather"> <wsdl:port name="weatherHttpsSoap11Endpoint" binding=" tns:weatherSoap11Binding"> <soap:address location="https://api.example.com:8243/service/v1.0/weather. *weatherHttpsSoap11Endpoint*"/> </wsdl:port> <wsdl:port name="weatherHttpsSoap12Endpoint" binding=" tns:weatherSoap12Binding"> <soap12:address location="https://api.example.com:8243/service/v1.0/weather. *weatherHttpsSoap12Endpoint*"/> </wsdl:port> <wsdl:port name="weatherHttpsEndpoint" binding="tns:weatherHttpBinding"> <http:address location="https://api.example.com:8243/service/v1.0/weather. *weatherHttpsEndpoint*"/> </wsdl:port> </wsdl:service> . My proxy config is - <proxy name="weather" transports="https" > <publishWSDL uri=" http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL"/> <parameter name= "ServiceURI">/service/v1.0/weather</parameter> <target> <endpoint> <address uri="http://wsf.cdyne.com/WeatherWS/Weather.asmx"/> </endpoint> <outSequence> <send/> </outSequence> </target> </proxy> What do I need to do to prevent Synapse from adding binding port name to location so whatever ServiceURI I set is used in WSDL ? 2. Can I use one proxy declaration to frontend multiple services (possiblt using "<conditionalRouter") with separate <publishWSDL and target based on incoming URL ? Is there any example available ? Thank you in advance for your help. -- Regards, Vish
