473,320 Members | 1,832 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,320 software developers and data experts.

WCF Retrieving Metadata Issue

Hello,

I've done some research prior to posting this, but I can't seem to
resolve an issue when I try to add a Service Reference to my
application. I can successfully add a reference for the "GoalService",
but nothing I try allows me to add one for the ComboService. Is there
something I'm missing? Here is my config file:

<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="metadataSupport">
<serviceMetadata />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="metadataSupport"
name="ComboService">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8080/ComboService"/>
</baseAddresses>
</host>
<endpoint address=""
binding="netTcpBinding"
contract="IComboService" />
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
</service>
<service behaviorConfiguration="metadataSupport"
name="GoalService">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8080/GoalService"/>
</baseAddresses>
</host>
<endpoint address=""
binding="netTcpBinding"
contract="IGoalService" />
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>

Mar 31 '07 #1
2 2583
I use the Svcutil.exe - ServiceModel Metadata Utility Tool against my
metadata files to build up a code file.
On the other hand why so complex rather have a simple file that will
be easier to go through like the MS Example http://msdn2.microsoft.com/en-us/library/ms735109.aspx
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ISampleService"
closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32"
maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName"
algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8080/SampleService"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_ISampleServ ice"
contract="ISampleService"
name="BasicHttpBinding_ISampleService" />
</client>
</system.serviceModel>
</configuration>
for more in formation goto http://www.auratius.co.za

Regards

auratius

Mar 31 '07 #2
Thanks for the feedback. I started off with a file generated using
svcutil.exe, and then modified it by hand. However, I found the issue
that is not related to the config file. My object had a property that
was not marked with the datamember contract, so I'm assuming it was
not being serialized properly. Once I found this, I was able to add a
service reference successfully. Thanks again for the help.

Apr 1 '07 #3

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

Similar topics

9
by: Vince C. | last post by:
Hi. This is a feature that is really going on my nerves as I've been writing SOAP Web services using ASP and SOAP toolkit 3.0. My web services ASP scripts send XML data to the client...
1
by: Brett Selleck | last post by:
I would like to start collecting Metadata on my XML schemas. I have searched the web for a method of automatically extracting Metadata from an XSD file and have come up empty handed. Basically what...
2
by: Shiva | last post by:
Hi, Is it possible to get metadata (i.e. descriptions of tables etc.) in sql-server? In Oracle you can retrieve this information with tables like all_objects, user_tables, user_views etc. For...
2
by: Tomas Vera | last post by:
Hello All (This is being cross-posted to the C++ group), I've started receiving the subject message during a compile of a C++ based interface module used in my C# based WebApp. This module...
3
by: Lowell | last post by:
Windows XP SP2 + Symantec AV + VS 2003 with .NET Framework 1.1 IIS won't load or run existing ASP.NET applications and VS can't create or load web projects (HTTP/1.1 500 Server Error). Event...
2
by: EP | last post by:
I'm looking for a method by which to access Windows files metadata and have not been able to find anything in the standard modules or via Google - what is the standard approach? Shamefully I...
1
by: Chris L. | last post by:
Hi, I'm trying to set up a generic mechanism that would allow the following: 1: Run <this_procedure> 2: After that, run <this_review_procedure> 3: If it returns non-zero, open <this_form> ...
2
by: =?Utf-8?B?U2FuZHBvaW50R3V5?= | last post by:
Not sure if this is a vs.net question, but since its happening in Im looking at c# code ... I often double-click on a method to highlight it, right click, and choose "Go To Definition" to view...
1
by: Tim Kelley | last post by:
I need to read the metadata of an image, display it on the screen and allow the user to change it and then re-write the metadata back into the image. The issue I am having is if I try to rename or...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.