Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Patching host name in generated WSDL

 
 
Old 02-08-2007   #1 (permalink)
Arun Gupta


 
 

Patching host name in generated WSDL

How can I patch the hostname in generated WSDL such that all schema
imports use IP address instead of the host name ?

For example my WSDL schema looks like:

<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://<HOSTNAME>/service.svc?xsd=xsd0"
namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://<HOSTNAME>/service.svc?xsd=xsd1"
namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
</xsd:schema>

How can the <HOSTNAME> instead be IP address ?

-Arun

--
Web Technologies and Standards
Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta

My System SpecsSystem Spec
Old 02-11-2007   #2 (permalink)
Arkady Frenkel


 
 

Re: Patching host name in generated WSDL

You can use windows\system32\drivers\etc\hosts file to set HOSTNAME to
needed IP
Arkady

"Arun Gupta" <arun.gupta@gmail.com> wrote in message
news:1170986139.148864@news1nwk...
> How can I patch the hostname in generated WSDL such that all schema
> imports use IP address instead of the host name ?
>
> For example my WSDL schema looks like:
>
> <xsd:schema targetNamespace="http://tempuri.org/Imports">
> <xsd:import schemaLocation="http://<HOSTNAME>/service.svc?xsd=xsd0"
> namespace="http://tempuri.org/"/>
> <xsd:import schemaLocation="http://<HOSTNAME>/service.svc?xsd=xsd1"
> namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
> </xsd:schema>
>
> How can the <HOSTNAME> instead be IP address ?
>
> -Arun
>
> --
> Web Technologies and Standards
> Sun Microsystems, Inc.
> Blog: http://blogs.sun.com/arungupta



My System SpecsSystem Spec
Old 02-13-2007   #3 (permalink)
Arun Gupta


 
 

Re: Patching host name in generated WSDL

I tried that already but didn't help.

I changed the bindings in inetmgr and that did the trick. BTW, read my
blog entry at:

http://blogs.sun.com/arungupta/entry...eroperable_out

if you are interested in interoperability between WCF and Java EE.

-Arun

Arkady Frenkel wrote:
> You can use windows\system32\drivers\etc\hosts file to set HOSTNAME to
> needed IP
> Arkady
>
> "Arun Gupta" <arun.gupta@gmail.com> wrote in message
> news:1170986139.148864@news1nwk...
>> How can I patch the hostname in generated WSDL such that all schema
>> imports use IP address instead of the host name ?
>>
>> For example my WSDL schema looks like:
>>
>> <xsd:schema targetNamespace="http://tempuri.org/Imports">
>> <xsd:import schemaLocation="http://<HOSTNAME>/service.svc?xsd=xsd0"
>> namespace="http://tempuri.org/"/>
>> <xsd:import schemaLocation="http://<HOSTNAME>/service.svc?xsd=xsd1"
>> namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
>> </xsd:schema>
>>
>> How can the <HOSTNAME> instead be IP address ?
>>
>> -Arun
>>
>> --
>> Web Technologies and Standards
>> Sun Microsystems, Inc.
>> Blog: http://blogs.sun.com/arungupta

>
>

My System SpecsSystem Spec
Old 02-14-2007   #4 (permalink)
Arkady Frenkel


 
 

Re: Patching host name in generated WSDL

Thanks , already read . BTW did you re-booted after change hosts file ?
Arkady
"Arun Gupta" <arun.gupta@gmail.com> wrote in message
news:1171416588.340841@news1nwk...
>I tried that already but didn't help.
>
> I changed the bindings in inetmgr and that did the trick. BTW, read my
> blog entry at:
>
> http://blogs.sun.com/arungupta/entry...eroperable_out
>
> if you are interested in interoperability between WCF and Java EE.
>
> -Arun
>
> Arkady Frenkel wrote:
>> You can use windows\system32\drivers\etc\hosts file to set HOSTNAME to
>> needed IP
>> Arkady
>>
>> "Arun Gupta" <arun.gupta@gmail.com> wrote in message
>> news:1170986139.148864@news1nwk...
>>> How can I patch the hostname in generated WSDL such that all schema
>>> imports use IP address instead of the host name ?
>>>
>>> For example my WSDL schema looks like:
>>>
>>> <xsd:schema targetNamespace="http://tempuri.org/Imports">
>>> <xsd:import schemaLocation="http://<HOSTNAME>/service.svc?xsd=xsd0"
>>> namespace="http://tempuri.org/"/>
>>> <xsd:import schemaLocation="http://<HOSTNAME>/service.svc?xsd=xsd1"
>>> namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
>>> </xsd:schema>
>>>
>>> How can the <HOSTNAME> instead be IP address ?
>>>
>>> -Arun
>>>
>>> --
>>> Web Technologies and Standards
>>> Sun Microsystems, Inc.
>>> Blog: http://blogs.sun.com/arungupta

>>


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Crysis warhead patching issue Gaming
Game Patching Issues Vista Games
Prepping for Patching... Vista security
Proxy authentication required error when calling wsdl.exe PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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