Results 1 to 6 of 6
October 9th, 2006, 11:58 PM #1Link Locator Direct web service
Has anyone used C# / VB .NET to create a script to access the Link Locator Direct web service? I can't seem to get it to function correctly (authorization issues), but have followed the instructions given. Any tips or resources would be helpful.
"System.Web.Services.Protocols.SoapException: org.apache.axis.AxisFault:Pass in username/password"
October 10th, 2006, 08:51 AM #2
The .NET issue that you referring to is a client side issue. Our research
indicates that it is caused due to the way in which .NET authenticates.
The following articles describe the problem and possible solutions.
October 11th, 2006, 05:33 AM #3
Thanks for the information!! By setting PreAuthenticate to True and adding the code (posted in the first link you mentioned) to the Reference.vb, it was fixed within minutes (as I had previously spent a few hours toying with it).
Perhaps you should post that as a note in the LLD guidelines somewhere?
October 21st, 2007, 01:33 AM #4
Can you provide more info on what you added to the reference.vb file.
- Join Date
- October 20th, 2007
I did not find a reference.vb file in my ASP.net 2005 project. I created a new file and tried to added the following to the
Protected Overloads Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequest
Dim request As System.Net.HttpWebRequest = DirectCast(MyBase.GetWebRequest(uri), System.Net.HttpWebRequest)
If Me.PreAuthenticate Then
Dim nc As System.Net.NetworkCredential = Me.Credentials.GetCredential(uri, "Basic")
If nc IsNot Nothing Then
Dim credBuf As Byte() = New System.Text.UTF8Encoding().GetBytes(nc.UserName + ":" + nc.Password)
request.Headers("Authorization") = "Basic " + Convert.ToBase64String(credBuf)
But i was not able to compile the same. Can you share what y did . Thanks
Originally Posted by offerfind
October 24th, 2007, 02:46 PM #5
- Join Date
- May 15th, 2005
Here are the steps to building the application:
1. Create a new project.
2. Add a web reference using the wsdl location (I ignored the user name & password in the URL)
3. Double click on the references to expand the view.
4. Double click on the reference for a specific wsdl to view the code the reference.
5. Locate the GetWebRequest method in this reference file and make the changes mentioned.
6. Now you can add a new web page or vb form and add code to use the web service.
May 30th, 2008, 04:33 PM #6
- Join Date
- April 30th, 2008
I just found out about Linkshare's Link Locator Direct webservice today and ran into the same issue. The remedy provided by offerfind worked perfectly.
By arianman in forum Rakuten LinkShare - LSReplies: 8Last Post: September 12th, 2013, 11:13 AM
By pirate3x3 in forum Rakuten LinkShare - LSReplies: 1Last Post: May 28th, 2008, 08:03 PM
By bouffoc in forum Rakuten LinkShare - LSReplies: 4Last Post: January 16th, 2008, 08:46 AM
By flipone in forum Rakuten LinkShare - LSReplies: 5Last Post: December 12th, 2007, 05:00 PM
By signofDtimes in forum Rakuten LinkShare - LSReplies: 3Last Post: January 30th, 2007, 04:09 PM