Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I deployed webservice on server but soap response
Host : hostname

instead of Host : 10.10.10.10 ( i.e it should get ipaddress or domain name)

due to not having control on iis of live server
iis settings can not be change to resolve hostname

is there any alternative to alter
soap request to give custom host values

thanks

soap response is below




<pre lang="xml">POST /researchportal/ipadservices.asmx HTTP/1.1
Host: hostname
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/AuthanticateUser"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AuthanticateUser xmlns="http://tempuri.org/">
      <loginid>string</loginid>
      <password>string</password>
    </AuthanticateUser>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AuthanticateUserResponse xmlns="http://tempuri.org/">
      <AuthanticateUserResult>boolean</AuthanticateUserResult>
    </AuthanticateUserResponse>
  </soap:Body>
</soap:Envelope>
Posted
Updated 30-Aug-12 4:27am
v2

1 solution

hi deepak,
when u r deploying and publishing the service instead of host name you can select your ip address in your iis.
thanks
 
Share this answer
 
Comments
Deepak Namdeo 29-Aug-12 0:57am    
hi Unareshraju,
thanks for reply
virtual directory is already on server. i published my webservice from development server. when i deployed to UAT server it was getting proper ipaddress but not on live
is there any setting in iis ?
Unareshraju 29-Aug-12 1:52am    
hi deepak we need seeting in iis.
1)go to iis :
2)select your website or service goto binding instead of port select your ip address.
3)then you can run your application.
now your app running with your ip.
Deepak Namdeo 30-Aug-12 10:36am    
i do not have access on iis of live server
is there any other alternative to set host
values in soap response?
thanks
Unareshraju 31-Aug-12 2:13am    
i am not sure . u can try through the webshare. may this is the way.
Deepak Namdeo 31-Aug-12 2:56am    
thanks for coordination
m using another way to get data from wcf
actually the service is to be consumed by ipad application
do u have idea about consuming WCF service in ipad application?

thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900