Re: WS Works Locally but not on Web Server



I figured it out. But I would like to thank Lee and Eagle for their
suggestions.

What wound up being the fix for me was putting the Web Service it is own
Root folder in IIS 6. I know I have had deeper strucutre before, but that
was on IIS 5. Perhaps IIS 6 requires it to be at the top level. To me, this
does make sense. The web Service is in essence its own stand-alone
application and could be connected to by other program. With that said, why
would you want to have it in a sub folder below a particular project.

HTH others who come across this same issue.

Kevin

"EagleRed@xxxxxxxxxxxxxxxxxxx" wrote:

> In your client have you set the Web reference to be dynamic and then put the
> URL to the Web service in the web.config or app.config file? If the Web
> reference is static and set to localhost, it will look for the WS on the
> local machine.
>
> Hope this helps.
>
> Eagle
>
> "Grigs" wrote:
>
> > Frank,
> >
> > The Client/Interface is in a folder on the server and the web service is in
> > a sub folder of that client folder. I have to assume that means the answer
> > to this question is YES. They can connect. If there is some way I could
> > test this, then please let me know.
> >
> > Can you expand a bit on your Host file solution. What did you do, what file
> > was changed? How can I do it?
> >
> > I know what you mean about the reconnection from localhost to live server.
> > I have done this. Been burned over the years on this as well. Now it's
> > ingrained in me.
> >
> > I have written many applications where the web service and client are on an
> > InHouse server. They have always worked as long as the WebService was its
> > own virtual directory. however, this application is on a server that is not
> > Inhouse. Both Interface and WebService are in the same folder, well, the WS
> > is one step deeper in its own folder. (could this be a problem, should it be
> > outside of the interface?)
> >
> > This is killing me here. I love webservices but have a short amount of time
> > to figure this issue out and if I can't without outside help, I will have to
> > rewrite the code to not use a WS. :-(
> >
> > TIA,
> > Kevin
> >
> > --
> > "Lee Franke" wrote:
> >
> > > We've had this same problem on several occassions.
> > >
> > > Here are several of the resolutions.
> > >
> > > Make sure that the server where the webservice is located can connect to the
> > > where the client is located.
> > > This is not as simple as it sounds. We figured out that the webservice could
> > > not return back to the client server because of some problem with out Cisco
> > > switch (they never solved the problem) we had to add an entry into the host
> > > file on the servers for the client servers and the webservice servers
> > >
> > > Make sure that when you publish the client you have changed the URL for the
> > > webservice from 'localhost' (when you were running it localing it had a URL
> > > of localhost) to whatever the server URL is (I have been burned on this one
> > > so many times it is embarassing) .
> > >
> > > Then there was another issue with the switch but I cannot remember what it
> > > was...sorry.
> > >
> > > HTH,
> > >
> > > lee
> > >
> > > "Grigs" <Grigs@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > > news:85AD5294-A5B0-468A-BEBC-D5E0004F053F@xxxxxxxxxxxxxxxx
> > > > Hello,
> > > >
> > > > I have a project that contains a WebService that works great when
> > > > connecting
> > > > to it on my Localhost. Once we post the files to the test web server, all
> > > > of
> > > > the pages that do not touch the webservice work fine. However, the ones
> > > > that
> > > > do touch it get the following error:
> > > >
> > > > The request failed with HTTP status 404: Not Found
> > > >
> > > > Here is the full error:
> > > >
> > > > [WebException: The request failed with HTTP status 404: Not Found.]
> > > >
> > > > System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
> > > > message, WebResponse response, Stream responseStream, Boolean asyncCall)
> > > > +1303
> > > > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> > > > methodName, Object[] parameters) +218
> > > >
> > > > BrickRed.RealEstateManagement.BackboneWS.RealEstatePointeBackbone.UTCToUserTime(Int32
> > > > iTimeZoneID, DateTime dtUTCTime)
> > > >
> > > > BrickRed.RealEstateManagement.web.activity.ActivityDashboard.dgActivityList_ItemDataBound(Object
> > > > sender, DataGridItemEventArgs e)
> > > >
> > > > Dart.PowerWEB.LiveControls.LiveDataGrid.OnItemDataBound(DataGridItemEventArgs
> > > > e) +82
> > > > Dart.PowerWEB.LiveControls.LiveDataGrid.a(Int32 A_0, Int32 A_1,
> > > > ListItemType A_2, Boolean A_3, Object A_4, DataGridColumn[] A_5,
> > > > TableRowCollection A_6, PagedDataSource A_7) +146
> > > > Dart.PowerWEB.LiveControls.LiveDataGrid.a(Boolean A_0) +1485
> > > > System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +49
> > > > System.Web.UI.WebControls.BaseDataList.DataBind() +23
> > > > Dart.PowerWEB.LiveControls.LiveDataGrid.DataBind() +33
> > > >
> > > > BrickRed.RealEstateManagement.web.activity.ActivityDashboard.Page_Load(Object
> > > > sender, EventArgs e)
> > > > System.Web.UI.Control.OnLoad(EventArgs e) +67
> > > > System.Web.UI.Control.LoadRecursive() +35
> > > > System.Web.UI.Page.ProcessRequestMain() +750
> > > >
> > > > I have read some other info on other websites but have not found a fix to
> > > > this. Why is this an issue? How can I fix it? I assume it is something
> > > > rather simple that I simply do not know of at this point.
> > > >
> > > > I have the wsdl file below (with stuff in the middle cut out to keep it at
> > > > 3000 characters)...
> > > >
> > > > I REALLY need a fix ASAP. PLEASE HELP.
> > > >
> > > > TIA,
> > > > Kevin
> > > >
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> > > > xmlns:s="http://www.w3.org/2001/XMLSchema";
> > > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> > > > xmlns:tns="http://www.RealEstatePointe.com/WebServices/REPBackbone/";
> > > > xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
> > > > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> > > > targetNamespace="http://www.RealEstatePointe.com/WebServices/REPBackbone/";
> > > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
> > > > <wsdl:types>
> > > > <s:schema elementFormDefault="qualified"
> > > > targetNamespace="http://www.RealEstatePointe.com/WebServices/REPBackbone/";>
> > > > <s:import namespace="http://www.w3.org/2001/XMLSchema"; />
> > > > <s:element name="GetSQLStatementsToRemember">
> > > > <s:complexType />
> > > > </s:element>
> > > > <s:element name="GetSQLStatementsToRememberResponse">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1"
> > > > name="GetSQLStatementsToRememberResult" type="s:int" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="UserTimeToUTC">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1" name="iTimeZoneID"
> > > > type="s:int" />
> > > > <s:element minOccurs="1" maxOccurs="1" name="dtUserTime"
> > > > type="s:dateTime" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="UserTimeToUTCResponse">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1"
> > > > name="UserTimeToUTCResult" type="s:dateTime" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="UTCToUserTime">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1" name="iTimeZoneID"
> > > > type="s:int" />
> > > > <s:element minOccurs="1" maxOccurs="1" name="dtUTCTime"
> > > > type="s:dateTime" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="UTCToUserTimeResponse">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1"
> > > > name="UTCToUserTimeResult" type="s:dateTime" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="GetActivitySubjects">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1" name="iRealEstateID"
> > > > type="s:int" />
> > > > <s:element minOccurs="1" maxOccurs="1" name="iOfficeID"
> > > > type="s:int" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="GetActivitySubjectsResponse">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="0" maxOccurs="1"
> > > > name="GetActivitySubjectsResult">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element ref="s:schema" />
> > > > <s:any />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="AddNewActivitySubject">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1" name="iRealEstateID"
> > > > type="s:int" />
> > > > <s:element minOccurs="1" maxOccurs="1" name="iOfficeID"
> > > > type="s:int" />
> > > > <s:element minOccurs="0" maxOccurs="1" name="sSubject"
> > > > type="s:string" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="AddNewActivitySubjectResponse">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1"
> > > > name="AddNewActivitySubjectResult" type="s:boolean" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="DisableActivitySubject">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1" name="iRealEstateID"
> > > > type="s:int" />
> > > > <s:element minOccurs="1" maxOccurs="1" name="iOfficeID"
> > > > type="s:int" />
> > > > <s:element minOccurs="1" maxOccurs="1" name="iSubjectID"
> > > > type="s:int" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > <s:element name="DisableActivitySubjectResponse">
> > > > <s:complexType>
> > > > <s:sequence>
> > > > <s:element minOccurs="1" maxOccurs="1"
> > > > name="DisableActivitySubjectResult" type="s:boolean" />
> > > > </s:sequence>
> > > > </s:complexType>
> > > > </s:element>
> > > > </s:schema>
> > > > </wsdl:types>
> > > > <wsdl:message name="UserTimeToUTCSoapIn">
> > > > <wsdl:part name="parameters" element="tns:UserTimeToUTC" />
> > > > </wsdl:message>
> > > > <wsdl:message name="UserTimeToUTCSoapOut">
> > > > <wsdl:part name="parameters" element="tns:UserTimeToUTCResponse" />
> > > > </wsdl:message>
> > > > <wsdl:message name="UTCToUserTimeSoapIn">
> > > > <wsdl:part name="parameters" element="tns:UTCToUserTime" />
> > > > </wsdl:message>
> > > > <wsdl:message name="UTCToUserTimeSoapOut">
> > > > <wsdl:part name="parameters" element="tns:UTCToUserTimeResponse" />
> > > > </wsdl:message>
> > > > <wsdl:operation name="UserTimeToUTC">
> > > > <documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>Returns a
> > > > DateTime of an adjusted DateTime from the Current Users timezone to the
> > > > UTC.</documentation>
> > > > <wsdl:input message="tns:UserTimeToUTCSoapIn" />
> > > > <wsdl:output message="tns:UserTimeToUTCSoapOut" />
> > > > </wsdl:operation>
> > > > <wsdl:operation name="UTCToUserTime">
> > > > <documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>Returns a
> > > > DateTime of an adjusted DateTime from UTC to the Current Users
> > > > timezone.</documentation>
> > > > <wsdl:input message="tns:UTCToUserTimeSoapIn" />
> > > > <wsdl:output message="tns:UTCToUserTimeSoapOut" />
> > > > </wsdl:operation>
> > > > <wsdl:operation name="GetActivitySubjects">
> > > > <documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>Returns a
> > > > DataSet that contains all of the Active Activity Subjects for a given
> > > > office.</documentation>
> > > > <wsdl:input message="tns:GetActivitySubjectsSoapIn" />
> > > > <wsdl:output message="tns:GetActivitySubjectsSoapOut" />
> > > > </wsdl:operation>
> > > > <wsdl:operation name="AddNewActivitySubject">
> > > > <documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>Returns a
> > > > boolean on the addition of an Activity Subject to an
> > > > office</documentation>
> > > > <wsdl:input message="tns:AddNewActivitySubjectSoapIn" />
> > > > <wsdl:output message="tns:AddNewActivitySubjectSoapOut" />
> > > > </wsdl:operation>
> > > > <wsdl:operation name="DisableActivitySubject">
> > > > <documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>Returns a
> > > > boolean on the inactivation of a given Activity Subject</documentation>
> > > > <wsdl:input message="tns:DisableActivitySubjectSoapIn" />
> > > > <wsdl:output message="tns:DisableActivitySubjectSoapOut" />
> > > > </wsdl:operation>
> > > > </wsdl:portType>
> > > > <wsdl:binding name="RealEstatePointeBackboneSoap"
> > > > type="tns:RealEstatePointeBackboneSoap">
.



Relevant Pages

  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... You could do it as a web service. ... The handler can draw on the webservice for information and db lookup. ... IE posts data AJAX to handler on web server ... featured application (say thick client) which does a lot of complicate ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)
  • Re: Impersonated login to web service from outside domain
    ... the client is part of the domain group. ... : integrated windows auth fails. ... You can try creating an identical local user on the server (as the one you ... next call to the web service (ie. the process requiring the credentials to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Unable to access AS2k from Win 2k m/c URGENT!!!!!!
    ... No, the Win2k machine just needs to have XMLA SDK and/or ADOMD.NET, MSXML4 ... > Analysis server need more credentials than specified in my ... the same machine as the ADOMD.NET client. ... Why do you need this web service ...
    (microsoft.public.data.xmlanalysis)
  • RE: Fax monitor incoming + outgoing calls?
    ... The detail steps to install share fax client as follows: ... Start server management console, locate Client Computers node, click ... To the folder redirection GPO issue: ... How to stop Folder Redirection in Windows Server 2003 and in Windows 2000 ...
    (microsoft.public.windows.server.sbs)

Loading