Solved

Web Soap Call  ASP.Net equivelent to PHP or Cold Fusion

Posted on 2014-12-26
3
227 Views
Last Modified: 2016-02-16
Could someone provide me with the equivalent call in ASP.Net as  the following SOAP calls in Cold Fusion and PHP

EXAMPLES    :
              COLDFUSION :
              <cfinvoke webservice="http://webservices.vortexauction.com/functions.cfc?wsdl" method="AuctionAddBidder" returnvariable="result">
                  <cfinvokeargument name="Auctioneer_ID" value="0" />
                  <cfinvokeargument name="Access_Key" value="..." />
                  <cfinvokeargument name="Auction_ID" value="0" />
                  <cfinvokeargument name="External_Auction_ID" value="..." />
                  <cfinvokeargument name="Bidder_ID" value="0" />
                  <cfinvokeargument name="External_Bidder_ID" value="..." />
                  <cfinvokeargument name="Paddle_Number" value="..." />
                  <cfinvokeargument name="Username" value="..." />
                  <cfinvokeargument name="Password" value="..." />
              </cfinvoke>
              <cfdump var=#result# />
             
              PHP :
              class AuctionAddBidder {
                  function AuctionAddBidder($Auctioneer_ID, $Access_Key, $Auction_ID, $External_Auction_ID, $Bidder_ID, $External_Bidder_ID, $Paddle_Number, $Username, $Password)
                  {
                      $this->Auctioneer_ID = $Auctioneer_ID;
                      $this->Access_Key = $Access_Key;
                      $this->Auction_ID = $Auction_ID;
                      $this->External_Auction_ID = $External_Auction_ID;
                      $this->Bidder_ID = $Bidder_ID;
                      $this->External_Bidder_ID = $External_Bidder_ID;
                      $this->Paddle_Number = $Paddle_Number;
                      $this->Username = $Username;
                      $this->Password = $Password;
                  }
              }
              $soapClient = new SoapClient("http://webservices.vortexauction.com/functions.cfc?wsdl");
              $params = new AuctionAddBidder(0, "...", 0, "...", 0, "...", "...", "...", "...");    
              $result = $soapClient->AuctionAddBidder($params);
              var_dump($result);


I would like too simulate these calls in ASP.Net either in Visual Basic or C#
0
Comment
Question by:baeriali
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
Comment Utility
When you add a web reference with Visual Studio, it generates a proxy class that you can use to make the calls to the web service.  You would just need to create an instance of the proxy class, and then call the method with the appropriate values.
0
 

Author Comment

by:baeriali
Comment Utility
At this point I will have to give the points to Bob Learned...

Although I did not get a super satisfactory response he did point me in the right direction and I would like to share further links I discovered trying to address this issue posted.

Web Service in C#
http://www.c-sharpcorner.com/UploadFile/00a8b7/web-service/

This was very useful in figuring out how to actually consume the Web Service once the Web Reference was  set up as
Bob Learned had suggested.

Another useful link was how to set up the Web Reference in Visual Studio 2010 .Net
http://www.c-sharpcorner.com/uploadfile/anavijai/add-web-reference-in-visual-studio-2010/
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now