The webserver example is just that: an example. You will find other
document types that need to have the same adjustments. What I did was
write a simple routine to add them to a table dynamically. That way I
didn't need to add "code" to support new types.
Chuck Wegrzyn
Twisted Storage
adam.noren wrote:
>
>
>
> Hi,
> I find the gSOAP example webserver great.
> Unfortunately I have had a problem with it and stylesheet presentation
> in Firefox. I just found the error, and I put this message here with the
> hope that it might help someone.
>
> The problem is sending stylesheets as "text/html", where it should be
> "text/css".
>
> Change the http get pluging:
> if (!soap_tag_cmp(soap->path, "*.html"))
> {
> return copy_file(soap, soap->path + 1, "text/html");
> }
> else if(!soap_tag_cmp(soap->path, "*.css"))
> {
> return copy_file(soap, soap->path + 1, "text/css");
> }
>
> Read more:
>
> http://forums.mozillazine.org/viewtopic.php?f=38&t=820225
> <http://forums.mozillazine.org/viewtopic.php?f=38&t=820225>
>
> /Adam
>
>