NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page web services wsdl - need help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 08-19-2009, 11:54 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Aug 2005
Location: FL
Posts: 1,267
scrsteven is a name known to allscrsteven is a name known to allscrsteven is a name known to allscrsteven is a name known to allscrsteven is a name known to allscrsteven is a name known to allscrsteven is a name known to allscrsteven is a name known to all
 



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!
__________________
SKDomains.com
Distance Learning
scrsteven is offline   Reply With Quote
Old 09-01-2009, 11:17 PM   #2 (permalink)
New Member
Join Date: Aug 2009
Posts: 6
jumboa7 is an unknown quantity at this point
 



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
jumboa7 is offline   Reply With Quote
Old 09-02-2009, 06:50 AM   #3 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



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))
nasaboy007 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:31 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger