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 / April 2008

Tip: Looking for answers? Try searching our database.

Generate interface from wsdl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Bradley - 02 Apr 2008 09:21 GMT
My apologies first of all for cross posting.  In my ignorance I posted
this in the .net remoting group before checking on the existence of this
group.

I have to write an application that will interact with a Web service
exposed by a partner organisation.  Unfortunately the Web service will
not be available until late summer: too late for us to develop a client.

Ideally, therefore, I'd like to develop a client from the wsdl, which is
available.  For your information, I've posted to wsdl files on my
personal Web site:

http://www.peredur.uklinux.net/slcxsd/HEICourseDBWebService.wsdl
http://www.peredur.uklinux.net/slcxsd/HEICourseDatabaseMessages.wsdl

As you will see, the first file imports the second.

In order to get something to work with, I have tried to construct an
interface for the Web service using the wsdl.exe utility:

C:\XmlProjects\SlcDatabaase>wsdl.exe /serverinterface
heicoursedbwebservice.wsdl

This fails with the following message:

Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Cannot find definition for
http://www.slc.co.uk/course/messages/1.0:CourseDatabaseServicePortType.
 Service Description with namespace
http://www.slc.co.uk/course/messages/1.0 is missing.
Parameter name: name

Can anyone see where I'm going wrong?

Many thanks

Peter Bradley
John Saunders [MVP] - 02 Apr 2008 21:27 GMT
...
> I have to write an application that will interact with a Web service
> exposed by a partner organisation.  Unfortunately the Web service will not
> be available until late summer: too late for us to develop a client.

...
> http://www.peredur.uklinux.net/slcxsd/HEICourseDBWebService.wsdl
> http://www.peredur.uklinux.net/slcxsd/HEICourseDatabaseMessages.wsdl
>
> As you will see, the first file imports the second.

/HEICourseDatabaseSchema.xsd appears to be missing.

Signature

--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Peter Bradley - 03 Apr 2008 08:21 GMT
> /HEICourseDatabaseSchema.xsd appears to be missing.

Apologies.  The schema files are all there now.

They were all present in the same folder when I tried to run wsdl.exe
against them on my local machine, so their lack is not the reason for
the failure I was getting.

Apologies for the incomplete info, and thanks for looking at it.

Cheers

Peter
John Saunders [MVP] - 03 Apr 2008 13:18 GMT
>> /HEICourseDatabaseSchema.xsd appears to be missing.
>
[quoted text clipped - 9 lines]
>
> Peter

I just got this to work using WSDL /serverInterface and by specifying the
URL on the command line. Try it with the URL instead of with a file path.
Signature

--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Peter Bradley - 03 Apr 2008 09:14 GMT
> /HEICourseDatabaseSchema.xsd appears to be missing.

I realised from this response that if I put all the files up on my Web
server (.wsdl and .xsd) I could create a Web reference to it in VS and
let VS do all the work for me.

This worked fine.  The reference.cs file created with the Web reference
is all I need.

Thanks for the help.

Peter

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.