Thread: [xmljs-users] POSTing XML to a remote server
Brought to you by:
djoham,
witchhunter
From: Cameron S. <sho...@op...> - 2004-07-09 09:57:42
|
Hello xmljs people, On our project http://mapbuilder.sf.net we want to POST an XML request to a remote server, get an XML response, then process the XML response. I've been looking at the "XML for JS" proxies as a possible basis for this functionality. Are you are aware of any code which we can use to acheive this functionality? Or if not, are you interested in extending the "XML for JS" proxies to handle XML POST? -- Cameron Shorter http://cameron.shorter.net Open Source Developer http://generguide.sourceforge.net http://mapbuilder.sourceforge.net Senior Software Engineer http://www.adi-limited.com |
From: Nedjo R. <ne...@gw...> - 2004-07-09 14:45:31
|
Cameron, The PHP proxy script I've put in CVS at /server/proxy/proxy.php includes a class (which I found on a help site) that handles XLM posting. The script tests for raw XML input and, if present, posts via XML, otherwise using Get to fetch Get- or Post-encoded input requests. Nedjo ----- Original Message ----- From: Cameron Shorter <sho...@op...> To: <xml...@li...> Cc: mapbuilder <map...@li...> Sent: Friday, July 09, 2004 2:57 AM Subject: [Mapbuilder-devel] POSTing XML to a remote server > Hello xmljs people, > > On our project http://mapbuilder.sf.net we want to POST an XML request > to a remote server, get an XML response, then process the XML response. > > I've been looking at the "XML for JS" proxies as a possible basis for > this functionality. > Are you are aware of any code which we can use to acheive this > functionality? > > Or if not, are you interested in extending the "XML for JS" proxies to > handle XML POST? > -- > > Cameron Shorter http://cameron.shorter.net > Open Source Developer http://generguide.sourceforge.net > http://mapbuilder.sourceforge.net > Senior Software Engineer http://www.adi-limited.com > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > mapbuilder-devel mailing list > map...@li... > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > |
From: David J. <dj...@ya...> - 2004-07-14 20:15:25
|
Hello! Sorry for the delay, I've been out of town. :) I'd love to include the capability to do this in XML for <SCRIPT>. I'm curious what you mean by and XML POST though. Do you mean an HTTP post that has XML in the body, or something else? An HTTP post (or get) would be fairly easy to do since the plumbing on the browser side is already written on the web side for the proxies. Doing something else would be more difficult since all browsers know how to do is HTTP. The problem is that I don't have time to do this at the moment. I'm currently about a month away from being a new dad and that is pretty much taking all of my time at the moment. I'd be happy to play a consulting role for anyone who wants to try this however. I'd also be happy to include the code in a future release of XML for <SCRIPT>. Best regards, David --- Cameron Shorter <sho...@op...> wrote: > Hello xmljs people, > > On our project http://mapbuilder.sf.net we want to POST an XML request > to a remote server, get an XML response, then process the XML response. > > I've been looking at the "XML for JS" proxies as a possible basis for > this functionality. > Are you are aware of any code which we can use to acheive this > functionality? > > Or if not, are you interested in extending the "XML for JS" proxies to > handle XML POST? > -- > > Cameron Shorter http://cameron.shorter.net > Open Source Developer http://generguide.sourceforge.net > http://mapbuilder.sourceforge.net > Senior Software Engineer http://www.adi-limited.com > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Cameron S. <sho...@op...> - 2004-07-14 21:31:39
|
Thankyou David for the feedback, and good luck in becoming a new dad. I still need to understand more about how to POST XML to a server, but after discussions with other mapbuilder developers I think that we might use a slightly different proxy interface. Rather than encode and return XML inside a GET parameter, I think we will return raw XML the same as if we were accessing an XML document on the web. Our project has the advantage that we only target Mozilla 1.3+ and IE6+ so we can use the javascript XML functions. (Of note, we are using the Sarissa XML library). At the moment, I working on a GET interface. For the PUT interface I'm expecting to use FRAMES and hope to copy some of the XMLJS ideas. If we change our minds and decide to extend XMLJS, we will let you know and offer the code to you. On a side note, you may be interested to change your javascript commenting style to fit in with http://jsdoc.sourceforge.net . It means that you can build javadoc documentation like: http://mapbuilder.sourceforge.net/docs/jsdoc/index.html More inline. David Joham wrote: >Hello! > >Sorry for the delay, I've been out of town. :) > >I'd love to include the capability to do this in XML for <SCRIPT>. I'm curious what you mean by >and XML POST though. Do you mean an HTTP post that has XML in the body, or something else? > My understanding is that I need HTTP POST that has XML in the body. > An HTTP >post (or get) would be fairly easy to do since the plumbing on the browser side is already written >on the web side for the proxies. Doing something else would be more difficult since all browsers >know how to do is HTTP. > > Yes, that was my understanding too. >The problem is that I don't have time to do this at the moment. I'm currently about a month away >from being a new dad and that is pretty much taking all of my time at the moment. I'd be happy to >play a consulting role for anyone who wants to try this however. I'd also be happy to include the >code in a future release of XML for <SCRIPT>. > > Yes, I think we would all be happy to return our code back to XML for <SCRIPT> if we produce anything that will be useful for you. > >Best regards, > >David > >--- Cameron Shorter <sho...@op...> wrote: > > >>Hello xmljs people, >> >>On our project http://mapbuilder.sf.net we want to POST an XML request >>to a remote server, get an XML response, then process the XML response. >> >>I've been looking at the "XML for JS" proxies as a possible basis for >>this functionality. >>Are you are aware of any code which we can use to acheive this >>functionality? >> >>Or if not, are you interested in extending the "XML for JS" proxies to >>handle XML POST? >>-- >> >>Cameron Shorter http://cameron.shorter.net >>Open Source Developer http://generguide.sourceforge.net >> http://mapbuilder.sourceforge.net >>Senior Software Engineer http://www.adi-limited.com >> >> >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by Black Hat Briefings & Training. >>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >>digital self defense, top technical experts, no vendor pitches, >>unmatched networking opportunities. Visit www.blackhat.com >>_______________________________________________ >>xmljs-users mailing list >>xml...@li... >>https://lists.sourceforge.net/lists/listinfo/xmljs-users >> >> >> > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >_______________________________________________ >mapbuilder-devel mailing list >map...@li... >https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > > -- Cameron Shorter http://cameron.shorter.net Open Source Developer http://generguide.sourceforge.net http://mapbuilder.sourceforge.net Senior Software Engineer http://www.adi-limited.com |