I am not exactly certain what I did but I got it working now.

On Tue, Oct 13, 2015, at 04:06 PM, George Karabotsos wrote:
> Hello all,
> 
> I am very fresh to synapse :).
> 
> I am attempting to create a proxy using the following configuration:
> 
> <definitions xmlns="http://ws.apache.org/ns/synapse";>
> 
>     <proxy name="CurrencyConversionProxy">
>         <target>
>             <endpoint>
>               <!--<address
>               uri="http://localhost:9000/services/SimpleStockQuoteService"/>
>               -->
>               <address
>               uri="http://www.webservicex.net/CurrencyConvertor.asmx"; />
>             </endpoint>
>             <outSequence>
>                 <send/>
>             </outSequence>
>         </target>
>         <publishWSDL
>         uri="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"/>
>         <!--<publishWSDL
>         
> uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>-->
>     </proxy>
> 
> </definitions>
> 
> As you can see I have hijacked the sample 150 conf file--btw is there
> any way to specify the config file when invoking the synapse.bat as an
> argument?
> 
> My understanding is (correct me if I am wrong) that as soon as I start
> synapse I can open a browser type
> http://localhost:8280/CurrencyConversionProxy?wsdl and I should be able
> to see the WSDL in my browser.  Unfortunately, I just see an empty page.
> 
> Any ideas where am I going wrong?
> 
> Cheers,
> George
> 
> PS: Here's the output from synapse, the last few entries are my attempts
> to access the proxy.
> 
> C:\synapse-2.1.0>.\bin\synapse.bat -sample 150
> "Starting Synapse/Java ..."
> Using SYNAPSE_HOME:        C:\SYNAPS~1.0\bin\..
> Using JAVA_HOME:       C:\jdk1.7.0_25
> --> Wrapper Started as Console
> Launching a JVM...
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> 
> WARNING - Unable to load the Wrapper's native library because none of
> the
>           following files:
>             wrapper-windows-x86-64.dll
>             wrapper.dll
>           could be located on the following java.library.path:
>             C:\SYNAPS~1.0\lib
>           Please see the documentation for the wrapper.java.library.path
>           configuration property.
>           System signals will not be handled correctly.
> 
> 2015-10-13 15:46:28,093 [-] [WrapperSimpleAppMain]  INFO SynapseServer
> Starting Apache Synapse...
> 2015-10-13 15:46:28,107 [-] [WrapperSimpleAppMain]  INFO
> SynapseControllerFactory Using Synapse home : C:\SYNAPS~1.0\.
> 2015-10-13 15:46:28,107 [-] [WrapperSimpleAppMain]  INFO
> SynapseControllerFactory Using Axis2 repository :
> C:\SYNAPS~1.0\repository
> 2015-10-13 15:46:28,107 [-] [WrapperSimpleAppMain]  INFO
> SynapseControllerFactory Using axis2.xml location :
> C:\SYNAPS~1.0\repository\conf\axis2.xml
> 2015-10-13 15:46:28,108 [-] [WrapperSimpleAppMain]  INFO
> SynapseControllerFactory Using synapse.xml location :
> C:\SYNAPS~1.0\bin\..\repository\conf\sample\synapse_sample_150.xml
> 2015-10-13 15:46:28,108 [-] [WrapperSimpleAppMain]  INFO
> SynapseControllerFactory Using server name : localhost
> 2015-10-13 15:46:28,116 [-] [WrapperSimpleAppMain]  INFO
> SynapseControllerFactory The timeout handler will run every : 15s
> 2015-10-13 15:46:28,164 [-] [WrapperSimpleAppMain]  INFO
> Axis2SynapseController Initializing Synapse at : Tue Oct 13 15:46:28 EDT
> 2015
> 2015-10-13 15:46:28,588 [-] [WrapperSimpleAppMain]  INFO
> HttpCoreNIOSSLSender Loading Identity Keystore from : lib/identity.jks
> 2015-10-13 15:46:28,610 [-] [WrapperSimpleAppMain]  INFO
> HttpCoreNIOSSLSender Loading Trust Keystore from : lib/trust.jks
> 2015-10-13 15:46:28,647 [-] [WrapperSimpleAppMain]  INFO
> HttpCoreNIOSender HTTPS Sender starting
> 2015-10-13 15:46:28,650 [-] [WrapperSimpleAppMain]  INFO
> HttpCoreNIOSender HTTP Sender starting
> 2015-10-13 15:46:28,651 [-] [WrapperSimpleAppMain]  INFO JMSSender JMS
> Sender started
> 2015-10-13 15:46:28,651 [-] [WrapperSimpleAppMain]  INFO JMSSender JMS
> Transport Sender initialized...
> 2015-10-13 15:46:28,652 [-] [WrapperSimpleAppMain]  INFO
> VFSTransportSender VFS Sender started
> 2015-10-13 15:46:28,788 [-] [WrapperSimpleAppMain]  INFO
> HttpCoreNIOSSLListener Loading Identity Keystore from : lib/identity.jks
> 2015-10-13 15:46:28,789 [-] [WrapperSimpleAppMain]  INFO
> HttpCoreNIOSSLListener Loading Trust Keystore from : lib/trust.jks
> 2015-10-13 15:46:28,800 [-] [WrapperSimpleAppMain]  INFO
> Axis2SynapseController Loading mediator extensions...
> 2015-10-13 15:46:28,809 [-] [WrapperSimpleAppMain]  INFO
> XMLConfigurationBuilder Generating the Synapse configuration model by
> parsing the XML configuration
> 2015-10-13 15:46:28,866 [-] [WrapperSimpleAppMain]  INFO
> SynapseConfigurationBuilder Loaded Synapse configuration from :
> C:\SYNAPS~1.0\bin\..\repository\conf\sample\synapse_sample_
> 150.xml
> 2015-10-13 15:46:28,887 [-] [WrapperSimpleAppMain]  INFO
> Axis2SynapseController Deploying the Synapse service...
> 2015-10-13 15:46:28,898 [-] [WrapperSimpleAppMain]  INFO
> Axis2SynapseController Deploying Proxy services...
> 2015-10-13 15:46:28,898 [-] [WrapperSimpleAppMain]  INFO ProxyService
> Building Axis service for Proxy service : CurrencyConversionProxy
> 2015-10-13 15:46:29,428 [-] [WrapperSimpleAppMain]  INFO ProxyService
> Adding service CurrencyConversionProxy to the Axis2 configuration
> 2015-10-13 15:46:29,429 [-] [WrapperSimpleAppMain]  INFO ProxyService
> Successfully created the Axis2 service for Proxy service :
> CurrencyConversionProxy
> 2015-10-13 15:46:29,429 [-] [WrapperSimpleAppMain]  INFO
> Axis2SynapseController Deployed Proxy service : CurrencyConversionProxy
> 2015-10-13 15:46:29,429 [-] [WrapperSimpleAppMain]  INFO
> Axis2SynapseController Deploying EventSources...
> 2015-10-13 15:46:29,448 [-] [WrapperSimpleAppMain]  INFO
> MailTransportListener MAILTO Listener started
> 2015-10-13 15:46:29,448 [-] [WrapperSimpleAppMain]  WARN
> MailTransportListener Unable to configure the service
> CurrencyConversionProxy for the MAILTO transport: Service doesn't hav
> e configuration information for transport mailto. This service is being
> marked as faulty and will not be available over the MAILTO transport.
> 2015-10-13 15:46:29,448 [-] [WrapperSimpleAppMain]  WARN
> MailTransportListener Disabling the mailto transport for the service
> CurrencyConversionProxy, because it is not configured
> properly for the service
> 2015-10-13 15:46:29,529 [-] [WrapperSimpleAppMain]  INFO
> HttpCoreNIOListener HTTPS Listener started on port : 8243
> 2015-10-13 15:46:29,533 [-] [WrapperSimpleAppMain]  INFO
> HttpCoreNIOListener HTTP Listener started on port : 8280
> 2015-10-13 15:46:29,533 [-] [WrapperSimpleAppMain]  INFO
> VFSTransportListener VFS Listener started
> 2015-10-13 15:46:29,533 [-] [WrapperSimpleAppMain]  WARN
> VFSTransportListener Unable to configure the service
> CurrencyConversionProxy for the VFS transport: Service doesn't have co
> nfiguration information for transport vfs. This service is being marked
> as faulty and will not be available over the VFS transport.
> 2015-10-13 15:46:29,533 [-] [WrapperSimpleAppMain]  WARN
> VFSTransportListener Disabling the vfs transport for the service
> CurrencyConversionProxy, because it is not configured prop
> erly for the service
> 2015-10-13 15:46:29,608 [-] [WrapperSimpleAppMain]  INFO
> Axis2SynapseController Management using JMX available via:
> service:jmx:rmi:///jndi/rmi://GKARABOTSOS-W54:1099/synapse
> 2015-10-13 15:46:29,609 [-] [WrapperSimpleAppMain]  INFO ServerManager
> Server ready for processing...
> 2015-10-13 15:46:29,609 [-] [WrapperSimpleAppMain]  INFO SynapseServer
> Apache Synapse started successfully
> 2015-10-13 15:46:55,352 [-] [HttpServerWorker-1]  INFO LogMediator To:
> /, MessageID: urn:uuid:de175651-ab44-476e-a0da-fea325011d91, Direction:
> request
> 2015-10-13 15:47:31,553 [-] [HttpServerWorker-2]  INFO LogMediator To:
> /CurrencyConversionProxy, MessageID:
> urn:uuid:6928a883-fa90-4f34-81b6-307a070d2451, Direction: request
> 2015-10-13 15:47:34,669 [-] [HttpServerWorker-3]  INFO LogMediator To:
> /CurrencyConversionProxy, MessageID:
> urn:uuid:9c297a67-0ded-4eb2-85e8-d223b83f6216, Direction: request
> 2015-10-13 15:48:38,971 [-] [HttpServerWorker-5]  INFO LogMediator To:
> /CurrencyConversionProxy?wsdl, MessageID:
> urn:uuid:ea1918c9-50bd-4574-9c8c-083b5a8c1858, Direction: request

Reply via email to