Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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!
 
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
The Following User Says Thank You to Fabio.Cozzolino For This Useful Post:
ptiiCarlos (October 11th, 2010)
 
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.