473,418 Members | 2,049 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,418 software developers and data experts.

Different behaviour when adding the same WSDL from the local development server or from a remote machine

Hi,

we're developing some web services and use the local development server of
Visual Studio 2005 to create, run and debug the project. The web service
methods connect to a database hosted on a dedicated server and the Microsoft
CRM 3.0 server, also on a separate machine. As the CRM server installation
makes changes to the Active Directory, they are located in a separate
domain, while the development machines are member of the companies domain.
There's no trust relationship between these domains. However, authentication
works fine with one problem:

Scenario 1:
The web service is hosted on a remote machine and in VS 2005 we add a web
reference to it, say http://remoteMachine:4444/webservice/service.asmx. When
creating a new instance of the generated web service proxy class, we set the
URL to the location of the web service (which is the same as the web
reference location, thus the default) and the Credentials property to a
valid NetworkCredential. Beside authenticating the user, the web service
further uses this credential to connect to the web services offered by the
CRM server. All of this works fine.

Scenario 2:
The exactly same web service is hosted on the local development machine and
in VS 2005 we add a web reference to it, say
http://localhost:2142/webservice/service.asmx. Beside that reference,
everything else is the same, so we create a new instance of the generated
web service proxy class, set the URL to the location of the web service
(which is http://remoteMachine:4444/webservice/service.asmx, thus different
from the default) and the Credentials property to a valid NetworkCredential.
So our request still goes to the remote machine, but this time each request
fails with 401 Forbidden/Access denied.

This is reproducable. If I change the web service reference back to the
remote machine, the application will work without problems. If I use the
local address, authentication errors will occur in each call to a web
service, though the remote address and network credential do not change.

Any suggestions?

Thanks
Michael
Dec 9 '05 #1
0 1680

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

Similar topics

20
by: xixi | last post by:
hi, we use db2 udb v8.1 on windows, i am trying to use federated database objects to create wrapper, even though i have update dbm cfg using federated yes, i still get error "the instance for the...
1
by: thomasb | last post by:
When setting up federation between two databases on the same instance everything works fine. When trying to do the same between two databases on different instances on the same machine I get...
6
by: Jim H | last post by:
I have an app I working on that was working fine a few days ago. Now I get a jscript error: Microsoft JScript runtime error: Object expected in a part of the code that has not been modifed or...
4
by: Benne Smith | last post by:
In our company, i have three servers; 1) a development server (mine only - here i make daily changes and test my stuff) 2) a test server (for the users to test milestone builds - changes weekly)...
1
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt,...
10
by: Christina N | last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local cached directory 'VSWebCache' in stead of on the server. How can I make it save the DLL file on the server when compiling?...
2
by: Just D. | last post by:
Why same version working fine on one machine has a permanent bug when I upload it to another remote machine and refuses to work at all from the third machine working on my home LAN? All latest...
0
by: Orbit | last post by:
Hi, I hope someone could help me. I have a simple web service that I developed on my laptop that resides within a large web application. It queries Northwind & presents the data in a grid in the...
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.