Results 1 to 22 of 22
  1. #1
    Newbie
    Join Date
    July 8th, 2008
    Posts
    9
    Soap Connection Failing
    Does anyone know anything about a recent change in web services?

    I use the web service located at:
    http://lld2.linksynergy.com/services/soapLinks/?wsdl
    I call to the method: getMerchByName
    I do this to get a list of my merchants and dump them into my database for use on my site. The script updates my list with newly approved merchants, removes dropped merchants, etc.

    The script was working fine for weeks. No changes have been made, however, I am now getting a soap connection error. The error is:

    An error occurred in script 'path/filename.php' on line 40:
    SoapClient::__doRequest() [soapclient.--dorequest]: connect() failed: Connection timed out

    Line 40, where the error occurs, is simply my call to the method:

    $client->getMerchByName($params);

    Any help anyone could offer would be greatly appreciated.

    Thanks!

  2. #2
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    I have been trying to get this working for the first time and I assumed I was coding something wrong. Very interested to what you find out. Any answer will no doubt come from someone other than Linkshare, that we can be sure of.

  3. #3
    Newbie
    Join Date
    July 8th, 2008
    Posts
    9
    Oh, come on, no faith in LS tech support? ;-)
    I managed to get the script working (no thanks to LS, of course) in early September. It was working fine until a week ago or so. I made no changes to the script, I just started getting the error. I figured it was just a temporary thing -- that LS was working on something or something had gotten screwed up. So, I let it go. I wouldn't put it past LS to let the service be down for this long, but am to the point where I need to figure out what's going on and see if I need to come up with a new way of getting the data.

  4. #4
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    Are you using php and something like nusoap when you make the call to this method?

  5. #5
    Newbie
    Join Date
    July 8th, 2008
    Posts
    9
    I don't believe it is nusoap. I think it's just PHP's soap support:

    http://us.php.net/soap_soapclient_soapcall

    This is the call part of my script:

    $devKey = 'XXXXX';
    $keywords = '';
    $ini = ini_set("soap.wsdl_cache_enabled","0");
    $url = 'http://lld2.linksynergy.com/services/soapLinks/?wsdl';
    $client = new SoapClient($url, array('trace'=> true));
    $params = array(
    "token" => $devKey,
    "name" => ''
    );
    $result = $client->getMerchByName($params);

  6. #6
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    My biggest complaint with LS web service calls like these is that none of their docs/guides define the node names used in the return data.

  7. #7
    Newbie
    Join Date
    July 8th, 2008
    Posts
    9
    I had to track down an old guide to find the methods. The one I got from my client didn't even contain those. Before I found the old guide, I contact LS about it and they said "all you need to know if in the guide". I figured the translation was, "We just work here. We have no idea."

    As you can probably tell, I'm not well-versed in soap. I've been writing php for almost 10 years, but mostly use data that is entered manually or picked up from the site I build. I've only worked with soap and xml to pull data from outside sources on a few projects. I have found that the documentation is always wanting. I always end up printing the full array as soon as I can connect, just to get field (node?) names.

  8. #8
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    Looks like I got a different error.


    Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in lsws.php:34 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://10.1.7.1...', '', 1, 0) #1 [internal function]: SoapClient->__call('getMerchByName', Array) #2 lsws.php(34): SoapClient->getMerchByName(Array) #3 {main} thrown in lsws.php on line 34

  9. #9
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    I took the REST URL for the same method and entered it on the web address bar and got a list of all approved merchants.

    ht tp://lld2.linksynergy.com/services/restLinks/getMerchByAppStatus/<token>/<status>

    Now if I could only figure out how to run that from a php script and capture the nodes.

  10. #10
    Newbie
    Join Date
    July 8th, 2008
    Posts
    9
    I don't know if this will help you or not. It's an abbreviated version of the script I use to set php variables for the fields returned (well, once returned) by the soap method getMerchByName. This used to work. My full code includes breaking down the commission field (they send a lot of crap) and extracting the real numbers/types/ranges, etc.

    $result = $client->getMerchByName($params);
    $result = $result->return;
    foreach ($result as $mer) {
    $ls_id = $mer->mid;
    $name = $mer->name;
    $cats = $mer->categories;
    $commTerms = $mer->offer->commissionTerms;
    $offerName = $mer->offer->offerName;
    }

  11. #11
    Newbie
    Join Date
    March 24th, 2009
    Posts
    22
    have anybody figure it out? i am having thee same problem

  12. #12
    Newbie
    Join Date
    July 8th, 2008
    Posts
    9
    My client finally got an email from tech support (many weeks after we started having the problem). Support said they were working on the issue. Clearly they are either lying or incompetent -- or it's their lowest priority. None of which are good things. Anyway, I haven't heard from my client in ages. I think she has sort of given up on the whole thing. As far as I know, an answer was never found.

  13. #13
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    I can get the "getMerchByName" to work, but the "getTextLinks" just returns an error. I suspect it has something to do with the parms.

  14. #14
    Newbie
    Join Date
    March 24th, 2009
    Posts
    22
    you mean getMerchByName in REST or SOAP?

  15. #15
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    Soap

  16. #16
    Newbie
    Join Date
    March 24th, 2009
    Posts
    22
    Quote Originally Posted by SeymourButts
    Soap
    does it still work for you?

    I am getting "Could not connect to host" even for the method that used to work:

    $client = new SoapClient("http://lld2.linksynergy.com/services/soapLinks/?wsdl", array('trace'=> true));
    $results = $client->getMerchByAppStatus(array("token" => $ls_token,
    "status" => "approved"));


    if it is still works for you, could you please post your code?

    Thanks!

  17. #17
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    The getMerchByName stopped working a few days ago. Now nothing works.

  18. #18
    Member
    Join Date
    October 4th, 2007
    Posts
    109
    Yup. I had the same issue the other day.

  19. #19
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    I sent a email to support and it seems the ticket was moved to a different tech support que where it now sits. Actually, it probably got moved to the delete que since noone at LS seems to know anything about web services.

    My theory is that they hired someone to write the web service for them and then laid him off soon after. Now, noone knows how to support it.

  20. #20
    Newbie
    Join Date
    March 24th, 2009
    Posts
    2
    I am just starting to work on integrating this API and am getting connection errors too.

    Trying to do getMerchByName:

    HTTP Error: Couldn't open socket connection to server http://10.131.2.110/services/soapLinks/, Error (110): Connection timed out

  21. #21
    Newbie
    Join Date
    March 24th, 2009
    Posts
    22
    I wondering then: have it ever worked before (production wise)? I kinda googled and found the same kind of questions being asked 2 years ago with no answers... I mean if it is ever gonna work but you have to contact support to turn it on every time you want to access it?...

    So, have anybody used LinkShare's webservices before and can they be relied on?

  22. #22
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    The getMerchByName function on the web service is now working. But, the getTextLinks is still failing. I assume I am using the correct parms, but who knows really since the api doc is lacking those sort of details.

  23. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Join the Soap.com affiliate program
    By Google Affiliate Network Moderator in forum Google Affiliate Network - GAN
    Replies: 0
    Last Post: August 4th, 2010, 05:19 PM
  2. Need Help From Perl/SOAP Expert
    By Uncle Rico in forum Midnight Cafe'
    Replies: 6
    Last Post: June 29th, 2008, 09:54 AM
  3. Little Bars of Soap
    By Rhea in forum Virtual Family and Off-Topic
    Replies: 2
    Last Post: July 6th, 2004, 09:51 AM
  4. System Soap Pro
    By appbizz in forum Suspicious Activity!
    Replies: 0
    Last Post: September 25th, 2003, 11:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •