Custom Description Page For The WCF Endpoint?

Mar 14, 2010

I am migrating an ASP.NET Web Service toward WCF. The old Web Service endpoint had a nice extensive description page generated from the comment of the underlying class exposed as a service endpoint. In particular, all available web methods were listed.

Is there a way to emulate somehow this behavior with WCF? At least, how can I customize the HTML content of the WCF endpoint?

View 1 Replies


Similar Messages:

Web Forms :: Description Box - Modify The Description Not To Be In A Straight Line

Jan 30, 2011

<asp:FormView ID="FormView1" runat="server" DataKeyNames="productnum"
DataSourceID="EDS_Product">
<ItemTemplate>
<div class="ContentHead"><%# Eval("name") %></div><br />
<table border="0">
<tr><td style="vertical-align: top;">
<img src='images/big/<%# Eval("image") %>' border="0" alt='<%# Eval("name") %>' /></td>
<td style="vertical-align: top"><%# Eval("description") %>
<br /><br /><br /></td></tr></table>
<span class="price"><b>Your Price:</b> <%# Eval("price", "{0:c}")%><br /><span class="number"><b>Number:</b> <%# Eval("number") %>
</span><br /><a href='AddToCart.aspx?productnum=<%# Eval("productnum") %>'>
<span class="ProductListItem"><b>Add To Cart<b></font></span></a>
</ItemTemplate>
</asp:FormView

this is from the product details page and the description goes in a straight line always - i want to make the description a box and have lenght of 30 characters every line -- i want to modify the description not to be in a straight line

View 3 Replies

WCF / ASMX :: Write Endpoint To Communicate With JSON From Jquery On Page?

Aug 31, 2010

i need to be able to expose information to a page, and I need to write the information in xml on my webserver which will be dynamically created from the database.

I need to use json to pass the data from the screen back to the server two way communication xms back and forth. Is it actually any good using a wcf endpoint to serve the json back to the page and use query with wcf? Is this possible?

Or is it easier to use standard pages .aspx and just do a call to a url and get the json with jquery....

We will probably want to send this information to other locations at some point in the future too....

View 1 Replies

Is It Possible To Call Aspx Page Via HTTP Endpoint In SQL Server 2008/2005

Nov 22, 2010

Is it possible to call (Post to) a Method in a ASPX (Code behind) page via HTTP endpoint in Sql server 2008/2005.

View 1 Replies

C# - Making A Description Text - Unable To Get A Description Text From The Whole Text Which Exist In Txt Field

Feb 28, 2011

I have in my database the News Table which consist of => Id, Title, txt . I need to be able to get a description text from the whole text which exist in txt Field , but without any codes like <...> , just a pure text !! how can I do this?

View 3 Replies

WCF / ASMX :: Exposing MEX Endpoint Address - WCF Test Page Shows The WSDL Address Wrongly

Apr 15, 2010

I have managed to expose the MEX endpoint of my WCF service and I can access it with the address like [URL] (example) and get the WDSL. So no problem there.

However, my WCF test page shows the address wrongly by using the server's name instead of the DNS name. And if I click on the link on the test page it won't work (can't get WSDL).

The WCF test page looks like this:

MyService Service

You have created a service.

To test this service, you will need to create a client and use it to call the service.

[URL]

The WCF service is hosted in IIS6. I would like to have a test page with the correct WSDL address so users can see the WSDL quickly in the browser just by clicking on the WSDL address.

In short: How can I change the MyServerName to inter.mycompany.com on the WCF test page? Can this be specified somewhere in the Web.config?

View 3 Replies

Forms Data Controls :: Display On Aspx Page One Image And Its Description Fetched From Database

Feb 7, 2011

i want the following in 1 div. say <div="topdiv">: i want to display on aspx page one image and its description fetched from database. i want to provide a next button at the side of it, onclick of this the next image and descriptn must be displayed without page being refreshed. i have another div (<div="divbottom"> which displays other information..

View 1 Replies

ADO.NET :: Use The Item Description Look Up Table And Store The Item Description Id In The Items Table?

Dec 31, 2010

i have the following two questions:-

1. let say i have a table for ITEMS including (item id,item description id (FK to the ITEM Description tabe), item price,etc) and have ITEM Description look up table having (item descriptionid,item description),.

so what is better to use the ITEM DESCRIPTION look up table and store the item description id in the items table

or

to directly store the item description "Not the id" in the item table.

2. I am working on an MVC web application using LINQ, now if i want to modify the SQL server tables which i have created for example modify some of the foreign key properties will the effect be directly reflected on any new inserted or deleted records or i have to create a new LINQ to SQL class?

View 3 Replies

What Does IMetadataExchange Endpoint Actually Do

Jul 5, 2010

I'm working on a web service that uses ASP.NET security model (i.e. with AspNetCompatibilityRequirements set to allowed). Like many others, I got an error saying the Anonymous access is required because the mexHttpBinding requires it and the only way to get around it is to remove the mex endpoint from each service as described here:

[URL]

I thought by removing mex endpoint I will no longer able to generate WSDL or add a reference to the service from Visual Studio but to my surprise everything still works. I quickly googled the "mex binding" but most web sites just say it's for "Metadata Exchange" without going into too much detail on what it actually does.

View 2 Replies

WCF / ASMX :: What Is The Advantage Of A Mex Endpoint

Feb 8, 2011

What is the advantage of using a Mex Endpoint over setting

[code]....

I am not able to add the service using Add Service Reference. I am not able to get the WSDL using a browser.

2. If I add the tag <serviceMetadata

httpGetEnabled="true"

and remove Mex Endpoint, I am able to query the wsdl using browser and I am still able to add a refernce using Add Service Reference.

Then, What's the specific use of Mex Endpoint.

View 2 Replies

WCF / ASMX :: Does Support Multiple EndPoint

Feb 11, 2011

Does WCF support multiple EndPoint.

View 4 Replies

WCF / ASMX :: Web Service Endpoint Is Not Seen In App.config?

Jan 4, 2010

I do not understand what is happening here. If I run this same bizApp referenced from a webpage my code finds the endpoint in either my web.config file for the webpage. I copy that same section and paste it into the New version of web page that uses a new WCF that contains this same bizApp and I get a can not find endpoint.

[code].....

View 1 Replies

WCF / ASMX :: Endpoint Address Won't Update

Dec 16, 2010

I had to move a WCF service (IIS hosted) to a new address. This service is called by a webforms web site on a different site in the same instance of IIS. I checked the WCF service is available and working by calling it directly from a browser.

I then did the following

updated the Service Reference folder in my consuming website updated the web.config servicemodel section (it was auto updated by changing the Service Reference) re-built and deployed libraries using the WCF service to the websites bin folder Stopped the consuming website in IIS and deleted files from Temporary ASP.NET Files folder Re-started IIS and deleted *ALL* files from Temporary ASP.NET files
When I browse to a page that calls the WCF service I get the error;

EndpointNotFoundException

There was no endpoint listening at <<Old endpoint address>> that could accept the message

How can I force my website to use the new WCF endpoint? Do I need to re-start the web server?

View 2 Replies

Expose WebHttpBinding EndPoint In Framework 4.0?

Oct 2, 2010

I'm trying to expose a webHttpBinding EndPoint using Framework 4.0.

<endpoint address="web" binding="webHttpBinding" contract="MyContract"/>

However, when browsing using WFC Test Client, I see nothing. If I change my Framework target to 3.5, it works fine.

Is there something different in 4.0 to get this to work?

View 2 Replies

Web Reference Endpoint URL And Configuration Question?

Feb 21, 2010

I have a project ("The Project") that references an external web service. I am then referencing that project in an ASP.Net web application ("The Web Application"). When I reference "The Project" in "The Web Application" the app.config is not copied over, which isn't a problem. Does "The Project" take care of know what endpoint to use? Can the web.config override the endpoint URL? I did a test and am not reference the eternal web service in "The Web Application" and everything seemed to work ok. I guess, can I create the same configuration section, that is in "The Project's" app.config and copy it over to the web.config file to override?

Update: I guess what I really need to find out is how to change the end point of a web service when generating the code from adding a "Web Reference". I tried adding a service reference to my code, but the wsdl is not getting loaded correclty or I am doing something wrong. Update 2.0: I forgot about the URL property of the proxy that is generated by the web reference.

View 1 Replies

Distribute Web Service As DLL And Specify Endpoint In Web.config?

Dec 28, 2010

I have a Web service currently in an ASMX file. I want to move this code into its own class library project which generates a DLL. I want to be able to drop this DLL into any Web application and have it work. However, without an ASMX file, I have no URL endpoint. How do I get around this? Essentially, I want to run a Web service without having to distribute an ASMX. I just want to distribute a DLL. Can I map the endpoint for the Web service in the web.config, or something? (I think that perhaps WCF might do this, but one look at the config for that, and it feels like the cure is worse than the disease...)

View 3 Replies

WCF / ASMX :: How To Check That Which Endpoint Is Calling WCF Service

Aug 27, 2010

How can i check that which Endpoint is calling WCF Service.

View 1 Replies

Endpoint Not Found When Attempting To Access Service Via

Oct 2, 2010

I get "Endpoint not found" when attempting to access my service via the browser at

[URL]

I get "Error: Cannot obtain Metadata from http://localhost:10093/Services/Service1.svc" when attempting to access the same address from the wcftestclient.

If I place a breakpoint in the service implementation it is hit, so I assume the svc file is setup correctly:

<%@ ServiceHost Language="C#" Debug="true"
Service="MyApp.Core.Service.Service.MyAppService,MyApp.Core.Service"
Factory="CommonServiceFactory.WebServiceHostFactory,CommonServiceFactory" %>

Here is my config:

[code]....

View 3 Replies

To Create A Custom Control That Adds Other Controls Visible To The Page Hosting My Custom ?

Oct 22, 2010

I want to create a custom control where I define several specifically named DIV sections. The code-behind logic of the custom control will perform operations on these named DIV sections. The page where the custom control is hosted needs to be able to add named controls to the DIV sections and perform operations on these named controls added to the DIV sections.

Let me explain a little further. In the custom control, I want to have code behind logic that fires the following Page Event and uses a condition to make one or another specifically named DIV section visible or not:

< _
ToolboxData("<{0}:BaseDetails runat=""server""></{0}:BaseDetails>") _
> _
Public Class BaseDetails

[code]...

how can I create a custom control which is able to generate the named DIV sections "DetailsNameDiv1" and "DetailsNameDiv2" where my custom control can check a condition and make one or the other visible. Also, I need to be able to add controls to these named DIV sections when I host the custom control and the control that I add to the named DIV section needs to let me set values of these controls from the code behind logic of the page (or usercontrol) where the custom control is being hosted (in my example, I am adding TextBox controls that I want to set the Text property from a SQL Data Reader).

View 3 Replies

C# - How To Configure Endpoint For Web Service Declared With WebService() Attribute

Oct 13, 2010

We have a C# Web Service that declares itself using attributes. The code-behind file looks like:

[WebService(Namespace = "http://the.web.service.url/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public sealed class TheWebservice : WebService
{
[WebMethod]
public SomeObject TheFunction()
...

The web services has worked for a long time now. Recently, one request resulted in an error:

The maximum string content length quota (8192) has been exceeded while reading XML data. After searching around, I found that there is a setting maxStringContentLength that can increase the meaximum size. The post says you can configure this setting in Web.config in the BasicHttpBinding section. You can then specify that BasicHttpBinding in an endpoint section. But since we declare the webservice using the WebService attribute in the code-behind file, we do not have an endpoint section.

Is there a way to specify an endpoint using a declarative attribute? Alternatively, is it possible to switch from attribute to web.config mode without breaking existing clients? Am I confusing WCF and its predecessor here?

View 1 Replies

WCF / ASMX :: Want To Use Https, Endpoint Binding Doesnt Work

Sep 3, 2010

I am very new to WCF, I have read a lot and seen several presentations about it. I can get the basicHttp endpoint to work on my server but when i wanted to use https, I found that that endpoint binding doesnt work. I think through my research that the wsHttp binding is what i need. I can get the client to work but the service gives me a few different errors when I try to call the ssl endpoint.

Currently i get the following error:

The requested service, 'https://devwcftestsite.crata.ucf.edu/services/Person.svc/Person' could not be activated. See the server's diagnostic trace logs for more information.

Below I have included the web.config for my service project which is hosted at:https://devwcftestsite.crata.ucf.edu/services the service is called:Person.svc

[Code]....

View 2 Replies

Creation Of Custom Page With Custom Tags, With Event Handling?

Mar 8, 2010

I am trying out some code which enables me in creating a page with extension .asp2

The tags included will also be custom, something like:

[code]....

I have done the necessary changes so that ASP.NET identifies the extension. I have also kept a mapping of custom tags and asp.net/html tags with myself. With this I am able to render the page on browser. But how can we do event handling(usually done by page postbacks and code) in such a scenario?

View 1 Replies

Web Forms :: Handle Custom Errors Using Custom Error Page?

May 7, 2015

I want put custom error page in my website so I wrote below code in web.config

<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" subStatusCode="-1" prefixLanguageFilePath="" path="error-404.aspx" responseMode="ExecuteURL" />
</httpErrors>

is it correct?

or I should put other code?

View 1 Replies

WCF / ASMX :: Access Error Connecting To Net.pipe Endpoint In WAS Hosting

Jul 22, 2010

I have a WCF service hosted on win 2008 server. I'm using WAS to expose a named pipe endpoint on the service and have a client website that consumes the service. When i hit the website from a remote machine i get the following error:The pipe name could not be obtained for the pipe URI: Access is denied. (5, 0x5)Now if i hit the website ON THE SERVER it's being hosted from, using localhost in the url, it works fine. Clearly there is something i don't understand about what the named pipe endpoint is looking for. I tried running a trace from my service, but there is no output because the call doesn't even get to the service.

View 1 Replies

Getting Redirection To Custom Error Page Using Custom Errors

Mar 24, 2010

Here's my Application_OnError event sink in global.asax.vb:

Sub Application_OnError(ByVal sender As Object, ByVal e As EventArgs)
Dim innerMostException As Exception = getInnerMostException(Me.Context.Error)
If TypeOf innerMostException Is AccessDeniedException Then
Security.LogAccessDeniedOccurrence(DirectCast(innerMostException, AccessDeniedException))
Dim fourOhThree As Integer = DirectCast(HttpStatusCode.Forbidden, Integer)
Throw New HttpException(fourOhThree, innerMostException.Message, innerMostException)
End If
End Sub

You'll see that if we've got an innermost Exception of type AccessDeniedException we throw a new HTTPExcpetion with a status code of 403 AKA 'forbidden'

Here's the relevant web.config entry:

<customErrors defaultRedirect="~/Application/ServerError.aspx" mode="On">
<error statusCode="403" redirect="~/Secure/AccessDenied.aspx" />
</customErrors>

So what we're expecting is a redirect to the AccessDenied.aspx page. What we get is a redirect to the ServerError.aspx page.

We've also tried this:

Sub Application_OnError(ByVal sender As Object, ByVal e As EventArgs)
Dim innerMostException As Exception = getInnerMostException(Me.Context.Error)
If TypeOf innerMostException Is AccessDeniedException Then
Security.LogAccessDeniedOccurrence(DirectCast(innerMostException, AccessDeniedException))
Context.Response.StatusCode = DirectCast(HttpStatusCode.Forbidden, Integer)
End If
End Sub

Which unsuprisingly doesn't work either.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved