[Geoserver-users] invoking geoserver servlets from another web app

Hi,

I am new to geoserver and have basic servlet
knowledge my question is:

Can I build a web application e.g a couple of servlets
archived in war file
that gather map (wfs) request from a user, then invoke
the required
geoserver servlet to provide a response ? Put in
another way, is it possible for my servlet which is
archived in a separate war file to invoke a geoserver
servlet to provide a response
since geoserver is archived in a separate war file ?
How can I do this.

Thanks in advance

Roman

      ____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

Roman Isitua ha scritto:

Hi,

I am new to geoserver and have basic servlet
knowledge my question is:

Can I build a web application e.g a couple of servlets
archived in war file that gather map (wfs) request from a user, then invoke
the required
geoserver servlet to provide a response ? Put in
another way, is it possible for my servlet which is archived in a separate war file to invoke a geoserver
servlet to provide a response
since geoserver is archived in a separate war file ?
How can I do this.

Sure you can, invoking WFS from java code is dealt with in the FAQ:
http://docs.codehaus.org/display/GEOSDOC/How+do+I+make+a+WFS+request+in+my+JSP-Java+code
http://docs.codehaus.org/display/GEOSDOC/My+WFS+request+in+Java+does+not+work.

All you have to do is to read the response and return it back to your
client. Also the code in https://svn.codehaus.org/geoserver/trunk/geoserver/wfs/src/main/java/org/vfny/geoserver/wfs/servlets/TestWfsPost.java
can be of inspiration, since this servlet exactly takes a form with
some request as a parameter, calls WFS/WMS/WCS and the returns the
response to the client.

Cheers
Andrea

Hi Roman,

Do you need direct access to the servlets running inside of geoserver... or can you just go through the wfs protocol. Ie. make a wfs request just like a normal client would.

-Justin

Roman Isitua wrote:

Hi,

I am new to geoserver and have basic servlet
knowledge my question is:

Can I build a web application e.g a couple of servlets
archived in war file that gather map (wfs) request from a user, then invoke
the required
geoserver servlet to provide a response ? Put in
another way, is it possible for my servlet which is archived in a separate war file to invoke a geoserver
servlet to provide a response
since geoserver is archived in a separate war file ?
How can I do this.
Thanks in advance

Roman

      ____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,469b366a257732085621377!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Hi justin,
Yes, I think I need direct access. I was told that I
can use a request dispatcher. Can I have sample code
on how to do this. how can I pass the shapefile and
the OGC filter using the request dispatcher. Thanks

Roman

--- Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi Roman,

Do you need direct access to the servlets running
inside of geoserver...
or can you just go through the wfs protocol. Ie.
make a wfs request just
like a normal client would.

-Justin

Roman Isitua wrote:
> Hi,
>
> I am new to geoserver and have basic servlet
> knowledge my question is:
>
> Can I build a web application e.g a couple of
servlets
> archived in war file
> that gather map (wfs) request from a user, then
invoke
> the required
> geoserver servlet to provide a response ? Put in
> another way, is it possible for my servlet which
is
> archived in a separate war file to invoke a
geoserver
> servlet to provide a response
> since geoserver is archived in a separate war file
?
> How can I do this.
>
> Thanks in advance
>
> Roman
>
>
>

____________________________________________________________________________________

> Shape Yahoo! in your own image. Join our Network
Research Panel today!

http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

>
>
>
>

-------------------------------------------------------------------------

> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click
to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
>

https://lists.sourceforge.net/lists/listinfo/geoserver-users

>
> !DSPAM:4007,469b366a257732085621377!
>

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

____________________________________________________________________________________
Don't get soaked. Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/

Hi Roman,

Well I think the links that Andrea sent out are the only way to do this... You cant really get access to the servlets running in geoserver... everything is through http. The closest thing might be an RPC or remoting interface... but GeoServer is not currently set up like that today.

-Justin

Roman Isitua wrote:

Hi justin,
Yes, I think I need direct access. I was told that I
can use a request dispatcher. Can I have sample code
on how to do this. how can I pass the shapefile and
the OGC filter using the request dispatcher. Thanks

Roman

--- Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi Roman,

Do you need direct access to the servlets running
inside of geoserver... or can you just go through the wfs protocol. Ie.
make a wfs request just like a normal client would.

-Justin

Roman Isitua wrote:

Hi,

I am new to geoserver and have basic servlet
knowledge my question is:

Can I build a web application e.g a couple of

servlets

archived in war file that gather map (wfs) request from a user, then

invoke

the required
geoserver servlet to provide a response ? Put in
another way, is it possible for my servlet which

is

archived in a separate war file to invoke a

geoserver

servlet to provide a response
since geoserver is archived in a separate war file

?

How can I do this.
Thanks in advance

Roman

____________________________________________________________________________________

Shape Yahoo! in your own image. Join our Network

Research Panel today!

http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

-------------------------------------------------------------------------

This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2

express and take

control of your XML. No limits. Just data. Click

to get it now.

http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

____________________________________________________________________________________
Don't get soaked. Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

       ____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/

!DSPAM:4007,469c8ad3263991804284693!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org