Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > wrong host on example invoke pages

Reply
Thread Tools

wrong host on example invoke pages

 
 
Rick Boardman
Guest
Posts: n/a
 
      05-10-2005
Sorry for the multiple posts. Seems I didn't have my nospam email setup so
MSDN didn't recognize me as a subscriber. Hopefully this will be the last
time I have to repost this.

WebServices on my machine have recently begun experiencing problems when
testing the service through the description pages.

For example:
http://www.testsite.com/services/details.asmx?op=Insert
The various methods begin with the following header information:

POST /services/details.asmx HTTP/1.1
Host: machinename.domain.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/services/details/Insert"

The Host here is wrong and should be the testsite, not the local machine.

Clicking Invoke tries to redirect to this:
http://machinename.domain.com/servic...ls.asmx/Insert

when it should be redirecting to this:
http://www.testsite.com/services/details.asmx/Insert

Also in the service description for the service the following is wrong:

- <wsdl:service name="details">
- <wsdlort name="siteSoap" binding="tns:siteSoap">
<soap:address
location="http://machinename.domain.com/services/details.asmx" />
</wsdlort>
- <wsdlort name="siteHttpGet" binding="tns:siteHttpGet">
<http:address
location="http://machinename.domain.com/services/details.asmx" />
</wsdlort>
- <wsdlort name="siteHttpPost" binding="tns:siteHttpPost">
<http:address
location="http://machinename.domain.com/services/details.asmx" />
</wsdlort>
</wsdl:service>

These problems started when I installed SP1 on Windows 2003 Server. There
were some problems during the install and I eventually got the server back up
so it may have been related to other surronding issues.

If anyone can shed some light on this for me that would be great! I'm sure
it's something simple and likely just a setting somewhere.

 
Reply With Quote
 
 
 
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      05-11-2005
"=?Utf-8?B?UmljayBCb2FyZG1hbg==?="
<> wrote in
news54A8D87-43EB-4E48-AEC9-:
> POST /services/details.asmx HTTP/1.1
> Host: machinename.domain.com


Is this also name of the machine it is on? Where/When did you initially enter
this anywhere?


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
 
Reply With Quote
 
 
 
 
Rick Boardman
Guest
Posts: n/a
 
      05-11-2005


"Chad Z. Hower aka Kudzu" wrote:

> "=?Utf-8?B?UmljayBCb2FyZG1hbg==?="
> <> wrote in
> news54A8D87-43EB-4E48-AEC9-:
> > POST /services/details.asmx HTTP/1.1
> > Host: machinename.domain.com

>
> Is this also name of the machine it is on? Where/When did you initially enter
> this anywhere?


Yes, machine name is the name of the machine this is on (entered during
windows installation) and domain.com is the domain entered during windows
creation

> --
> Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> "Programming is an art form that fights back"
>
> Blog: http://blogs.atozed.com/kudzu
>

 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      05-11-2005
"=?Utf-8?B?UmljayBCb2FyZG1hbg==?=" <> wrote in
news:EDF0FE02-60D7-4A76-83DB-:
> Yes, machine name is the name of the machine this is on (entered during
> windows installation) and domain.com is the domain entered during
> windows creation


The page you are showing, is only meant for debugging not real use. When
ASP.NET generates them, it appears to just take the machine name, not the
host parameter in your scenario. In fact it should be taking the website name
as in IIS, and likely is but without seeing your machine I cant see what your
names are and why you want it different.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
 
Reply With Quote
 
Rick Boardman
Guest
Posts: n/a
 
      05-11-2005
> The page you are showing, is only meant for debugging not real use. When
> ASP.NET generates them, it appears to just take the machine name, not the
> host parameter in your scenario. In fact it should be taking the website name
> as in IIS, and likely is but without seeing your machine I cant see what your
> names are and why you want it different.


I understand this is only for debugging, not real use. Being that we are a
development shop, we do a lot of debugging and testing at this level.

Please note:
testsite.com is virtually hosted on machinename.domain.com

Before Windows 2003 Server SP1 update:
http://www.testsite.com/services/details.asmx/Insert

After Windows 2003 Server SP1 update:
http://machinename.domain.com/servic...ls.asmx/Insert
Which causes the invoke to get page not found errors.

I want webservice example invoke pages to work like they did before Windows
2003 Server SP1 update where the service was picking up the virtualy hosted
domain not the local machine name and domain.

 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      05-11-2005
"=?Utf-8?B?UmljayBCb2FyZG1hbg==?=" <> wrote in
news:256091A7-E5CC-41B6-A11A-:
> I want webservice example invoke pages to work like they did before
> Windows 2003 Server SP1 update where the service was picking up the
> virtualy hosted domain not the local machine name and domain.


Windows SP's have a bad habit of breaking things in IIS through lockdown
procedures. I would suggest checking the application settings, or more
importantly the settings for this virtual host and see if anything has
changed. .NET hasn't, but something is causing IIS to feed information to
..NET differently.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      05-11-2005
"Chad Z. Hower aka Kudzu" <> wrote in
news:Xns9653C2C72147Fcpub@127.0.0.1:
> Windows SP's have a bad habit of breaking things in IIS through lockdown
> procedures. I would suggest checking the application settings, or more


http://www.microsoft-watch.com/artic...1787985,00.asp


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
 
Reply With Quote
 
Rick Boardman
Guest
Posts: n/a
 
      05-17-2005
I've looked through the settings for anything I thought might be an issue
(even before I posted here last month) but haven't found anything I can point
at as the problem.

I reviewed the site link posted. From what I gather it doesn't get into
anything specific nor fixes and basically indicates Windows 2003 Server SP1
breaks things.

Is there maybe an MVP or MS Employee who might know what .net does to
generate the hostname and the verb settings in the wsdl? If so I imagine
this problem can be isolated to a specific setting in the registry, metabase,
etc. This would be extremely helpful.
 
Reply With Quote
 
Rick Boardman
Guest
Posts: n/a
 
      05-26-2005
Now I have found that aspx pages set to refer themselves back to https are
also failing. example:

http://www.testit.com/secure.aspx

uses request.url.host to build and redirect to

https://www.testit.com/secure.aspx

this worked before windows 2003 server sp1. Now it is giving:

https://machinename.machinedomain.com/secure.aspx

which of course doesn't exist.

I've had this post in a managed newsgroup now for over a month and have
gotten no MS Employee or MVP responses.

"Rick Boardman" wrote:

> I've looked through the settings for anything I thought might be an issue
> (even before I posted here last month) but haven't found anything I can point
> at as the problem.
>
> I reviewed the site link posted. From what I gather it doesn't get into
> anything specific nor fixes and basically indicates Windows 2003 Server SP1
> breaks things.
>
> Is there maybe an MVP or MS Employee who might know what .net does to
> generate the hostname and the verb settings in the wsdl? If so I imagine
> this problem can be isolated to a specific setting in the registry, metabase,
> etc. This would be extremely helpful.

 
Reply With Quote
 
Rick Boardman
Guest
Posts: n/a
 
      08-11-2005
Still no response from MVP or Microsoft.

This is still an issue.

wsdl are being generated with incorrect URLs
request.url.host is responding with incorrect URLs

This is after install of windows 2003 server sp 1

There are others experiencing similar issues:

"In some forums and blogs many people had simmilar isuses. It seems that
with W2003 SP1 request.url.host doesn't return the public web domain any
more. Now it return the real server domain name. In your case
palhost.palhost.net. If this is by design or a bug in SP1, i don't know yet."
found on
http://forums.asp.net/1005195/ShowPost.aspx

"Recently my hosting service patched their Windows 2003 servers to SP1. In
doing so i noticed that all of a sudden this site (ie my .text blog) was
broken. I was getting the dreaded "A blog matching the location you requested
was not found" error. Apparently calls to Request["Server_Name"] previously
returned the HTTP_HOST variable instead. This has been fixed and now returns
the actual machine name as is the original purpose. Unfortunaltey it seems
that Request.Url.Host also seems to now take on this behaviour (at least it
did for this server?). .TEXT makes a call to this method to get the current
host."

found on http://thewebfarm.com/blog/archive/2005/04/03/189.aspx
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to invoke keyPress event in ASP.Net pages =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?= ASP .Net 1 10-17-2005 04:19 AM
wrong Host on example invoke pages. (MSDN Subscriber - Managed NG Rick Boardman ASP .Net Web Services 0 05-05-2005 04:36 PM
wrong Host on example invoke pages. Rick Boardman ASP .Net Web Services 0 04-26-2005 03:57 PM
Invoke C#-Function calls in aspx pages Sandro ASP .Net 8 09-13-2004 06:39 PM
request.getHeader("Host") returns wrong host name Orpheus66 Java 0 07-30-2003 02:59 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57