Re: WS Works Locally but not on Web Server



Concerning subfolders under a project. I have seen cases where you may want
to present a URL to some specific function on a site directly. Say, you have
a site, www.mysite.com, running from webroot and you want to present some
specific content or function, MySpecFcn. You may want to put that in a
subfolder have it reached by the URL, www.mysite.com/MySpecFcn/page.aspx,
where page.aspx is in the subfolder.

I'm sure there can be other discussion on this. I'd love to see it

Enjoy!

EagleRed

"Grigs" wrote:

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



Relevant Pages

  • Re: web service do not provide a schema.
    ... webservice do not provide a schema. ... Can some one tell me you to manipulate ... The web service return a xml liki this: ... it goes to a folder KO. ...
    (microsoft.public.biztalk.general)
  • Re: RDO objects and C#
    ... OutlookSpy - Outlook, CDO ... The error occurs after reading say around 700/800 emails in one folder. ... RDOFolder rdoFolder = rdoFolders.GetFirst; ... RDOFolder subFolder; ...
    (microsoft.public.outlook.interop)
  • Re: Sent Items still MIA, tried importing from .dbx
    ... and the subfolder itself in OE. ... If I somehow dragged my entire Sent Items folder to the Deleted Items ... e-mails except for those I specifically physically move into it, ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Permission problem - URGENT !
    ... UsersB has no permission of Filex down in some ... subfolder, so you go to that file and add a grant of Read ... shortcut from your .\desktop folder to the .\desktop folder ... > parent folder/subfolder/files. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: RDO objects and C#
    ... The error occurs after reading say around 700/800 emails in one folder. ... RDOFolder rdoFolder = rdoFolders.GetFirst; ... Failed to process mailbox for user: ... RDOFolder subFolder; ...
    (microsoft.public.outlook.interop)