473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

wsdl question

hs
Hi
I have a webservice i created using visual studio 2003, and i want to
expose/deploy it to the internet.
my problem is when i open up the wsdl, it still references an internal
machine

how do i change this

http://192.159.100.81/MyWebService/Service1.asmx

to

http://mywebsite.com/MyWebService/Service1.asmx

in my visual studio project

thanks


Jul 14 '06 #1
6 2742
Hi
I have a webservice i created using visual studio 2003, and i want to
expose/deploy it to the internet.
my problem is when i open up the wsdl, it still references an internal
machine

how do i change this

http://192.159.100.81/MyWebService/Service1.asmx

to

http://mywebsite.com/MyWebService/Service1.asmx

in my visual studio project

thanks
If you set the "URL behavior" to Dynamic, then you will get a line in
the web.config/app.config where you can define the URL.
Regardless of this, you can always set the URL from the code. See the
Url property of the webservice class.

Hans Kesting
Jul 14 '06 #2
hs
Hi Hans
thanks for your help. I tried what you have suggested but my wsdl still has
this reference

<service name="Service1">
<port name="Service1Soap" binding="s0:Service1Soap">
<soap:address location=http://192.159.100.81/MyWebService/Service1.asmx />
</port>
</service>

'192.159.100.81' should be replaced with 'my.website.com' (for example).

any other ideas
thanks (much appreciated)
hs
"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:mn***********************@spamgourmet.com...
>Hi
I have a webservice i created using visual studio 2003, and i want to
expose/deploy it to the internet.
my problem is when i open up the wsdl, it still references an internal
machine

how do i change this

http://192.159.100.81/MyWebService/Service1.asmx

to

http://mywebsite.com/MyWebService/Service1.asmx

in my visual studio project

thanks

If you set the "URL behavior" to Dynamic, then you will get a line in the
web.config/app.config where you can define the URL.
Regardless of this, you can always set the URL from the code. See the Url
property of the webservice class.

Hans Kesting


Jul 14 '06 #3
hs,
As was described, the Url property of your proxy class would override this.
Just set the Url property before making any method calls.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"hs" wrote:
Hi Hans
thanks for your help. I tried what you have suggested but my wsdl still has
this reference

<service name="Service1">
<port name="Service1Soap" binding="s0:Service1Soap">
<soap:address location=http://192.159.100.81/MyWebService/Service1.asmx />
</port>
</service>

'192.159.100.81' should be replaced with 'my.website.com' (for example).

any other ideas
thanks (much appreciated)
hs
"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:mn***********************@spamgourmet.com...
Hi
I have a webservice i created using visual studio 2003, and i want to
expose/deploy it to the internet.
my problem is when i open up the wsdl, it still references an internal
machine

how do i change this

http://192.159.100.81/MyWebService/Service1.asmx

to

http://mywebsite.com/MyWebService/Service1.asmx

in my visual studio project

thanks
If you set the "URL behavior" to Dynamic, then you will get a line in the
web.config/app.config where you can define the URL.
Regardless of this, you can always set the URL from the code. See the Url
property of the webservice class.

Hans Kesting


Jul 14 '06 #4
hs
Thanks for your input but i'm still lost.

My situation is as follows.
I have an asp.net webservice running on a development machine (created using
vs 2003).

the IT guys at my work place have exposed this development
machine/webservice to the web using microsoft ISA server 2004 (using a web
publishing rule).

however when i look at the wsdl for mywebservice, it still
refers to the local machine

<soap:address location=http://192.159.100.81/MyWebService/Service1.asmx />

all i'm trying to do is change this reference to

<soap:address
location=http://www.ourcompany.com/hsfolder/MyWebService/Service1.asmx />
Maybe my webservice needs to be in release mode or something. i'm a newbie
to all this thanks


"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:1B**********************************@microsof t.com...
hs,
As was described, the Url property of your proxy class would override
this.
Just set the Url property before making any method calls.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"hs" wrote:
>Hi Hans
thanks for your help. I tried what you have suggested but my wsdl still
has
this reference

<service name="Service1">
<port name="Service1Soap" binding="s0:Service1Soap">
<soap:address location=http://192.159.100.81/MyWebService/Service1.asmx
/>
</port>
</service>

'192.159.100.81' should be replaced with 'my.website.com' (for example).

any other ideas
thanks (much appreciated)
hs
"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:mn***********************@spamgourmet.com. ..
>Hi
I have a webservice i created using visual studio 2003, and i want to
expose/deploy it to the internet.
my problem is when i open up the wsdl, it still references an internal
machine

how do i change this

http://192.159.100.81/MyWebService/Service1.asmx

to

http://mywebsite.com/MyWebService/Service1.asmx

in my visual studio project

thanks

If you set the "URL behavior" to Dynamic, then you will get a line in
the
web.config/app.config where you can define the URL.
Regardless of this, you can always set the URL from the code. See the
Url
property of the webservice class.

Hans Kesting




Jul 17 '06 #5
Yep. That's because your development machine has an internal Class C network
IP address, which is not a public internet address. If you want it to be
"mycompany.com" then it needs to be on a machine that faces the public
internet, or is in the DMZ zone or somehow has been mapped to a public IP
address. Your machine is just reporting what it is supposed to report - its
actual IP address on your internal network.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"hs" wrote:
Thanks for your input but i'm still lost.

My situation is as follows.
I have an asp.net webservice running on a development machine (created using
vs 2003).

the IT guys at my work place have exposed this development
machine/webservice to the web using microsoft ISA server 2004 (using a web
publishing rule).

however when i look at the wsdl for mywebservice, it still
refers to the local machine

<soap:address location=http://192.159.100.81/MyWebService/Service1.asmx />

all i'm trying to do is change this reference to

<soap:address
location=http://www.ourcompany.com/hsfolder/MyWebService/Service1.asmx />
Maybe my webservice needs to be in release mode or something. i'm a newbie
to all this thanks


"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:1B**********************************@microsof t.com...
hs,
As was described, the Url property of your proxy class would override
this.
Just set the Url property before making any method calls.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"hs" wrote:
Hi Hans
thanks for your help. I tried what you have suggested but my wsdl still
has
this reference

<service name="Service1">
<port name="Service1Soap" binding="s0:Service1Soap">
<soap:address location=http://192.159.100.81/MyWebService/Service1.asmx
/>
</port>
</service>

'192.159.100.81' should be replaced with 'my.website.com' (for example).

any other ideas
thanks (much appreciated)
hs
"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:mn***********************@spamgourmet.com...
Hi
I have a webservice i created using visual studio 2003, and i want to
expose/deploy it to the internet.
my problem is when i open up the wsdl, it still references an internal
machine

how do i change this

http://192.159.100.81/MyWebService/Service1.asmx

to

http://mywebsite.com/MyWebService/Service1.asmx

in my visual studio project

thanks

If you set the "URL behavior" to Dynamic, then you will get a line in
the
web.config/app.config where you can define the URL.
Regardless of this, you can always set the URL from the code. See the
Url
property of the webservice class.

Hans Kesting




Jul 17 '06 #6
hs
Thanks for your input Peter

I've got further with this, the generated wsdl now shows 'mycomany.com'
instead of 'local machine' address.

after googling around, all i had to do was force ISA server to pass the
original header.

regards
hs

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:2B**********************************@microsof t.com...
Yep. That's because your development machine has an internal Class C
network
IP address, which is not a public internet address. If you want it to be
"mycompany.com" then it needs to be on a machine that faces the public
internet, or is in the DMZ zone or somehow has been mapped to a public IP
address. Your machine is just reporting what it is supposed to report -
its
actual IP address on your internal network.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"hs" wrote:
>Thanks for your input but i'm still lost.

My situation is as follows.
I have an asp.net webservice running on a development machine (created
using
vs 2003).

the IT guys at my work place have exposed this development
machine/webservice to the web using microsoft ISA server 2004 (using a
web
publishing rule).

however when i look at the wsdl for mywebservice, it still
refers to the local machine

<soap:address location=http://192.159.100.81/MyWebService/Service1.asmx
/>

all i'm trying to do is change this reference to

<soap:address
location=http://www.ourcompany.com/hsfolder/MyWebService/Service1.asmx />
Maybe my webservice needs to be in release mode or something. i'm a
newbie
to all this thanks


"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in
message
news:1B**********************************@microso ft.com...
hs,
As was described, the Url property of your proxy class would override
this.
Just set the Url property before making any method calls.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"hs" wrote:

Hi Hans
thanks for your help. I tried what you have suggested but my wsdl
still
has
this reference

<service name="Service1">
<port name="Service1Soap" binding="s0:Service1Soap">
<soap:address
location=http://192.159.100.81/MyWebService/Service1.asmx
/>
</port>
</service>

'192.159.100.81' should be replaced with 'my.website.com' (for
example).

any other ideas
thanks (much appreciated)
hs
"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:mn***********************@spamgourmet.com. ..
Hi
I have a webservice i created using visual studio 2003, and i want
to
expose/deploy it to the internet.
my problem is when i open up the wsdl, it still references an
internal
machine

how do i change this

http://192.159.100.81/MyWebService/Service1.asmx

to

http://mywebsite.com/MyWebService/Service1.asmx

in my visual studio project

thanks

If you set the "URL behavior" to Dynamic, then you will get a line
in
the
web.config/app.config where you can define the URL.
Regardless of this, you can always set the URL from the code. See
the
Url
property of the webservice class.

Hans Kesting





Jul 20 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sonna Nach | last post by:
Hi All, I am writing a doc/lit web services, in which the elements under SOAPBody is unknown. That is, these two message are acceptable. 1. <SOAP-ENV:Body><Tag1>It is ok</Tag1></SOAP-ENV:Body>...
6
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: "...
1
by: Henrik | last post by:
Hi all,,, Do a WSDL-schema have to contain a schema??? eg. <types> <schema targetNamespace="http://tempuri.org/xsd" xmlns="http://www.w3.org/2001/XMLSchema"...
1
by: drb | last post by:
Hi, Newbie question #2 - hope that's OK! I'm trying to create a WSDL file using one or more XSD schema files. While WSDL.exe doesn't seem to support the XSD "import" function, if I include a...
6
by: Naveed Anwar | last post by:
how a tcp server running on given uri like "soap:tcp://localhost:8080/MyReceiver" will return wsdl. In normal web service case which runs on http returns wsdl by simply appending '?wsdl' in url,...
5
by: Mike Logan | last post by:
I used WSDL.exe to generate a client side web proxy for a web service, called the web service, got the results but an array returned by the web service is not in the results. However if I use...
3
by: GavinM | last post by:
I have the same question as andreas.w.h.k asked on 1/5. Our configuration is as follows: The client must use the URL https://clustername.xyz.com/webservice.asmx to access this web service. ...
0
by: robert | last post by:
Hi all, I'm having a hard time resolving a namespace issue in my wsdl. Here's an element that explains my question, with the full wsdl below: <definitions name="MaragatoService"...
5
by: ayaz.usman | last post by:
Hi, I've built a web services proxy server, in C# using wsdl.exe, by importing wsdl. Howeever, when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does not match the wsdl I fed...
3
by: Siva | last post by:
Hi all, I want to Convert a WSDL to a SOAP message. Is there any way to do this. I am using .NET 2.0 Thanks in Advance Siva
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.