.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Use wsdl in C#

Posted By: Maxime     Posted Date: June 23, 2011    Points:5   Category :C#
Hello,

I try to use a wsdl in c# for test. My wsdl use php action.

When i call wsdl in c#, he return empty value...

I use wsdl.exe for generate C# class from wsdl file.

My class :
http://pastebin.com/3JQjvLMu

Program.cs :
http://pastebin.com/JFbbK6Dd

And the url of wsdl file :
http://api.sms-pas-cher.com/api-dtw-1.0.wsdl

Thanks for your help and sorry for my bad english.

Maxime

Responses
Author: Gowthammanju             
Posted Date: June 24, 2011     Points: 20   

Hi,

try these link as

http://www.dotnetjunkies.com/Tutorial/4D13CEFA-D0FD-44BE-8749-8D17B5757564.dcik (using WSDL.exe how to consume in ASP.NET)

and below will show how to consume WS using VS.NET.

http://www.xefteri.com/articles/show.cfm?id=15

http://www.w3coder.com/ws/WSGWBook/WebServGW-03.xml

Hope one of this will helps you!

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: June 24, 2011     Points: 20   

Microsoft Visual Studio provides an utility that is able to get as input a WSDL file and generate a proxy class for the described service. It will generate a so-called webservice proxy class (client). The tool is wsdl.exe and is available in the visual studio folder\SDK\v2.0\Bin. This is a command line tool and shortly you should executed by passing some arguments:

wsdl /? - gives you a description of the accepted arguments.

wsdl /language:CS /out:ServiceProxyClass.cs ReceivedWsdlFile.wsdl - will generate a c# proxy class in the ServiceProxyClass.cs. You should specify the proper path for the wsdl and output file.

You should attach this file to your project and use the service client class generated.

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend