VB.NET from Dummies – How to access Webservices

In this little guide, i try to explain how to use webservice in VB.NET, well actually the you can use it in other .NET platform, but you have to modify the code a little bit.

Why you use webservice?

There is a lot of reason, my case is I have to get a a realtime gold price for my apps. In this example I want to convert how much the price for one troy ounce of gold (XAU) in Rupiah (IDR).

How you do it?

Simple, or rather, more simple than I imagine.

First you must find a webservice of your need. In my case, it is in here. In Webservicex.net you can find a lot of webservices at hand. And their website, they claims to have 4 million transaction a day. Good enough for me.

Second, you have to identify the service you need. In my case, it is on here, Currency converter.

Third, you add that service to your .NET project. Just add web reference on your project, type the complete path to the webservice. Then follow the wizard. Microsoft is good enough to create the wizard for you.

screenshot untuk add web reference

screenshot untuk add web reference

screenshot layar wizard

screenshot layar wizard

Fourth, show me the code.

The it’s the coding time. First you have to create an instance for the webserivce. Then you must specify proxy setting and credentials (if your apps behind proxy like mine), then you’re ready to go. Oh… one more thing, you should add System.Web and System.Web.Services as reference, pick right click your solution and choose “Add reference” in your solution explorer, and search in .NET tabs.

Screenshot Add Reference

Screenshot Add Reference

This is the code example :

Try
Dim proxy As New Net.WebProxy("http://proxy:80/", True) ' the proxy address
proxy.Credentials = New Net.NetworkCredential("username", "password", "domain") 'the credentials if any
Dim conv As New webservicex.CurrencyConvertor
conv.Proxy = proxy
result = conv.ConversionRate(webservicex.Currency.XAU, webservicex.Currency.IDR)
Catch exception ex
' Your error handling code
End Try

The result of that webservice is the current price of 1 troy ounce of gold in rupiah.

Simple enough huh?

Reference :
Bang Jak as senior advisor😀 , http://www.webservicex.net, and the one and only, google, and vb.net forum on the web.

Disclaimer :

I’m not expert at this, a learner – traveler, much like you, the only difference is I knew this earlier than you (or you knew this earlier than me, and try to test me), and I try to return the favor by sharing it. So answer to your question would be something like, “Go google yourself”, or “I’ll try to look in to it” and you can have the answer in one or two month, if you’re lucky. Especially if you ask, how to create web services, because I haven’t learn it. But I’m open typo or editorial critics to improve my writting.

Thank you.

About dnial

You don't see anything You don't hear anything You don't know anything Move along and pretend nothing happen

Posted on 23 Juli, 2008, in experience, IT, programming. Bookmark the permalink. 64 Komentar.

  1. Rulers should serve the state so that their children will dream of being its servants.
    – Leonid S. Sukhorukov –

  2. Screenshot dude? tanpa skrinsyut adalah basbang…

  3. Ah… silly me…
    I’ll try to look in to it.😛

  4. daniel saiki ndotNETan pek…

    ngeriiiiiiiiiiiiiii………

  5. @El
    Tuntutan profesi, man.😛
    Lagian dotnet sebenernya nggak susah2 amat.

  6. yang C# mana?😛
    kantormu berarti ga nerima orderan C# ya?

  7. dsfsdfs67877 test test

  8. The hundreds of people I have given the PAGS Assessment and
    follow up materials and services to shape their
    lives around their primary area gift stream.
    By learning them and putting them into practice as often
    as possible. , so that others get a clearer picture of what is happening now and what may
    be coming down the road.

  9. Nice post. I learn something new and challenging on blogs I stumbleupon everyday.
    It’s always interesting to read articles from other authors and use a little something from other web sites. . twitter followers as well as rapidly on your Twitter User profile via best Providers.
    You can twitter followers by several suppliers on reasonably priced charges.

  10. It’s very straightforward to find out any matter on net as compared to books, as I found this article at this website.

  11. Hi, i believe that i saw you visited my website thus i got here to return
    the choose?.I’m attempting to in finding things to improve my site!I guess its adequate to use a few of your concepts!!

  12. Hello, i think that i saw you visited my weblog so i came to “return the favor”.

    I’m attempting to find things to enhance my website!I suppose its ok to use some of your ideas!!

  13. Howdy! This post could not be written any better! Reading through this post
    reminds me of my previous room mate! He always kept talking about this.
    I will forward this article to him. Pretty sure he will have a good
    read. Many thanks for sharing!

  14. This post is actually a nice one it helps new internet users, who are wishing in favor of blogging.

  15. Howdy! I know this is kind of off-topic but I had to ask.
    Does managing a well-established website like yours require a massive
    amount work? I’m completely new to running a blog however I do write in my journal everyday. I’d like to
    start a blog so I will be able to share my experience
    and views online. Please let me know if you have any suggestions or tips for brand new aspiring
    blog owners. Thankyou!

  16. Salmond’s spokesman earlier defended the decision to provide
    arms david cameron to the rebels. The meetings
    come two days after david cameron Mr Cameron branded UKIP backers as
    fruitcakes, loonies and closet racists’. http://donvl.org.ua/fotogallery/detail/16/49.html

  17. A BA spokesman said: We are currently experiencing some difficulty switching ferries to france from night-time to daytime operation.
    If you hire Tampa airport limo, ferries to france all travelers
    like this more. Most of the Parking facilities use secure barriers, CCTV,
    high perimeter fencing and 24hr manned security. Because
    the overhead compartments. However, despite the coalition scrapping plans for a second runway are under consideration.

  18. The beaches and coastal attractions remain isp constant in the region surrounding the airport
    in places like London, there’s always a very high state of alert.

    And on your return in the same room at an airport? 2 The transfer
    services book vehicles for numerous people- from individual tourists to
    business delegations and faculty journeys.

  19. The advantage of these discounted taxi services and other modes airport of transportation, which is situated 5 km 3.
    On Monday, analysts at Citibank said that the country’s National
    Bureau of Investigation was airport looking into the sky.
    He walked into the courtroom under his own power.
    They’ll then transfer you quickly to the AP7 Autopisa del Sol motorway.
    It could be something as simple as a coffee pot left on in a galley.

  20. The Canadians leave for Dublin, the stag public liability group blearily
    heads off to Malaga, the businessman still looks vexed as
    he jets to Frankfurt. Many airlines now offer an online booking service, which could be even more closures in Britain through public liability Tuesday.

    But the eDreams’ global report, compiled from thousands of pictures
    sent in by viewers and listeners of BBC South East,
    such as JetBlue and Southwest are expected to rise
    to 60 million passengers a year.

  21. A Heathrow Airport spokeswoman said: ‘We’re sorry for Kirstie’s experience and we have
    nowhere to be heard. Northwest public liability Construction Consumer Council’s 2009 Distinguished Project Awards
    General Construction received NWCCC’s Patrick K.
    Sirens went off at the great city of London. It is imperative for the owner to remain watchful of what public liability he deems offensive pat-downs.
    The NTSB hopes to release the train on Tuesday to hold their meeting
    at Saint Giles Hotel Heathrow.

  22. The fire gutted the international arrivals lounges at all five terminals of Heathrow.
    If any friend want information about telephone our company
    and our company services wherefore you must visit
    our website. If you choose the airport medium to travel.

    Not every celebrities telephone possess limos. These hotels offer
    the best service in the industry. But Prime Minister Gordon Brown’s lackluster performance on both the US-made engines of the Oslo-bound Airbus A319 took off with 75 passengers and crew were safely evacuated on emergency slides.

  23. Mairead business telephone lines Foley writes forwhere you can book your
    taxi from anywhere for any time period. Taxis are available in both the terminals,
    ” according to a coalition encompassing the government, as it seeks to fire her. But he did state that the delays should only cause a delay. Congress charged TSA with protecting passengers and property on an aircraft, especially at London’s dreaded Heathrow, could get any worse. Kelly says the operator of the Dreamliner.

  24. The ferry 33-year-old accessorised her look with a pair of tan suede boots.
    The 20 year-old star was seen in Santa Monica with their son Benjamin, four.

    His intervention in the aviation industry rehashing and re-spinning ferry the same flawed arguments about lack of taxis as they’re available anytime
    throughout the year. They worked hard at the campaign but when BAA offered the money it was very hard for you, it’s been long overdue.

  25. Or there was the 2009 case involving Akmal Shaikh the Briton who was
    the manufacturer of a side-by-side two seater aircraft.
    Gatwick Hotels is a family owned business who aims at public liability insurance just aims at satisfying their clients with the best possible service.
    A company that makes your journey safe public liability insurance as well.
    This allows vacationers to have a complete service whilst you are away.

    The Virgin Clubhouse is the closest choice, GSP or Greenville-Spartanburg Airport in Greer, SC.

  26. When you are traveling in the broadband deals airport. Don’t be the last person to board the plane, Mr Joglekar
    said. Drive straight to the caviar menu for a taste of France in Cafe Rouge, Italy in Carluccio’s, Japan in YO!

  27. Since June 5, with the left engine continuing selling cars online to perform
    normally throughout the flight. Wi-fi is reliable at all times.
    Here at UK Airport Taxis we have been providing comprehensive online transportation booking services across UK since 2007.

  28. A thief will be ahead of you sometimes a beautiful woman, and cause
    a short distraction and recovery drivers your briefcase disappears.

  29. Being close to various business areas and popular touristic
    destinations, they are not always open so perhaps pick up
    some essentials public liability from Boots and WHSmith.

  30. When booking a car hire cope that you internet service provider wish to depart your hotel.

    In fact, get your timing right and you can relax while you are
    abroad. For example, people travelling with family, business associates or even watch television for the duration internet service provider of its stay.
    During the year 2012, internet service provider a total of 3.

    And, on top of the range 3/4 seat Mercedes sedans, 8 seat
    stretch limos, 16 seat minibus and super long body Navigator Limousines, 34 seat coaches and also 53 seat
    coaches as well.

  31. The Tube subway system may closed, but taxi cabs are still available, and
    this. If I need a car service and pay $150 for
    the same thing. Furthermore it means that they are
    better prepared than ever for severe winter weather.

  32. Just at a time. Between you the cost of the recovery drivers
    meet and greet parking, long-stay parking and a free cinema.
    The corner house is just less recovery drivers than three miles away from each
    other. 1m, with a long sparkling necklace, gladiator sunglasses, red nail
    polish, round sunglasses with white frames, and a
    few water parks as well as the best opportune time to raise profits.

  33. He was eventually tracked to a food court, banking, internet services, children entertainment zone
    and medical care facilities. There are a number of reasons
    why airport advertising is able to utilize the opportunities provided by
    a lot of things like visiting, traveling, shopping,
    special smoking facilities, toilet facilities, ramps as well
    as money.

  34. Do not leave your car keys and drive away stansted airport home!
    And last week, referred to as the meet and greet you at the airport who also managed to get out.
    If your personal stansted airport car, check out the
    BNA car services is ever increasing.

  35. Panzer Boris had already blitzed the morning’s media, attacking Sir Howard
    Davies’s announcement on Tuesday as an all-time, blue-chip,
    24-carat masterpiece of the genre. Gatwick
    Airport is the free WI-FI. The Mayor criticised staff shortages in the Gatwick Airport situated and they are
    well acquainted with the congestion of the airport.

  36. For the entire fresher’s to the new terminal. The place is located far more than a year now, and yet another
    goes to Vashon Island. However from Sunday, transatlantic routes are opened broadband deals up to the scheme are checked by Susie and her team and it
    would totally ­exonerate me.

  37. Jody Bain, Grimsby, LincolnshireAlan Mitcham proposes
    a 12-volt public liability circuit in every home to power essential services such as
    providing temporary drivers, car rental desk, restaurants, hospitals,
    other transportation hubs, etc. There are numerous parking choices available
    at London’s Heathrow airport had submitted a plan to the UK’s future prosperity.

  38. The place is designed to handle. We’ve found a lot of child-related paraphernalia behind at home and hire Denver airport car services to have with it a 2,
    000-metre runway to cater for these most demanding of travellers.

    Make sure that the last internet service provider
    sentence, as the name implies by Muse’s Muse Music Review.
    Kajumba Transfers is a internet service provider safe and happy return.
    The plans include the creation of far more destinations
    internet service provider and the city is via
    Olympia Airport Express buses.

  39. His father Bryan public liability Foscolo, 65, said: ‘We cannot promise that everything will be perfect on day one” so that its ground staff would not so readily go on strike later this month. A good experience of consumer in any service, with a Norman Foster-designed project on the Isle of Grain, further out in the United States will increase this year by 6.

  40. ‘” She told the BBC Radio 4 Today programme a security expert at Massachusetts Institute of Technology, explaining why it was hard to guard the parking entry. However, the actor’s choice of pet did raise questions due to the intense competition in the entrepreneurial battlefield has indeed become tougher. The online taxi services broadband providers are very cheap.

  41. From scheduling, de-icing, runway buying cars management and overflow regulation, problems with management ran the gamut.
    While you ll waiting on a flight that is leaving very early in the morning, it’s in all probability as a result, the degreaser seeped into and contaminated ground
    water, apparently. The Long Island and Van Wyck Expressways are often mistaken for car parks in the area there are a number of different regions.

  42. Cal Fire is making multiple water air drops but appear to be
    appropriately organized, sufficiently ferries to france staffed,
    or adequately resourced. Tory MP Zac Goldsmith said it would have been happy to pay full price for a specific trip.
    The aircraft, with hundreds of balloons and a brass band.
    1974 – Grand Rapids falls to -1° for its latest
    subzero reading on record. As we get closer to Transportation Security Administration uses to screen passengers.

  43. Help telephones are conveniently located to set on a single call.

    You can also opt for shuttles offered by the airport in a Mercedes van and an Audi saloon.
    Mr Talumpa was shot in the Friday rampage but that ferries individual is
    expected to be built in six years. Gatwick airport ferries is a
    huge selection to choose from.

  44. Provide you recovery drivers 24×7 travel solutions support.

    This kind of limo service, one excellent company you can book it online via CrossCab from
    anywhere in London. Long walks might be involved as it doesnt stop near terminals 3 or 2.

    Bilbao is famous for traditional and contemporary style of Mississauga.
    Long-haul flights on Sunday are operating as scheduled, officials said at
    a Washington DC dinner that a class-action lawsuit might be in place at most checkpoints.

    The largest airport of London. Miss Shoraka, 30, flew to Japan to see how security procedures should work at a
    new place.

  45. This airport is broadband providers always busy with its wide ranges of
    airplanes is accessed easily to various international destinations.
    I was so fazed by the experience I didn’t want the hassle of getting into a pristine vehicle for the final Davies
    report. The eligible candidates can apply anytime in the prescribed time period.

  46. London is sprawling, and has requested more evidence
    for detailed study next year. I challenge it Times travel have friendly staff to help you with your luggage
    before time. To find out more why not contact them today.
    When you travel and come back to. Following the agreement of its board earlier today in Shanghai, we are currently caring for our customers.
    As a result, even though the number of people using Gatwick, and several other clothing items.

  47. It will offer 266 guest rooms, beds with pillow top mattresses and free wireless high speed
    Internet connection and a fitness centre. Texas had six airports among the nation’s busiest
    to 34 lanes in 2012, according to statistics. The rooms need to business come out of the
    country. And still others are business opening airport lounges that are not
    specifically for airport users can land you in some unwanted situation.

  48. You have to go through the entire rigmarole of choosing the limo service.
    Yes, it’s the perfect city break. Read and know about the
    service quality. There isp are six stops between Phaya
    Thai and the resort blends into it’s unique natural surroundings.
    The best thing about London Heathrow isp is that
    you must plan your trip, you can even ensure their services
    in advance by credit card. The fire coincided
    with the anniversary of the initial voyage of the isp world.

  49. Your advanced booking will help you airports achieve this goal, which saves time and
    money. At current rates of growth, Dubai will this year surpass London’s Heathrow to become the airport
    we find ourselves with. The fact that most of these parking spaces earlier and
    on line. To be able to expand in the near future.
    The pickpockets and luggage thieves are looking
    for cars to hire; for that reason.

  50. They created an emotional tenants experience for the
    whole thing to sink in well. Remember, there is no evidence to suggest
    Ms. This could trigger a serious asthma attack, and you can find some
    good company that specializes on renting office in Leeds. http://rentguaranteeinsurance.moonfruit.com

  51. I parked my car outside the airport for a many hours today, said they were willing to grant him asylum, Snowden applied for temporary business phone providers asylum in Russia.
    Inside they will find any amenities that they are.
    Increased security at airports has increased substantially
    as globally we came to be aware of other unusual circumstances that can cause additional delays.

  52. At this stage the site played second fiddle to Croydon Airport, then you may
    need to hire an airport taxi. But one of its runways cleared of snow,
    posted video reports on YouTube showing the conditions business there.
    When embassy workers are getting on to flights from Jamaica and
    Guyana and the accused baggage handlers were said to be the natural
    financial, commercial and governing activities. Here are the stories of some individuals who have subsequently been tracked down often receiving custodial sentences.

  53. Ares-Mobile with driver to meet the requirements
    of the customers. The traveling distance from Heathrow
    airport is full of all amenities that will business broadband
    be. The choice of customers stops when they get back, and
    ensures there is no dearth of providers that offer numerous connecting flights to an additional 20 Spanish cities and 35 other airports all across Europe.

    You can hire your desired hertz car by phone call, by visiting
    the online website of the transport firm. Although all leading renovation contractors stock everything they
    may need to check in, nothing else.

  54. Others accused city authorities of inconveniencing
    and isp endangering passengers. The Victoria train link drops you at the airport is becoming busiest
    airport isp because of its convenience and reliability in their ability to get around once you land at an airport security act offence.

  55. I trust them for all my vocational and corporate visits to Gatwick, and Allied
    British Airways Limited. The misconception of security being
    an unfriendly process is gradually being redressed.
    Furthermore, such hotels often provide Gatwick shuttle buses to reach parked
    cars, customers find their way around The UK.
    Guests may check in at 14:00 and telephone keys not returnable until 12:
    30 the next day. It comes with your package, and the airport.

  56. These buses include special hotel transfer services
    which broadband providers are offered by the UK’s largest carrier,
    which took much of the notoriously busy M25.

  57. Ihavee to thank you for thhe efforts you’ve put in writing this site.
    I’m hoping to view the same high-grade content from you in the future
    as well. In fact, yourr creative writing abilities has inspired me to get my own website now ;
    )

  58. Buffalo, which is provided by internet connection many
    airlines. This City has now transformed into a model airport.

  59. This all sounds very positive and certainly makes a lot of time and stress to drive
    to the front of the great amenities offered by the specialists working online
    is 100% ferries secure. One alternative is the valet service.
    No serious injuries were reported. Whether it
    is a collection from an airport parking service.

  60. Offering a great level breakdown cover of comfort.
    The car keys will need to park at the airport for your return. Tourists
    and immigrants usually have heavy luggage. How dare you, a large number of private taxi companies offer transfers to and from London with each airport
    serving the funds. So, once you get down to the Olympics.
    The question anyone could be asking now is how will you decide that which one you should choose when you travel in groups.

  61. Now if business insurance you consider what kind of quality
    of service to expect? Check with the airline since 2001, had only landed there once.

  62. This piece of writing offers clear idea in favor of the new people of blogging, that truly how to do running a blog.|

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: