| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2005 Location: FL
Posts: 1,267
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | web services wsdl - need help I'm trying to connect to a web services wsdl page and get an xml file from it so I can display an affiliate feed on my website. I was told the wsdl url, and that there is a function for it: "functiondata(Numeric cid , String username, String password) ????: NamePros.com http://www.namepros.com/programming/604432-web-services-wsdl-need-help.html Returns base 64 string. This is compressed (gzip) XML of the data. The returned value needs to be converted from base 64 to binary, and after that unzipped." I have a cid, username, and password, but I don't know how to actually use it with a function to get the xml file. Once I get the xml file, I think I know how to use it to display the content on my site already. If you could give me some direction I'd appreciate it. I have zero experience with this type of programming and couldn't find anything by googling. Thanks! |
| | |
| | #2 (permalink) |
| New Member Join Date: Aug 2009
Posts: 6
![]() | I assume that you use PHP. 1) functiondata will return base64 string which you can convert to binary with following funciton PHP: base64_decode - Manual 2) save binary file with PHP: fwrite - Manual 3) extract binary file with winzip or similar program. You should get xml file after that
__________________ commission blueprint 2 |
| | |
| | #3 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | If you want to extract the zip file on ur server, look at this article: » How to unzip ZIP files with PHP » Corpocrat Blog he said he had the best results with the third option (see PhpConcept - PclZip (PhpConcept Library Zip))
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| | |