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


Similar Messages:

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 :: 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

WCF / ASMX :: No Connection Could Be Made Because The Target Machine Actively Refused It Xxx:xxx:xxx:xxx:443

Nov 16, 2010

I'm calling a 3rd party web service from our network and I receive following error: No connection could be made because the target machine actively refused it 111.111.222.545:443

View 8 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

Visual Studio :: Creating Web Reference Proxy?

May 19, 2010

i am working in the web services aspects on sharepoint. However, the vs 2008 (3.0i am working in the web services aspects on sharepoint. However, the vs 2008 (3.0 or higher) does not seem to create a proxy class when i have used the add service reference and used the backward compatible version to use add web reference for 2.0. However, i dont seem to find the proxy class. does not seem to create a proxy class when i have used the add service reference and used the backward compatible version to use add web reference for 2.0. However, i dont seem to find the proxy class.

View 2 Replies

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

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 :: 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

Web Forms :: Null Reference - Not Finished Creating Component?

May 25, 2010

I have a custom component:

[Code]....

[Code]....

I try to create a new component instance like this:[Code]....

[Code]....

View 2 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 :: 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 :: Getting Started With Creating An API?

Dec 3, 2010

I am looking into creating an API for a website and I'm not quite sure where to get started.

1) Do you have any basic starting point resources when it comes to API and asp.Net. Maybe I am searching for the wrong thing? Is an API a web service?

2) When you create an API for a website. Do you host the api and the website in the same location? Or do you isolate the website from the API?

View 7 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







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