Developer Forum [ All Topics | New Topic ]

Thread: Results not showing on Raplink

I enter search criteria via the Raplink Diamond Feed link from the main menu on the website and I am able to get about 60 rows of data back. If I apply the same search criteria via a c# program that accesses the web service and in a fashion similar to the "Web Service Example C#" code sample, I get no results back. What do I have to do to bypass this? My understanding is that it has something to do with dealers giving permission to see their stock. I tried adding dealer numbers through the IncludeMemberCollection property but was not successful.

Also, what would be the best way to contact technical staff? phone, email, this forum? Please advise because in the past, I have added emails on this forum but did not get any answer, and I have been calling the Las Vegas 702 number instead, which is costly for me.


>> add a comment
Eli
05/14/2010 06:51


5 Replies:

Hi

can you please showthe full URL you are trying to use?

thanks,



>> add a comment
Ahaliav Fox
5/15/2010 11:41:00 PM
I use https://technet.rapaport.com/HTTP/Authenticate.aspx to get an authentication ticket and then use http://technet.rapaport.com/HTTP/RapLink/download.aspx?..... to search for diamonds. This method is working for me (results are returned exactly as I would do them via Raplink). However, if I use the web service method, things do not work properly, even though all properties are being set properly. Sample code follows:

RapFeed.DownloadListings MyRapFeed = new RapFeed.DownloadListings();
MyRapFeed.Login(user, pw);
string feedTicket = MyRapFeed.AuthenticationTicketHeaderValue.Ticket.ToString();
RapFeed.AuthenticationTicketHeader feedAuth = new RapFeed.AuthenticationTicketHeader();
feedAuth.Ticket = feedTicket;
MyRapFeed.AuthenticationTicketHeaderValue = feedAuth;
RapFeed.DownloadListingsParameters MyParams = new RapFeed.DownloadListingsParameters(); ........

and so on with the rest of code, setting downloadlistings parameters.

I suspect that there is a bug somewhere on the server side when using web service. The reason I say that is because when I debug and prior to sending my request to raplink, i check all properties for downloadlistings and they all look fine. Either I am missing setting some parameter or there is a bug on the server side. Your advice is greatly appreciated.

Finally, thank you very much for your reply. I look forward to communicate with you on solving this problem.



>> add a comment
Eli
5/16/2010 1:29:00 AM

I need to see the exact URL you posted on the web site and the code including all parameters you are trying in the web service

I did my test with Round, Color: E, MinSize: 1 MaxSize:1 in the web site and in the WebService and I got the same results

Here is my code:

DownloadListings webServiceManager =

                        new DownloadListings();

 

                  //This must be done in HTTPS protocol

                  webServiceManager.Login("username", "password");

 

                  //After log in you will receive a encrypted ticket with your credentials. This will be used to authenticate your session.

                  //Now you can choose to change the protocol to HTTP so it works faster.

                  webServiceManager.Url = "http" + webServiceManager.Url.Substring(5);

 

                  DownloadListingsParameters setPatams =

                        new DownloadListingsParameters();

 

                  Shapes[] MyShapes = new Shapes[1];

                  MyShapes[0] = Shapes.ROUND;

                  Colors[] MyColors = new Colors[1];

            MyColors[0] = Colors.E;

                  setPatams.MinSize = 1;

                  setPatams.MaxSize = 1;

                  setPatams.ColorCollection = MyColors;

                  setPatams.ShapeCollection = MyShapes;

                  //setPatams.Markup = 120;

 

                  DataSet ds = webServiceManager.GetDiamonds(setPatams);

 

                  System.IO.File.AppendAllText(@"C:\\TestWithOutMarkup.csv", Excel.ConvertToCSV(ds.Tables[0]));

 

And the URL I posted in the site:

http://technet.rapaport.com/HTTP/RapLink/download.aspx?ShapeIDs=1&WeightFrom=1&WeightTo=1&ColorIDs=2&SortBy=Owner&White=1&Fancy=1&Programmatically=yes&Version=1.0

 

if you prefer to send me your code to my email you can send it to this email: Ahaliav@diamonds.net

 



>> add a comment
Ahaliav Fox
5/16/2010 6:08:00 AM
Hi
Can you please let me know when do you expect to have the changes completed?

>> add a comment
Eli
5/22/2010 4:36:00 AM
we hope today

thanks for your patience


>> add a comment
Ahaliav Fox
5/22/2010 11:43:00 PM