473,854 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generating Client Proxy from a WCF Service hosted by a Windows Service

1 New Member
I am trying to generate a client proxy from a WCF service library. I am using VS2005, .NET 3.0 on a Windows XP Pro workstation. The WCF service is hosted in a windows service. When I run the windows service as a console application, there are no problems. I can run svcutil.exe against that address and it generates the proxy. However, when I compile that service in release mode, and install it on the workstation using InstallUtil, I get an error "Error: Cannot obtain Metadata from net.tcp://localhost:9090/Service2 ". These are the settings I am using the app.config for the service

<system.service Model>
<service behaviorConfigu ration="service Behaviour" name="WCFServic eLibrary3.servi ce2">
<baseAddresse s>
<add baseAddress="ne t.tcp://localhost:9090/Service_2" />
<endpoint binding="mexTcp Binding" name="TCP_Mex" contract="IMeta dataExchange" />
<endpoint address="mex" binding="custom Binding" bindingConfigur ation="TestBind ing2" name="TestBindi ng2" contract="WCFSe rviceLibrary3.I Service2" behaviorConfigu ration="Test2" />

<endpointBehavi ors>
<behavior name="Test2">
<dataContractSe rializer maxItemsInObjec tGraph="2147483 647" />
</endpointBehavio rs>
<serviceBehavio rs>
<behavior name="serviceBe haviour">
<serviceDebug includeExceptio nDetailInFaults ="true" />
<serviceMetadat a />
<!--<serviceMetadat a httpGetEnabled= "true" />-->
<dataContractSe rializer maxItemsInObjec tGraph="2147483 647" />
</serviceBehavior s>

<customBindin g>
<binding name="TestBindi ng2" inactivityTimeo ut = "00:30:00" openTimeout="00 :30:00"
receiveTimeout= "00:30:00"
sendTimeout="00 :30:00">
<binaryMessageE ncoding />
<tcpTransport transferMode="S treamedResponse " />


</system.serviceM odel>
Attached Files
File Type: zip WCFServiceLibrary3.zip (82.1 KB, 80 views)
Mar 28 '09 #1
0 5726

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Nate | last post by:
We are attempting to make a request to a web service (we will refer to it as XXXServices) hosted on a Web Logic server from a C# SOAP client. The server responds with a 401 Unauthorized error (that appears in plain text), and causes the client to crash. This C# code has been deployed both as an ASP.NET application and a WinForms app, each of which produced the same result. Further, moving the clients from a Windows XP machine to Windows...
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive types and of more elaborate classes implementing IXmlSerializable. The resulting WSDL file for the webservice has two separate schemas in its <types> sections, and the client proxy (generated with wsdl.exe) is missing the definitions of the...
by: Roland Riess | last post by:
Hi all, as an absolute beginner with all web matters I'm sure there are still many things that I do net understand yet - so please point me to the right direction whereever you feel that I'm wrong. I developped a web service (VS 2003, ASP.NET1.1, IIS 5.0 on Windows 2000) that does some database sync actions and which is called trough a WLAN connection from a pocket pc (VS 2003, C#). On my development pc everything is ok so far, I can...
by: deeelpea | last post by:
My Web Service is built in VS 2005 (.NET 2.0), and it runs on my workstation. It also implements WSE 3.0, but I am not running it as self-hosted I am hosting it through IIS. On the same switch, I have a lap top that runs a client application built in VS 2003 (.NET 1.1) that calls my Web Service. The client is able to connect and make calls to my Web Service with no problems. However, I have a different workstation on the same switch...
by: Albertas | last post by:
Hello, Here is the situation: I had a Web Service that ran on IIS. Proxy for client application was generated using wsdl.exe. Now I replaced WS with ..NET Framework 3.0 so that I can host it on Windows Forms application. The problem is that client application has to be written in .NET Framework 2.0. And proxy class that wsdl.exe generates makes methods with wrong arguments. My question is: What I am doing wrong? And how I can fix that?
by: khubieb | last post by:
Situation: We have to connect to a 3rd party XML Web Service outside our LAN by adding a WCF Service Reference to a simple console application Problem: When attempting to invoke any of the generated client class methods, we recieve the following error: "The remote server returned an unexpected response: (407) Proxy Authentication Required ( The ISA
by: =?iso-8859-1?Q?Norbert_P=FCrringer?= | last post by:
Hello! Does anyone know how to create the proxy client by reading out the metadata of an IIS hosted WCF service? An IIS hosted WCF service does not have the setting HttpGetUrl, therefore I cannot specify the location of the metadata. So how can I create the proxy client based on IIS hosted WCF services? Regards, Robert
by: C Downey | last post by:
I have created a WCF Service hosted in IIS. In my web.config it has its endpoint configured like so: <service behaviorConfiguration="JobServiceConfig" name="MyTest.JobService"> <endpoint address="" binding="basicHttpBinding" contract="MyTest.JobService"/> </service> I have a class library that will act as my client. For now, my class library is named JobServiceClient It has a service reference to my service...
by: =?Utf-8?B?RWQgU2huZWtlbmRvcmY=?= | last post by:
I am trying to create a WCF host/client combination using mixed security with UserName authentication. Everything looks good on the host side, but when I go to generate the client proxy using the VS 2005 "Add Service Reference" wizard it generates a proxy class that, while correct in all respects for my service, doesn't seem to have any knowledge of security credentials. I'm looking to be able to do something like:
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.