Btw you should specify the addurl correctly. Try running the client with
following command.

ant stockquote -Daddurl=
http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=
http://localhost:8280/


On Sat, May 15, 2010 at 11:12 PM, Heshan Suriyaarachchi <
[email protected]> wrote:

> FYI http://synapse.apache.org/Synapse_QuickStart.html
>
> On Sat, May 15, 2010 at 7:40 PM, Subash Chaturanga <[email protected]>wrote:
>
>> Hi,
>> I'am  new to synapse and built synapse and tried some samples as guided in
>> the documentation.
>>
>> So I started axis2 server and started message mediation samples.
>>
>> Sample 0: Introduction to Synapse * I started the synapse server by -  
>> ./synapse.sh -sample 0  inside synapse-home/bin
>>
>> * inside  , synapse-home/samples/axis2Client executed the command :
>>
>> ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService 
>> -Dtrpurl=http://localhost:8280/
>>
>>
>> And this gives the following error (though ant says BUILD SUCCESSFUL i think 
>> there is an error )
>>
>> Buildfile: build.xml
>>
>> init:
>>
>> compile:
>>
>> stockquote:
>>
>>      [java] 2010-05-15 19:32:42,682 [-] [main] ERROR SandeshaModule Could 
>> not load module policies. Using default values.
>>
>>      [java] 2010-05-15 19:32:42,765 [-] [main]  INFO MailTransportSender 
>> MAILTO Sender started
>>      [java] 2010-05-15 19:32:42,777 [-] [main]  INFO JMSSender JMS Sender 
>> started
>>      [java] 2010-05-15 19:32:42,779 [-] [main]  INFO JMSSender JMS Transport 
>> Sender initialized...
>>
>>
>>      [java] org.apache.axis2.AxisFault: The service cannot be found for the 
>> endpoint reference (EPR) /soap/SimpleStockQuoteService
>>      [java]  at 
>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:523)
>>
>>
>>      [java]  at 
>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
>>      [java]  at 
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
>>
>>
>>      [java]  at 
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
>>      [java]  at 
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>>      [java]  at 
>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
>>
>>
>>      [java]  at 
>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
>>      [java]  at samples.userguide.StockQuoteClient.executeClient(Unknown 
>> Source)
>>      [java]  at samples.userguide.StockQuoteClient.main(Unknown Source)
>>
>>
>> BUILD SUCCESSFUL
>>
>>
>>  ** Any idea ?
>>
>>
>>
>> Thank you
>> Subash
>>
>
>
>
> --
> Regards,
> Heshan Suriyaarachchi
>
> http://heshans.blogspot.com/
>



-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/

Reply via email to