473,408 Members | 2,450 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

svcutil with WCF net.tcp endpoint

Hi, I'm tryin to run my first WCF services through tcp/ip and I'm
unable to run svcutil against my service.
I'm hosting my service inside a Windows Service successfully but do
not succeed in downloading metadata.

Config of my windows service is the following one.

<system.serviceModel>
<!-- Services -->
<services>
<service name="HOMS.Services.Security.Classes.FunctionTypeS ervice"
behaviorConfiguration="metadataSupport">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:1303/FunctionTypeService"/>
</baseAddresses>
</host>
<endpoint
contract="HOMS.Services.Security.Interfaces.IFunct ionTypeService"
binding="netTcpBinding"
address=""/>
<endpoint contract
="HOMS.Services.Security.Interfaces.IFunctionTypeS ervice"
binding="mexTcpBinding"
address="tcpmex"/>
</service>
</services >
<!-- Behaviors -->
<behaviors>
<serviceBehaviors>
<behavior name="metadataSupport">
<serviceMetadata />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>

I'm not sure of my config syntax as the svcutil one.
Can someone help me regarding this point ? provide me a sample svcutil
syntax and/or correct my config ?

Thks for your help.

Mar 20 '07 #1
2 11270
Franck,

You have to add the endpoint for the IMetadataExchange interface. You
have the behavior, but it works in conjunction with the endpoint
declaration.

Once you have that, you can then use svcutil and point to that endpoint
to generate your proxies.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Franck" <we**********@gmail.comwrote in message
news:11**********************@p15g2000hsd.googlegr oups.com...
Hi, I'm tryin to run my first WCF services through tcp/ip and I'm
unable to run svcutil against my service.
I'm hosting my service inside a Windows Service successfully but do
not succeed in downloading metadata.

Config of my windows service is the following one.

<system.serviceModel>
<!-- Services -->
<services>
<service name="HOMS.Services.Security.Classes.FunctionTypeS ervice"
behaviorConfiguration="metadataSupport">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:1303/FunctionTypeService"/>
</baseAddresses>
</host>
<endpoint
contract="HOMS.Services.Security.Interfaces.IFunct ionTypeService"
binding="netTcpBinding"
address=""/>
<endpoint contract
="HOMS.Services.Security.Interfaces.IFunctionTypeS ervice"
binding="mexTcpBinding"
address="tcpmex"/>
</service>
</services >
<!-- Behaviors -->
<behaviors>
<serviceBehaviors>
<behavior name="metadataSupport">
<serviceMetadata />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>

I'm not sure of my config syntax as the svcutil one.
Can someone help me regarding this point ? provide me a sample svcutil
syntax and/or correct my config ?

Thks for your help.

Mar 20 '07 #2
Works !
Wonderful !
Thks for help !! ;)

Mar 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy | last post by:
If I use Visual Studio.Net 2003 to generate "web references" for clients using either sproxy.exe (for C++) client or wsdl.exe (for C#) clients, the web service endpoint gets "baked" into the...
1
by: mirandacascade | last post by:
Operating system: Win XP Is it possible that the endpoint url of: "http://66.28.98.121:9090/soap" that is provided for the SOAP example of calling GetQuote has changed or is no longer in...
1
by: adacai | last post by:
I'm now trying to use WCF for our SOA archecture, but I found the svcutil generated proxy a bit confused. Take the following code public interface ICatalog { Hashtable GetItems();
0
by: ronscottlangham | last post by:
I have a WCF Web Service that I develop using the ASP.NET Development Server in Visual Studio. In release, the web service will support both HTTP and HTTPS. Initially I had only HTTP configured in...
0
by: StanB | last post by:
If I define Order class in WCF data contract http://OrderEntry)] public class Order { // ... } and use svcutil to generate a proxy class specifying namespace
0
by: rkprasad | last post by:
I am able to create BASIC-CLEAR-INTEGRATED sql http endpoint and consume it on a LAN. But i am not able to consume the created endpoint on inter domain network. If i create endpoint on a server...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
8
by: Frank Hauptlorenz | last post by:
Hello out there, I changed an existing and good working webservice from an wsHttpBinding to an NetTcpBinding. This is working (after trying some time) and has real a better performance! But...
5
by: Max2006 | last post by:
Hi, I am trying to limit my wcf service endpoint to response to only given windows user or group. How can I do that? Is there any way to configure that in the .config file? Thank you, Max
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.