Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2004

Tip: Looking for answers? Try searching our database.

creating ASP .NET webservice from WSDL file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Edward - 12 Jun 2004 22:28 GMT
hello dear Group!

I need very much to create an ASP .NET webservice out of
a WSDL file - it is enough if I would have just empty
skeleton webservice that would be working in .NET!!!!

input: WSDL file of the webservice (quite complicated,
with complex types in return)

output: webservice in ASP .NET that works - i.e. method
calls are returning something or noething - I can fill
them with functionality.

is there a method to do it, some trick? some wizard? some
helper program?

yours sincerely, Edward.
Sami Vaaraniemi - 13 Jun 2004 09:56 GMT
> hello dear Group!
>
[quoted text clipped - 13 lines]
>
> yours sincerely, Edward.

Hi,

Try wsdl.exe /server <path or URL to WSDL file>. This will generate code for
an abstract web service class with web methods that correspond to the WSDL.
You'll need to derive a class from this abstract class and implement the
body for the abstract methods yourself.

Regards,
Sami
Dino Chiesa [Microsoft] - 16 Jun 2004 01:09 GMT
what I would do is convert the generated abstract class to a concrete class
(by removing "abstract" keyword) and then fill in the implementation.  This
is because the asp.net webservices runtime depends on attributes that are
applied to classes to modify its behavior in serialization and so on.   The
generated abstract class will have all the right attributes.  But a derived
class will not have those attributes, and the asp.net runtime doesn't
inspect the ancestors to sniff for the attributes.   So if you inherit from
the generated abstract you must also cut-n-paste the generated attributes.
At this point it is probably easier to just convert it to concrete.

Be careful about re-generating though - you could lose your changes if you
are not careful.

-Dino

> > hello dear Group!
> >
[quoted text clipped - 23 lines]
> Regards,
> Sami

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.