| Author |
Message |
Brett Smith
Guest
|
Posted:
Wed Aug 10, 2005 4:59 pm Post subject:
WebDAV SEARCH returns frameset html not XML |
|
|
This only happens for one of the Exchange servers that I query. the server
is SBS2000, and OWA works properly. When I run my SEARCH request against
other SBS2000 and SBS2003 Exchange servers I get the XML results, but with
one perticular machine I only get the frameset page
I am setting the header info per the exch docs
HttpWRequest.KeepAlive = False
HttpWRequest.Headers.Set("Pragma", "no-cache")
HttpWRequest.Headers.Set("Translate", "f")
HttpWRequest.Headers.Set("Depth", "0")
HttpWRequest.ContentType = "text/xml"
HttpWRequest.ContentLength = sQuery.Length
HttpWRequest.Timeout = 300000
HttpWRequest.Method = "SEARCH"
What am I doing wrong, or is there something that I need to change on the
Exchange server
|
|
| Back to top |
|
 |
Brett Smith
Guest
|
Posted:
Fri Aug 12, 2005 12:59 am Post subject:
Re: WebDAV SEARCH returns frameset html not XML |
|
|
OK I will answer my own question. The Exchange server in question had OWA
running on a non standard port. Because of this the query was getting messed
up. If i opened port 443 the query worked perfectly.
This begs the question why can't I webdav query this server on a non
standard port?
"Brett Smith" <bsmith at comppro dot com> wrote in message
news:%23o8s4VbnFHA.2220@TK2MSFTNGP10.phx.gbl...
| Quote: | This only happens for one of the Exchange servers that I query. the server
is SBS2000, and OWA works properly. When I run my SEARCH request against
other SBS2000 and SBS2003 Exchange servers I get the XML results, but with
one perticular machine I only get the frameset page
I am setting the header info per the exch docs
HttpWRequest.KeepAlive = False
HttpWRequest.Headers.Set("Pragma", "no-cache")
HttpWRequest.Headers.Set("Translate", "f")
HttpWRequest.Headers.Set("Depth", "0")
HttpWRequest.ContentType = "text/xml"
HttpWRequest.ContentLength = sQuery.Length
HttpWRequest.Timeout = 300000
HttpWRequest.Method = "SEARCH"
What am I doing wrong, or is there something that I need to change on the
Exchange server
|
|
|
| Back to top |
|
 |
Lee Derbyshire [MVP]
Guest
|
Posted:
Fri Aug 12, 2005 8:58 am Post subject:
Re: WebDAV SEARCH returns frameset html not XML |
|
|
"Brett Smith" <bsmith at comppro dot com> wrote in message
news:uQGNJ4snFHA.2852@TK2MSFTNGP15.phx.gbl...
| Quote: | OK I will answer my own question. The Exchange server in question had OWA
running on a non standard port. Because of this the query was getting
messed up. If i opened port 443 the query worked perfectly.
This begs the question why can't I webdav query this server on a non
standard port?
|
It should work okay as long as you put the port number in the request URL:
http(s)://servername:portnumber/Exchange/mailboxname/folder/item.eml
Lee.
--
___________________________________
Outlook Web Access for PDA and WAP:
www.leederbyshire.com
___________________________________
|
|
| Back to top |
|
 |
Brett Smith
Guest
|
Posted:
Fri Aug 12, 2005 4:59 pm Post subject:
Re: WebDAV SEARCH returns frameset html not XML |
|
|
I think that is the problem rather than using ip:port I was using an alias
that redirected to the alternate port. because of this the "traverse"
portion of the webdav query does not have the port number in it just the
name of the alias. I will have to check later if it will work if I pass the
information in ip:port format
"Lee Derbyshire [MVP]" <email a@t leederbyshire d.0.t c.0.m> wrote in
message news:eWDTlDxnFHA.2080@TK2MSFTNGP14.phx.gbl...
| Quote: | "Brett Smith" <bsmith at comppro dot com> wrote in message
news:uQGNJ4snFHA.2852@TK2MSFTNGP15.phx.gbl...
OK I will answer my own question. The Exchange server in question had OWA
running on a non standard port. Because of this the query was getting
messed up. If i opened port 443 the query worked perfectly.
This begs the question why can't I webdav query this server on a non
standard port?
It should work okay as long as you put the port number in the request URL:
http(s)://servername:portnumber/Exchange/mailboxname/folder/item.eml
Lee.
--
___________________________________
Outlook Web Access for PDA and WAP:
www.leederbyshire.com
___________________________________
|
|
|
| Back to top |
|
 |
Brett Smith
Guest
|
Posted:
Fri Aug 12, 2005 4:59 pm Post subject:
Re: WebDAV SEARCH returns frameset html not XML |
|
|
Just checked it. that was my problem. It always amazes me how simple things
like this cause the most lost time!
"Brett Smith" <bsmith at comppro dot com> wrote in message
news:e0Iidr0nFHA.3936@TK2MSFTNGP10.phx.gbl...
| Quote: | I think that is the problem rather than using ip:port I was using an alias
that redirected to the alternate port. because of this the "traverse"
portion of the webdav query does not have the port number in it just the
name of the alias. I will have to check later if it will work if I pass the
information in ip:port format
"Lee Derbyshire [MVP]" <email a@t leederbyshire d.0.t c.0.m> wrote in
message news:eWDTlDxnFHA.2080@TK2MSFTNGP14.phx.gbl...
"Brett Smith" <bsmith at comppro dot com> wrote in message
news:uQGNJ4snFHA.2852@TK2MSFTNGP15.phx.gbl...
OK I will answer my own question. The Exchange server in question had
OWA running on a non standard port. Because of this the query was
getting messed up. If i opened port 443 the query worked perfectly.
This begs the question why can't I webdav query this server on a non
standard port?
It should work okay as long as you put the port number in the request
URL:
http(s)://servername:portnumber/Exchange/mailboxname/folder/item.eml
Lee.
--
___________________________________
Outlook Web Access for PDA and WAP:
www.leederbyshire.com
___________________________________
|
|
|
| Back to top |
|
 |
|
|
|
|