Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8162041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:37:29+00:00 2026-06-06T18:37:29+00:00

The Goal: To retrieve information from a 3rd party database based off of a

  • 0

The Goal:

To retrieve information from a 3rd party database based off of a user’s query on my ASP.NET website

The Details:

I need to be able to search 3rd-party websites for information relating to pharmaceutical drugs. Basically, here’s what I’ve been tasked with: a user starts entering the name of a drug they’re using in their experiments, and while they’re typing a 3rd party website (e.g., here or here) is queried and suggestions are made based off of what they’ve typed. Once they’ve made a selection, certain properties (molecular weight, chemical structure, etc) are retrieved from the 3rd party database and stored in our database. PharmaGKB.org‘s search bar is pretty much what I need to implement, but I need to access a 3rd party db. The site that I’m working on is ASP.NET/C#.

The Problem:

I don’t really know where to start with this. There’s a downloadable Perl example at the bottom of the page here, but it didn’t really help me all that much. I’m at a loss as to how to implement this, or even find information about how to do it. The AJAX toolkit was suggested, but I’m not sure if that will solve the issue. JavaScript is also being considered, but again, I’m not sure if that will be sufficient, either.

Perl Example Connection

As a mentioned, here is a snippet from the Perl example given on the Pharmgkb.org site:

my $call = SOAP::Lite
-> readable (1)
-> uri('SearchService')
-> proxy('http://www.pharmgkb.org/services/SearchService')
-> search ($ARGV[0]);

However, I’m not sure how to implement this is C#/ASP.NET/JavaScript. There’s a question on Stack Overflow about embedding Perl in C#, but it require a C wrapper as well, and I don’t think that three languages is necessary or wise to solve this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:37:30+00:00Added an answer on June 6, 2026 at 6:37 pm

    Continuing from the comments to your post, here’s what I think you can do:

    1. Add a service reference to your Web project. In the Address, use this: http://www.pharmgkb.org/services/SearchService?wsdl.
    2. Click Go. The wizard will recognize the service as SearchServiceService. In the Namespace textbox below, give the name ‘SearchServiceReference’.
    3. Your service methods and data objects would be created (along with all the other necessary bits to run your service).
    4. Then, you can use the service reference like:

      public static object[] Search(string searchString)
      {

              using (var searchSeviceClient = new SearchServiceReference.SearchServiceClient())
              {
                  return searchSeviceClient.search(searchString);
              }
          }
      

    Also, considering the whole scenario of your problem, you would want this service to be run on text changed event of javascript/jQuery. You can learn how to call code-behind methods from jQuery using ajax in this article: jquery ajax calling Wcf service or some method in Code behind from Client Side

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Goal: Retrieve all instance of List<> from interface GameFactory Problem: I retrieve error message
I am playing around with php rar http://www.php.net/manual/en/intro.rar.php Goal : Gather file (name) information
Goal: Retrieve data aaa from the first td in tr by pressing the link
My goal is to retrieve a result of the name of column based on
Goal: retrieve an element of data from within a PHP object by number. This
I've been working on a .NET C# TBB to retrieve fields from a schema,
Goal To use a CREATE TYPE statement in HSQLDB 2.0.0 to create a user-defined
Goal : After user saves data to my mysql DB, a JSON teaser of
Goal: I'm trying to refresh content inside a div so that if the user
My goal is to retrieve the X,Y coords of a table. I have looked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.