WCF / ASMX :: Dataservice Query With Self Reference?

Dec 21, 2010

I have a WCF Dataservice which i am comsuming for Dynamic Data. My entity where i am facing problem looks like this

[Code]....

Now i want to query all the children who has the father with Id=14. The way i will write a linq query will be

[Code]....

where query is of type DataServiceQuery sent from the UI.

However, above query is generating the URI as [URL] instead of [URL]

If i manuall add a filter AddQueryOption("$filter", "father/Id eq 14"); It works fine. But problem is i just have to extend the query in my method, not replace. if there is already a filter added this addqueyoption fails.

View 1 Replies


Similar Messages:

WCF / ASMX :: Call HTTPS Web Reference Through Another Web Reference - An Unhandled Exception Of Type Error?

Aug 6, 2010

I am trying to call web reference "A" in an application.

The web reference "A" will then call a function in another web reference "B" through HTTPS connection (require certificate).

Then I keep getting the following error:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll

View 3 Replies

Project Setup For An ADO.NET/WCF DataService?

Apr 3, 2010

I'd like to implement a ADO.NET/WCF DataService and I am wondering what's the best way to setup a project in VS2008 SP1 for this purpose.

Currently I have an ASP.NET web application project (not of "WebSite" project type). The data access layer is an Entity model (EF version 1) with SQL Server database. I have the Entity Model in a separate DLL project and the web application project references to this assembly for all data accesses.

The ADO.NET/WCF DataService needs to communicate with the Entity model/database as well. It has to be hosted on the same web server (IIS 7.5) together with the web application.

Since the DataService is not directly related to that specific web application (though it will provide and modify data from/in the same database the web application uses as well) my basic idea was to separate the DataService in its own new project (which also references the Entity Model DLL).

Now I have seen that there is no project type "ADO.NET/WCF DataService" in VS2008 SP1. It seems only possible to add a DataService as an element to other existing projects, for instance Web Application projects.

Why isn't there a separate DataService project type? Does this mean now that I have to add the DataService as an element to my Web Application project? Or shall I create a new Web Application project and add a DataService to it? (I could delete the pregenerated default.aspx since I do not need any web pages in this project.)

View 2 Replies

Configuration :: Using A WCF Dataservice As A Base For MembershipProvider And Web.config?

Sep 23, 2010

I was wondering if it is possible to use a WCF Dataservice as the MemberShipProvider for a forms auth application. I have written code for a provider (below), but I do not know what to do as far as a connection string, or any other web.config properties.

Here is the code for my provider, anytime it says Odbc that is because I based this off of the custom Odbc provider on the msdn site. The only ACTUAL references to any odbc connection are in the comments:

[Code]....

View 1 Replies

WCF / ASMX :: Web Reference Not Updating?

Mar 11, 2011

I have a webservice on my local pc and I am adding a refernce to it on a cleint application. It picks up the reference but when I change something on the web service and then update the reference on the client it doesn't reflect thae change.

To explain it further, I have an svc file on the server which points to a class with methods in it. I add a web efernce to this svc file on the clieint (I select "add reference-and enter the localhost address in the box for the url (http://localhost/MyService/Service/MY_SERVICE.svc).

It displays it and when I click on http://localhost/MyService/Service/MY_SERVICE.svc?wsdl it shows me the methods within the class. That is fine but if I add or remove data members in one of those methods, it doesn't reflect the cahnges when I update the reference on the client.

I can tell because if I look at the Reference.cs file that is automatically generated client-side, it shows the method but not the new data members. Instead it just shows an int and a bool passed in as parameters

If I add a new method to the class the web service is referencing, these changes are reflected client-side but if I change properties of the method they are not.

View 1 Replies

WCF / ASMX :: Add Web Service Reference From Behind Proxy?

Jan 12, 2011

I want to add web service reference but we are using proxy. Is there a way to bypass proxy and add web service reference?

View 1 Replies

WCF / ASMX :: Service Reference Not Being Updated?

Apr 13, 2010

I have a UI that communicates with a service. I made some changes to the service- added some code and a property in the Interface associated with the service. After I made the changes, I updated the service reference in my UI and I couldn't access my newly added property. I also tried deleting the reference and adding in back again, it still doesn't work. I get the following error:

xxxxxxx(filename) does not contain a definition for xxxx(propertyname) and no extension method accepting a first arguement of type xxxxx could be found(are you missing a using directive or an assembly reference?)

When I look in the Reference.cs file, I don't see the newly added property in it.

View 5 Replies

WCF / ASMX :: Target URL Changes When Creating Web Reference?

Dec 6, 2010

Something odd has started to happen when I create a web reference in VS2005 (the web service is on a network server). In the wizard I navigate to the correct url, but when the reference is created, the web.config key value has the machine name rather than the alias name I selected in the wizard. This causes a problem because of an SSL cert name mismatch.The network and server guys think I've done something in VS to cause this behavior while I believe something has changed in the environment.

Some Background: IIS is running in a cluster rather than a Farm configuration, and there is some failover mechanism in place. The server guys tell me that the key name value in the web.config file is the name of the active node in the cluster.

View 2 Replies

WCF / ASMX :: Using More Than One Webservice Reference In One Solution?

Jul 20, 2010

I have two webservices that affect the same system (one webservice points to the development environment and the other points to the production environment). There's any method to configure my application to change the webservice that I am working with, without needing to change the namespace used in my classes? I use an enum that's defined inside theReference.cs file of the webservice, so in any place that I need to use a call to that webservice I need to include it's namespace, taking in consideration that the enum type is used as argument for all function calls of the webservice.

View 2 Replies

WCF / ASMX ::Library As Normal DLL Reference?

Oct 26, 2010

i was wondering if it was possible to:create a new WCF Service Library project build the project and reference the dll in a web application,then consume the WCF service from the web application based on that basic dll reference

View 1 Replies

Reference A Row From One In Second Query?

Oct 20, 2010

I have two queries

Dim query1 as String = "Select * from openquery (devbook, 'SELECT start_date FROM bookings WHERE investor = ''00000'' ')"

Dim FlightQuery as String = "Select * from openquery (devbook, 'SELECT price FROM flight_prices WHERE dep_date = start_date ')"

Where it says dep_date = start_date I need to grab the start_date from the first query and put it into my 2nd query.

View 1 Replies

WCF / ASMX :: Change Web Service Reference At Run Time?

Nov 12, 2010

I have web project and class projects. one of the Class project has web reference. and i am consuming it in web project.Question: can I change class projects web reference url depending on environment DEV, Release, Test?Question: While in runtime why does not web reference's url take value from app.config?(it is taking value from Settings.settings.)

View 1 Replies

C# - How To Get A Reference To The Page Object In An Asmx It Calls

Feb 13, 2010

I have a page that calls on an asmx within the project (for some ajax stuff). Within that asmx I'm calculating a value and returning it to be output to the screen.

However I need to do a recalculation that includes summing this value with a few others. The function that performs the calculation is in a UserControl on the page.

How do I get a reference to the page object so I can use FindControl to get an instance of the user control so I can call that calcuation function?

View 2 Replies

Unable To Reference Webservice (.asmx) In Project

Jan 19, 2011

In my current project, I have a webservice file called MyServices.asmx. This webservice I want to reference in my Default.aspx.cs file.

My Code:

MyServices newService = new MyServices();
newService.addUser(txFirstName.Text, txLastName.Text, txtEmail.Text,
txtUserName.Text, txtPassword.Text, txtBalance.Text);

But when I refer to that webservice (as shown below), I get error saying: "The type or namespace name 'MyServices' could not be found (are you missing a using directive or an assembly reference?)"

What should I do to correct this error?

Current Solution of Adding Service Reference still gives me that error.

View 3 Replies

WCF / ASMX :: Serialization - Can't See Service Reference In Code

Jan 19, 2011

Thing is, when my service is providing result of type string my client .aspx page is working fine and it gives reference in my code. But now I changed my service to provide custom data type and I can't see service reference in my code, intellisense doesn't offer it at all. What am I missing here? WCFTestClient.exe is giving good results but I can't create my own in VS 2008

View 1 Replies

WCF / ASMX :: Dynamic Add Service Reference In Vs2010

Mar 22, 2011

I have created WCF Application in vs2010 and using it in window application . i have added WCF service reference using "Add Web service Reference" from visual stuio. i want to do it by programming.

View 1 Replies

WCF / ASMX :: Getting Error On Adding Service Reference?

Aug 25, 2010

I am getting this error while loading(adding) it into service References (web client)

The type 'WcfTrial2.Calculation', provided as the Service attribute value in the ServiceHost directive could not be found.

How to resolve it?

View 1 Replies

WCF / ASMX :: Trying To Add A Web Reference To A Webservice That Is Apparently Written In Php?

Jul 23, 2010

I am trying to add a web reference to a webservice that is apparently written in php. The problem is that it is causing the following error:-

Custom tool error: Unable to import WebService/Schema. Cannot find definition for

http://www.agenericservicename.com/ADS:ADSBinding. Service Description with namespace
http://www.agenericservicename.com/ADS is missing.

The developers at the other end are telling me that .net has problems connecting to non-.net services in this way, but I was under the impression that a webservice was a webservice regardless of the technology used to build it.What is going on?

View 5 Replies

WCF / ASMX :: Service Reference On Client Side?

Dec 15, 2010

I am having a strange issue in my C# Console Application:

Name Space: WcfConsoleApp
Main Class: Program.cs
Name Space: WcfConsoleApp.ServiceReference
this namespace contains the WCF service reference

After building the project, the Program.exe avaliable in Debug folder is executing fine as expected.But when i move the exe to Client, where i need to actually run this exe, it works fine up to the line where i am referencing the Service, the line is:

WcfConsoleApp.ServiceReference.ServiceClient service = new WcfConsoleApp.ServiceReference.ServiceClient();

the consoel app crashes on the client machine at this line. (i know this because before this line, i display some mesage on the console)the same .exe and works fine at my development machine.I am sure it has to do some thing with reference path, i think the program is not getting to the path where service reference is avaliable. I have copied the full project folder as it is to the client, but still its is not working.

View 4 Replies

WCF / ASMX :: Creating A Proxy Class Over Web Reference?

May 11, 2010

When should I go for creating a proxy class for a web service and when should I go for adding web reference to web service.

Are there any specific advantages of using proxy class over web reference?

View 1 Replies

WCF / ASMX :: To Call A Web Service Reference LiveSearchService?

Nov 29, 2010

created a web reference to this web service

http://soap.search.msn.com/webservices.asmx?wsdl

using the VS(2008) Data configuration wizard, and it found the web service and displayed various items from the service. I want to make a simple call to this web service (mainly to learn how to do it). Here is some sample code I found, but I just
don't know how to implement it.

private void Call_Web_Service_Method()
{
ServerName.WebServiceName CallWebService =
new ServerName.WebServiceName();
String sGetValue = CallWebService.MethodName();
Label1.Text = sGetValue;
}

I named my web service reference LiveSearchService. What code do I need to implement, what libraries, to retrieve any information from this web service?

View 8 Replies

WCF / ASMX :: Service Reference Fails On Deployment?

Mar 30, 2011

I have an ASMX web service which, in turn, creates a Service Reference which ultimately calls a third party web service. So, in essence, my ASMX is acting as a proxy to the thrid party service. This works fine on my development box.When I deploy to a target server and call my ASMX web service, it fails with an object instance not set error. On closer inspection, it looks as if the failure is in the line of code which creates an instance of the Service Reference - DIM XXX as new ServiceReference.I'm guessing that something has gone missing in the deployment, but can't see what.

View 1 Replies

WCF / ASMX :: Add A Web Reference To A .Net 1.1 Site From Visual Studio 2010?

Dec 13, 2010

I am facing a problem reated to web services. A customer is running his website on an old server running .Net Framework version 1.1. We would like from this site to call a Web Service, how can I do that. I have Visual Studio 2010 intalled on my machine and when I use the option "Add Web Reference" the generated files/folders seem to not be compatible.

View 1 Replies

WCF / ASMX :: How To Debub Wcf Code Whose Reference Added To Web Aplication

Oct 15, 2010

how to debug the wcf code. Means I have added refernce of wcf code in my web appilcation's code and called that wcf function in my web application code. Both applications are on my local machine. I have put up break point in web application and also put up break point at the function in wcf. Can break point swicth rom web application to wcf code.? Is ther any way to do this or any other way to do like this so that I can debug the function in wcf.

View 3 Replies

WCF / ASMX :: Adding A Remote Web Reference And 'Discovery Credential'?

Apr 1, 2011

I have developed an asp.net web service and deployed it Win 2003 server on IIS 6. I tried to access it from my asp.net application which is in developer pc, i'm getting a dialog-box "Discovery Credential for Proxy Server"... which asks for a user and password.

Even when I provided right credentials it is not accepting. May be this is because of firewall. How can I get rid of this.

View 1 Replies







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