You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by abhishek roundale <to...@gmail.com> on 2011/01/12 13:24:17 UTC

proxy service

Respected Sir,

I am an beginner  and  new to this ESB -Apache Synapse, i had been  trying
(proxy service sample ) for a web service. the problem is  i am not getting
any reply  and also their is warning on synapse prompt ( i have pasted
below) .

please help me out , i am not able to find where i am going wrong, whether i
have to make any changes in axis2.xml ?? or synapse.xml
also if possible you can give me links related to proxy services  please
help me out i am beginner to this apache synapse.



Thanking you in Advance.


synapse command prompt:-

  C:\synapse-1.2\bin>synapse.bat -sample mockp
"Starting Synapse/Java ..."
Using SYNAPSE_HOME:        C:\SYNAPS~1.2\bin\..
Using JAVA_HOME:       C:\Program Files\Java\jdk1.6.0_17
--> 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.

2011-01-12 17:18:20,968 [-] [WrapperSimpleAppMain]  INFO ServerManager Using
Syn
apse home as : .
2011-01-12 17:18:20,984 [-] [WrapperSimpleAppMain]  INFO ServerManager Using
the
 Axis2 Repository : C:\SYNAPS~1.2\repository
2011-01-12 17:18:20,984 [-] [WrapperSimpleAppMain]  INFO ServerManager Using
the
 axis2.xml : C:\SYNAPS~1.2\repository\conf\axis2.xml
2011-01-12 17:18:20,984 [-] [WrapperSimpleAppMain]  INFO ServerManager Using
ser
ver name : localhost
2011-01-12 17:18:20,984 [-] [WrapperSimpleAppMain]  INFO ServerManager The
timeo
ut handler will run every : 15s
2011-01-12 17:18:21,453 [-] [WrapperSimpleAppMain]  INFO
SynapseInitializationMo
dule Initializing Synapse at : Wed Jan 12 17:18:21 IST 2011
2011-01-12 17:18:21,453 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Syna
pseInitializationModule Loading mediator extensions...
2011-01-12 17:18:21,453 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Syna
pseInitializationModule Initializing the Synapse configuration ...
2011-01-12 17:18:21,453 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
XMLC
onfigurationBuilder Generating the Synapse configuration model by parsing
the XM
L configuration
2011-01-12 17:18:21,546 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Syna
pseConfigurationBuilder Loaded Synapse configuration from :
C:\SYNAPS~1.2\bin\..
\repository\conf\sample\synapse_sample_mockp.xml
2011-01-12 17:18:21,546 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Syna
pseInitializationModule Deploying the Synapse service..
2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Syna
pseInitializationModule Synapse server name : localhost
2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Syna
pseInitializationModule Deploying Proxy services...
2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Prox
yService Building Axis service for Proxy service : MywebserviceService
2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Prox
yService Adding service MywebserviceService to the Axis2 configuration
2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Prox
yService Successfully created the Axis2 service for Proxy service :
Mywebservice
Service
2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Syna
pseInitializationModule Deployed Proxy service : MywebserviceService
2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Syna
pseInitializationModule Synapse initialized successfully...!
2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Http
CoreNIOSSLSender Loading Identity Keystore from : lib/identity.jks
2011-01-12 17:18:21,593 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Http
CoreNIOSSLSender Loading Trust Keystore from : lib/trust.jks
2011-01-12 17:18:21,593 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Http
CoreNIOSender HTTPS Sender starting
2011-01-12 17:18:21,640 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Http
CoreNIOSender HTTP Sender starting
2011-01-12 17:18:21,640 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
JMSS
ender JMS Sender started
2011-01-12 17:18:21,640 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
VFST
ransportSender VFS Sender started
2011-01-12 17:18:21,953 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Serv
erManager Starting transport mailto
2011-01-12 17:18:21,953 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Mail
TransportListener MAILTO Listener started
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  WARN
Mail
TransportListener Error configuring the Mail transport for Service :
Mywebservic
eService :: Cannot find parameter : transport.mail.Address for service :
Mywebse
rviceService
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  WARN
Mail
TransportListener Disabling the mailto transport for the service
MywebserviceSer
vice, because it is not configured properly for the service
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Serv
erManager Starting transport https on port 8243
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Http
CoreNIOSSLListener Loading Identity Keystore from : lib/identity.jks
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Http
CoreNIOSSLListener Loading Trust Keystore from : lib/trust.jks
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Http
CoreNIOListener HTTPS Listener starting on port : 8243
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Serv
erManager Starting transport http on port 8280
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Http
CoreNIOListener HTTP Listener starting on port : 8280
2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Serv
erManager Starting transport vfs
2011-01-12 17:18:22,000 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
VFST
ransportListener VFS Listener started
2011-01-12 17:18:22,000 [169.254.125.64-shree] [WrapperSimpleAppMain]  WARN
VFST
ransportListener Error configuring the File/VFS transport for Service :
Mywebser
viceService :: Cannot find parameter : transport.vfs.FileURI for service :
Myweb
serviceService
2011-01-12 17:18:22,000 [169.254.125.64-shree] [WrapperSimpleAppMain]  WARN
VFST
ransportListener Disabling the vfs transport for the service
MywebserviceService
, because it is not configured properly for the service
2011-01-12 17:18:22,031 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
Serv
erManager Ready for processing
2011-01-12 17:21:47,531 [169.254.125.64-shree] [HttpServerWorker-1]  INFO
LogMed
iator To: /, WSAction: , SOAPAction: , MessageID:
urn:uuid:228082A0F048BE66DC129
4833107479, Direction: request

Re: proxy service

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Abhishek,

First of all no need to address with sir, just say Hi and that is way
enough.

Looking at the log, it looks to me that you are not sending the message out
from the proxy service. Proxy service is a proxy for an existing service and
it usually doesn't have the business logic and that is why you didn't get a
response. If you want to implement a sort of an echo service you could send
the message back in the inSequence it self.

Can you please attach your synapse.xml file? What is the version of the
synapse are you using?

Thanks,
Ruwan

On Wed, Jan 12, 2011 at 5:54 PM, abhishek roundale <tofindabhishek@gmail.com
> wrote:

> Respected Sir,
>
> I am an beginner  and  new to this ESB -Apache Synapse, i had been  trying
> (proxy service sample ) for a web service. the problem is  i am not getting
> any reply  and also their is warning on synapse prompt ( i have pasted
> below) .
>
> please help me out , i am not able to find where i am going wrong, whether
> i
> have to make any changes in axis2.xml ?? or synapse.xml
> also if possible you can give me links related to proxy services  please
> help me out i am beginner to this apache synapse.
>
>
>
> Thanking you in Advance.
>
>
> synapse command prompt:-
>
>  C:\synapse-1.2\bin>synapse.bat -sample mockp
> "Starting Synapse/Java ..."
> Using SYNAPSE_HOME:        C:\SYNAPS~1.2\bin\..
> Using JAVA_HOME:       C:\Program Files\Java\jdk1.6.0_17
> --> 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.
>
> 2011-01-12 17:18:20,968 [-] [WrapperSimpleAppMain]  INFO ServerManager
> Using
> Syn
> apse home as : .
> 2011-01-12 17:18:20,984 [-] [WrapperSimpleAppMain]  INFO ServerManager
> Using
> the
>  Axis2 Repository : C:\SYNAPS~1.2\repository
> 2011-01-12 17:18:20,984 [-] [WrapperSimpleAppMain]  INFO ServerManager
> Using
> the
>  axis2.xml : C:\SYNAPS~1.2\repository\conf\axis2.xml
> 2011-01-12 17:18:20,984 [-] [WrapperSimpleAppMain]  INFO ServerManager
> Using
> ser
> ver name : localhost
> 2011-01-12 17:18:20,984 [-] [WrapperSimpleAppMain]  INFO ServerManager The
> timeo
> ut handler will run every : 15s
> 2011-01-12 17:18:21,453 [-] [WrapperSimpleAppMain]  INFO
> SynapseInitializationMo
> dule Initializing Synapse at : Wed Jan 12 17:18:21 IST 2011
> 2011-01-12 17:18:21,453 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Syna
> pseInitializationModule Loading mediator extensions...
> 2011-01-12 17:18:21,453 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Syna
> pseInitializationModule Initializing the Synapse configuration ...
> 2011-01-12 17:18:21,453 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> XMLC
> onfigurationBuilder Generating the Synapse configuration model by parsing
> the XM
> L configuration
> 2011-01-12 17:18:21,546 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Syna
> pseConfigurationBuilder Loaded Synapse configuration from :
> C:\SYNAPS~1.2\bin\..
> \repository\conf\sample\synapse_sample_mockp.xml
> 2011-01-12 17:18:21,546 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Syna
> pseInitializationModule Deploying the Synapse service..
> 2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Syna
> pseInitializationModule Synapse server name : localhost
> 2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Syna
> pseInitializationModule Deploying Proxy services...
> 2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Prox
> yService Building Axis service for Proxy service : MywebserviceService
> 2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Prox
> yService Adding service MywebserviceService to the Axis2 configuration
> 2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Prox
> yService Successfully created the Axis2 service for Proxy service :
> Mywebservice
> Service
> 2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Syna
> pseInitializationModule Deployed Proxy service : MywebserviceService
> 2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Syna
> pseInitializationModule Synapse initialized successfully...!
> 2011-01-12 17:18:21,578 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Http
> CoreNIOSSLSender Loading Identity Keystore from : lib/identity.jks
> 2011-01-12 17:18:21,593 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Http
> CoreNIOSSLSender Loading Trust Keystore from : lib/trust.jks
> 2011-01-12 17:18:21,593 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Http
> CoreNIOSender HTTPS Sender starting
> 2011-01-12 17:18:21,640 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Http
> CoreNIOSender HTTP Sender starting
> 2011-01-12 17:18:21,640 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> JMSS
> ender JMS Sender started
> 2011-01-12 17:18:21,640 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> VFST
> ransportSender VFS Sender started
> 2011-01-12 17:18:21,953 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Serv
> erManager Starting transport mailto
> 2011-01-12 17:18:21,953 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Mail
> TransportListener MAILTO Listener started
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  WARN
> Mail
> TransportListener Error configuring the Mail transport for Service :
> Mywebservic
> eService :: Cannot find parameter : transport.mail.Address for service :
> Mywebse
> rviceService
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  WARN
> Mail
> TransportListener Disabling the mailto transport for the service
> MywebserviceSer
> vice, because it is not configured properly for the service
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Serv
> erManager Starting transport https on port 8243
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Http
> CoreNIOSSLListener Loading Identity Keystore from : lib/identity.jks
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Http
> CoreNIOSSLListener Loading Trust Keystore from : lib/trust.jks
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Http
> CoreNIOListener HTTPS Listener starting on port : 8243
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Serv
> erManager Starting transport http on port 8280
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Http
> CoreNIOListener HTTP Listener starting on port : 8280
> 2011-01-12 17:18:21,968 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Serv
> erManager Starting transport vfs
> 2011-01-12 17:18:22,000 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> VFST
> ransportListener VFS Listener started
> 2011-01-12 17:18:22,000 [169.254.125.64-shree] [WrapperSimpleAppMain]  WARN
> VFST
> ransportListener Error configuring the File/VFS transport for Service :
> Mywebser
> viceService :: Cannot find parameter : transport.vfs.FileURI for service :
> Myweb
> serviceService
> 2011-01-12 17:18:22,000 [169.254.125.64-shree] [WrapperSimpleAppMain]  WARN
> VFST
> ransportListener Disabling the vfs transport for the service
> MywebserviceService
> , because it is not configured properly for the service
> 2011-01-12 17:18:22,031 [169.254.125.64-shree] [WrapperSimpleAppMain]  INFO
> Serv
> erManager Ready for processing
> 2011-01-12 17:21:47,531 [169.254.125.64-shree] [HttpServerWorker-1]  INFO
> LogMed
> iator To: /, WSAction: , SOAPAction: , MessageID:
> urn:uuid:228082A0F048BE66DC129
> 4833107479, Direction: request
>



-- 
Ruwan Linton
Software Architect & Product Manager
WSO2 Inc.; http://wso2.org

Lean . Enterprise . Middleware

phone: +1 408 754 7388 ext 51789
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton