Re: WS Works Locally but not on Web Server
- From: "Grigs" <Grigs@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 13 Oct 2005 12:06:08 -0700
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">
> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> > style="document" />
> > <wsdl:operation name="GetSQLStatementsToRemember">
> > <soap:operation
> > soapAction="http://www.RealEstatePointe.com/WebServices/REPBackbone/GetSQLStatementsToRemember"
> > style="document" />
> > <wsdl:input>
> > <soap:body use="literal" />
> > </wsdl:input>
> > <wsdl:output>
> > <soap:body use="literal" />
> > </wsdl:output>
> > </wsdl:operation>
> > <wsdl:operation name="SetSQLStatementsToRemember">
> > <soap:operation
> > soapAction="http://www.RealEstatePointe.com/WebServices/REPBackbone/SetSQLStatementsToRemember"
> > style="document" />
> > <wsdl:input>
> > <soap:body use="literal" />
> > </wsdl:input>
> > <wsdl:output>
> > <soap:body use="literal" />
> > </wsdl:output>
> > </wsdl:operation>
> > <wsdl:operation name="AddSQLStatement">
> > <soap:operation
> > soapAction="http://www.RealEstatePointe.com/WebServices/REPBackbone/AddSQLStatement"
> > style="document" />
> > <wsdl:input>
> > <soap:body use="literal" />
> > </wsdl:input>
> > <wsdl:output>
> > <soap:body use="literal" />
> > </wsdl:output>
> > </wsdl:operation>
> > <wsdl:operation name="GetLastSQLStatement">
> > <soap:operation
> > soapAction="http://www.RealEstatePointe.com/WebServices/REPBackbone/GetLastSQLStatement
> > with no arguments" style="document" />
> > <wsdl:input
> > name="GetLastSQLStatement_x0020_with_x0020_no_x0020_arguments">
> > <soap:body use="literal" />
.
- Follow-Ups:
- Re: WS Works Locally but not on Web Server
- From: EagleRed@HighFlyingBirds.com
- Re: WS Works Locally but not on Web Server
- References:
- WS Works Locally but not on Web Server
- From: Grigs
- Re: WS Works Locally but not on Web Server
- From: Lee Franke
- WS Works Locally but not on Web Server
- Prev by Date: Re: WS Works Locally but not on Web Server
- Next by Date: Re: using Multiple client certificates
- Previous by thread: Re: WS Works Locally but not on Web Server
- Next by thread: Re: WS Works Locally but not on Web Server
- Index(es):
Relevant Pages
|