Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional WCF 4: Windows Communication Foundation with .NET 4
This is the forum to discuss the Wrox book Professional WCF 4: Windows Communication Foundation with .NET 4 by Pablo Cibraro, Kurt Claeys, Fabio Cozzolino, Johann Grabner; ISBN: 978-0-470-56314-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WCF 4: Windows Communication Foundation with .NET 4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 10th, 2010, 12:59 PM
Registered User
 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Unable to generate the wsdl via svcutil

Hi,

Page 37 have us run the svcutil to generate the 3 files (tempuri.org.wsdl, temputi.org.xsd, and the schema for simple .net types).

I tried running the utility but got me an error saying it cannot generate the wsdl as I have no access to c:\tempuri.org.wsdl...

I tried using the out parameter to tell it to generated on a new folder I created and this time it said Warning: Cannot generate XmlSerializer for assembly x. No service contract in the assembly has an operation with XmlSerializerOperation Behavior, which is true given that all we have written so far is

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Wrox.CarRentalService.Contracts
{
[ServiceContract()]
public interface ICarRentalService
{
[OperationContract]
double CalculatePrice(DateTime pickupDate, DateTime returnDate,
string pickupLocation, string vehiclePreference);
}
}


I am indeed new to WCF!

Any ideas as to how I go about using the svcutil? I even copied it directly to the c drive as its location plus the location of the .dll I created are long names.

I appreciate any feedback as I like to understand as I go along, but understand how it works and will continue with the reading for now.

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old October 10th, 2010, 04:03 PM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi ptiiCarlos,

I've tried exactly the same command (svcutil Wrox.CarRentalService.Contracts.dll) and it works. Are you using additional parameters like /t:XmlSerializer? Post the complete command line are you using.
Try to copy the .dll file in a temp folder, like c:\Temp, and then run the command from this folder.

HTH
Fabio
Reply With Quote
The Following User Says Thank You to Fabio.Cozzolino For This Useful Post:
ptiiCarlos (October 11th, 2010)
  #3 (permalink)  
Old October 11th, 2010, 10:19 AM
Registered User
 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default It worked! Thanks.

Hi Fabio,

Indeed, when I copied the SvcUtil.exe and the .dll to a temp folder, changed my directory to it, and ran the utility from there inside the dos window, it created the three files as the book says!

Thank you so much for such a quick response, I really appreciate it!
Carlos
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSD to WSDL sIldefonso XSLT 1 August 6th, 2007 08:57 AM
Unable to generate a temporary class (result=1). e raolade ASP.NET 1.0 and 1.1 Professional 3 April 2nd, 2007 08:46 AM
Unable to generate a temporary class (result=1) phuongdv ASP.NET 1.0 and 1.1 Basics 3 January 23rd, 2007 09:29 AM
Unable to generate a temporary class (result=1). Ghistos BOOK: ASP.NET Website Programming Problem-Design-Solution 8 March 11th, 2004 10:07 AM
WSDL Reader: Loading of the WSDL file failed. Anil .NET Web Services 0 January 23rd, 2004 02:59 PM



All times are GMT -4. The time now is 09:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.