---------- Forwarded message ---------- From: Dakota Jack <[EMAIL PROTECTED]> Date: Thu, 27 Jan 2005 22:24:00 -0800 Subject: Re: PlugIn and the base URL To: Martin Wegner <[EMAIL PROTECTED]>
<snip> On Thu, 27 Jan 2005 21:25:11 -0800 (PST), Martin Wegner <[EMAIL PROTECTED]> wrote: > Jack, > > How do you have the PlugIn call into the Struts app? How do you craft the > URL? </snip> As you know, the URL has to be converted into an IP address anyway. So, since people are out of the loop, we will just start with one. First, have the PlugIn call a "foreign" or "outside" machine with a request of its own. This can be done, for example, with something like the messaging classes with Jason Hunter's cos jar at http://servlets.com/cos/ and check out HttpMessage and HttpsMessage to get an idea of what you can do. Send the foreign machne a message with the needed information such as the port number, and whatever. When the foreign machine gets your message, have it extract your IP address and message it back to you via message by adding the port and other information as needed. This will be returned to the PlugIn. Getting this return message, you now have everything you need for the SOAP protocol in URL terms, i.e. "http://[ip address from the foriegn host]/port/whatever". Set the information and you are set to go. Understand? You are actually just writing a little Java browser for you own purposes inside the PlugIn. Jack -- ------------------------------ "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good in His sight. It is not necessary for eagles to be crows." ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ ----------------------------------------------- "This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation." -- ------------------------------ "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good in His sight. It is not necessary for eagles to be crows." ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ ----------------------------------------------- "This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation." --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]