You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ryan julius <rj...@yahoo.fr> on 2004/10/27 00:12:21 UTC
forward to a remote server
Hi,
I am discovering struts and it is a great pleasure to use it in my Web Applications.
I have written a struts based application. It is deployed on a local server on port 8955 (http://localhost:8955/myContextApp/)
>From this struts application, I would like to send a notification (XmlStringNotification) to a remote security server on port 8638 (http://www.remoteServer.org:8638)
How should I write my action mapping and class in order to send the notification to the remote server.
This is very critical to my application so a help is welcome.
Thanks.
---------------------------------
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !
RE: forward to a remote server
Posted by "David G. Friedman" <hu...@ix.netcom.com>.
Ryan,
I posted a code snippet on how to send an HTTP request behind the scenes in
an Action some time ago. This might help if you change the paypal specific
stuff to be your type of transaction:
http://marc.theaimsgroup.com/?l=struts-user&m=109529231331622&w=2
I have no idea what a "XmlStringNotification" is other than to guess that
you want to send a message in XML format. [No google answer came of for me
on that word so I'm doubting it's some official XML standard format. :) ]
I'd recommend trying my code snippet with an updated POST body to reflect
your XML structured document, if that is indeed what you want/need/require.
I hope that helps,
David
-----Original Message-----
From: Ryan julius [mailto:rjulius2002@yahoo.fr]
Sent: Tuesday, October 26, 2004 6:12 PM
To: user@struts.apache.org
Subject: forward to a remote server
Hi,
I am discovering struts and it is a great pleasure to use it in my Web
Applications.
I have written a struts based application. It is deployed on a local server
on port 8955 (http://localhost:8955/myContextApp/)
>From this struts application, I would like to send a notification
(XmlStringNotification) to a remote security server on port 8638
(http://www.remoteServer.org:8638)
How should I write my action mapping and class in order to send the
notification to the remote server.
This is very critical to my application so a help is welcome.
Thanks.
---------------------------------
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés
pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org