[Cialug] Re: [ciapug] XML

Dave Weis cialug@cialug.org
Tue, 22 Mar 2005 11:12:17 -0600 (CST)


On Tue, 22 Mar 2005, David Champion wrote:
> [crosspostin']
> Dave J. Hala Jr. wrote [on the PHP list] :
>> Anyone using XML on one of their sites to exchange information with
>> other systems?
>> 
>> Anyone sending an "XML query" (wrong terminology, I know) to another
>> site, retrieving the data and inserting into their system?
>> 
>> How do you handle the authenitication? What software you use on the
>> Linux system?
>
> I recall Dave Weis mentioned that he'd written a PHP/XML service recently.

Yes I did. It wasn't too bad. I had originally written something that 
would take an xml string as an http post, then found out it was supposed 
to be a SOAP call. I used the nusoap library and it took about 10 lines to 
attach it to my function. It would create a wsdl automatically (function 
description) so I used the free time to learn vb.net and made a little 
program with one text field and one button that would do a SOAP call to my 
test function and show the results. Not too bad.

If you want I can try to sanitize what I wrote and show you how it's done 
but the nusoap docs aren't too bad.

-- 
Dave Weis             "I believe there are more instances of the abridgment
djweis@sjdjweis.com   of the freedom of the people by gradual and silent
                       encroachments of those in power than by violent
                       and sudden usurpations."- James Madison