wrong Host on example invoke pages.

Discussion in 'ASP .Net Web Services' started by Rick Boardman, Apr 26, 2005.

  1. 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/services/details.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">
    - <wsdl:port name="siteSoap" binding="tns:siteSoap">
    <soap:address
    location="http://machinename.domain.com/services/details.asmx" />
    </wsdl:port>
    - <wsdl:port name="siteHttpGet" binding="tns:siteHttpGet">
    <http:address
    location="http://machinename.domain.com/services/details.asmx" />
    </wsdl:port>
    - <wsdl:port name="siteHttpPost" binding="tns:siteHttpPost">
    <http:address
    location="http://machinename.domain.com/services/details.asmx" />
    </wsdl:port>
    </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.
     
    Rick Boardman, Apr 26, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Patrick

    Can I host ASP.NET Pages on IBM WebSphere

    John Patrick, Jan 19, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    615
    Kevin Spencer
    Jan 19, 2004
  2. Sandro
    Replies:
    8
    Views:
    8,576
    Girish Bharadwaj
    Sep 13, 2004
  3. Devinder Singh

    how to host the asp.net pages on linux/unix

    Devinder Singh, Feb 18, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    414
    =?Utf-8?B?TmlrYW5kZXIgJiBNYXJncmlldCBCcnVnZ2VtYW4=
    Feb 18, 2005
  4. =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=

    How to invoke keyPress event in ASP.Net pages

    =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=, Oct 17, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    6,289
    Gary K
    Oct 17, 2005
  5. Orpheus66
    Replies:
    0
    Views:
    5,012
    Orpheus66
    Jul 30, 2003
  6. Jerry Qu
    Replies:
    1
    Views:
    678
    lee atkinson
    Feb 20, 2009
  7. Rick Boardman

    wrong Host on example invoke pages. (MSDN Subscriber - Managed NG

    Rick Boardman, May 5, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    281
    Rick Boardman
    May 5, 2005
  8. Rick Boardman

    wrong host on example invoke pages

    Rick Boardman, May 10, 2005, in forum: ASP .Net Web Services
    Replies:
    9
    Views:
    368
    Rick Boardman
    Aug 11, 2005
Loading...