Dynadot โ€” .com Registration $8.99

Web services wsdl - Need help

Spaceship Spaceship
Watch
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)
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!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
 
0
•••
0
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back