Web Service woes...

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Web Service woes...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:13 pm

by CassMan >> Wed, 17 Oct 2007 13:24:41 GMT

Hi again,

Appologies in advance for the inevitable long message but i think this problem is going to be harder to explain than it will be to solve!...


We have an issue with one of our Web Services and although we don't think it is a JADE issue, we think you may be able to shed light on the problem. Basically we have been developing an online version of our software as a Web Service on our development database and would now like to transfer it onto one of our test databases. We have successfully created the required schema's and loaded the patches, and also created the Applications needed for each (i.e. The Web Service and the Schema itself). We are using IIS to allow us to run it on our intranet (which the development version is running flawlessly on) but we have a problem in that the pictures on the site are not displaying, leaving just the red cross for an unknown image. The pictures for each instance of the service are stored in separate folders, and so the Web Service Application contains the correct relevant directory. The .ini files have been updated, as far as we can tell, correctly and the service is running with no issues other than the pictures. If we right-click the pictures on the site and view their URL in the properties - the pictures do exist in the correct place, so my guess is that the browser (maybe) is looking in the wrong place for the correct file.

I hope that makes sense. Any help will be greatly appreciated.

Regards,

Richard Cassell

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Web Service woes...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:13 pm

by Alan >> Thu, 18 Oct 2007 8:37:30 GMT

If you key the full URL for any of the images directly into the browser, does the image show?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Web Service woes...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:13 pm

by CassMan >> Thu, 18 Oct 2007 16:00:27 GMT

Hi Alan,

Yes they do.

As a bit more information for you that may help. The properties of the pictures points to the correct place; a folder called "Pictures". However, this folder contains sub-directories which are named differently for each database. For the working database version, IIS refers to Pictures/dev and the broken one refers to Pictures/test. The Application for each web service has been updated with the correct picture directory as has the ..ini files which control the JadeHttp.dll that displays the page. So i can't see why it isn't working.

Also, every time the site is loaded (refreshed) a new session version of the pictures are stored in their relevant folder (this works for both), and when i look at the picture properties for the broken site, they correctly refer to pictures in the correct folder. However, it does not display. As a big clue to why, when i then copy the pictures across to Pictures/dev and refresh the page, the pictures magically load!

It is obvious that the pictures are being saved in the right place but being read from the wrong place, why, is what i don't understand. I think it's a setting in IIS or the JadeHttp.dll that is at fault. As a minor point, the Host Header File for both versions is the same - which isn't going to help. But when i use a different one i get an unavailable page error.

Sorry again for the long messages, any help will be great!

Regards,

Rich

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Web Service woes...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:13 pm

by Alan >> Fri, 19 Oct 2007 8:50:39 GMT

Would it be possible for you to provide an example of the source HTML that is not showing the pictures correctly?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Web Service woes...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:13 pm

by CassMan >> Fri, 19 Oct 2007 9:51:42 GMT

Yeah sure, i have attached the html source of the local logon page.

CCMTTBL01 is the name of the database (as i am sure you will guess). The source folder for the pictures points to Pictures/ <PictureName>, but in actual fact the Pictures folder contains a sub-directory for each database. The pictures are in the TTBL folder, but trying to be read from another folder within the Pictures directory.

Hope this helps.
Thanks!
Attachments
5065.zip
(1.61 KiB) Downloaded 58 times
Last edited by ConvertFromOldNGs on Fri Aug 07, 2009 4:26 pm, edited 1 time in total.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Web Service woes...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:13 pm

by isNoDarkSide >> Wed, 24 Oct 2007 20:28:06 GMT

If you are running dev and test on the same web server, then you need different host headers so IIS can distinguish dev from test, and route the 'virtual' /Pictures folder to the correct physical folder (/pictures/dev or /pictures/test). My memory's a bit rusty on IIS, but I reckon you need to configure multiple web sites, each with an individual IP address, or host header (there's an Advanced Multiple Web Site configuration form somewhere under Web Site Identification). Then set up the correct virtual folders for each web site.

cheers,
Robert

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Web Service woes...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:13 pm

by CassMan >> Fri, 26 Oct 2007 10:54:33 GMT

Hey Rob, thats great. Thank you very much!

I had set the correct Pictures folder in the Web Site Configuration, but it was the header file causing the issue. I simply added a unique header name to our DNS program and that allowed it to load no problem.

Thanks again!

Cass


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 28 guests