Membrane SOAP Monitor configuration

167 views
Skip to first unread message

Aaoz Gul

unread,
Sep 30, 2011, 6:48:02 AM9/30/11
to membrane-monitor, jaya...@predic8.de
Hi,

Thank for your reply. Below are the detail configuration

1. I've deployed project in Linux . below are the setting of
server.xml in tomcat

<Host name="staging.empleolisto.com.mx"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false"
backgroundProcessorDelay="10">

</Host>

2. So, I can access my project this address"
staging.empleolisto.com.mx" instead of localhost and tomcate use 8080
and i'm also using this port. . You can use this where my project is
deployed and how can i access it.

Now come to the Client. my Client interact other webservice with IP
http://target_host:8080. I'm sending you the code of my wsdl file

<?xml version="1.0"?>
<definitions name="smsService"
targetNamespace="http://target_host:8080/smsService.wsdl"
xmlns:tns="http://target_host:8080/smsService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
........
<!-- Service -->
<service name="smsService">
<documentation>SMS Transport Service</documentation>
<port name="smsServicePort" binding="tns:smsServiceBinding">
<soap:address location="http://target_host:8080/smsService"/>
</port>
</service>
</definitions>

3. I've create jar of client and use this jar to project which i
explained point 1. and Called API of Client for testing
4. now, I'm running Membrane SOAP Monitor in window environment at my
local system.
5. How can i set the configuration in this monitor. So i can get the
soap message

regards
Aaoz

Shaan Jayaratna

unread,
Sep 30, 2011, 9:18:32 AM9/30/11
to membrane-monitor
Hi Aaoz,

so to summarize your scenario: You have a Web app deployed in tomcat
located at staging.empleolisto.com.mx. Further the Web app is
communicating with a Web service located at http://target_host:8080.

When you send a request to the Web app for example with your browser,
there are two connections going on. First the connection between your
browser and the Web app and last the connection between the Web app
and the Web service. I think you want to monitor the connection
between the Web app and the Web service. You can do that by using
Membrane Monitor as a reverse proxy. But to work properly you have
also to do some adjustments to the client.
Take a look at the following tutorial:

http://membrane-soa.org/soap-monitor-guide.htm

It shows how to configure the Membrane Monitor. The tutorial includes
examples how to configure the client for common client apis as well:

JAX-WS
http://membrane-soa.org/jaxws-client-monitor-howto.htm

Axis1+2
http://membrane-soa.org/axis2-monitor-howto.htm

If you tell me what client api you use to connect to the Web service,
maybe i can provide you with a example configuration for your client.

Kind Regards
Shaan

On 30 Sep., 12:48, Aaoz Gul <aaoz....@northbaysolutions.net> wrote:
> Hi,
>
>   Thank for your reply.  Below are the detail configuration
>
> 1.   I've deployed project in Linux . below are the setting of
> server.xml in tomcat
>
>       <Host name="staging.empleolisto.com.mx"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false"
> backgroundProcessorDelay="10">
>
>       </Host>
>
> 2.   So, I can access my project this address"
> staging.empleolisto.com.mx" instead of localhost and tomcate use 8080
> and i'm also using this port. . You can use this where my project is
> deployed and how can i access it.
>
> Now come to the Client. my Client interact other webservice with IPhttp://target_host:8080. I'm sending you the code of my wsdl file

Aaoz Gul

unread,
Sep 30, 2011, 10:04:36 AM9/30/11
to membrane-monitor
thanx Shaan. Yes, You summarized correct scenario.

>>>>>>>>>>>>>> If you tell me what client api you use to connect to the Web service
I'm calling sendSMS() function to connect with server

regards
Aaoz

On Sep 30, 6:18 pm, Shaan Jayaratna <srjayara...@googlemail.com>
wrote:
> Hi Aaoz,
>
> so to summarize your scenario: You have a Web app deployed in tomcat
> located at staging.empleolisto.com.mx. Further the Web app is
> communicating with a Web service located athttp://target_host:8080.
>
> When you send a request to the Web app for example with your browser,
> there are two connections going on. First the connection between your
> browser and the Web app and last the connection between the Web app
> and the Web service. I think you want to monitor the connection
> between the Web app and the Web service. You can do that by using
> Membrane Monitor as a reverse proxy. But to work properly you have
> also to do some adjustments to the client.
> Take a look at the following tutorial:
>
> http://membrane-soa.org/soap-monitor-guide.htm
>
> It shows how to configure the Membrane Monitor. The tutorial includes
> examples how to configure the client for common client apis as well:
>
> JAX-WShttp://membrane-soa.org/jaxws-client-monitor-howto.htm
>
> Axis1+2http://membrane-soa.org/axis2-monitor-howto.htm

Aaoz Gul

unread,
Oct 5, 2011, 8:37:02 AM10/5/11
to membrane-monitor
HI Shann,

I came to the root cause of problem. That is, my Web app is
communicating with a Web service located athttp://target_host:8080

target_host whcih is a IP address. I can acces with user Name and
password in my application.
Problem is this, how can i configure target_host and port with
userName and password in Membrane Monitor as a reverse proxy

thanx

Thomas Bayer

unread,
Oct 6, 2011, 3:58:17 AM10/6/11
to membrane-monitor
Hi Aaoz,

you can use the basicAuthentication feature. The config looks like
this:

<serviceProxy port="2000">
<basicAuthentication>
<user name="admin" password="adminadmin" />
<user name="guest" password="guestguest" />
<user name="root-admin" password="rootadminadmin" />
</basicAuthentication>
<target host="www.predic8.de" />
</serviceProxy>

find more at the reference:

http://www.membrane-soa.org/soap-router-doc/configuration/reference/basic-authentication.htm

You will find a complete example at MEMBRANE_DIR/examples/basic-auth

--
Thomas
Reply all
Reply to author
Forward
0 new messages