473,320 Members | 1,910 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,320 software developers and data experts.

How to change address location

How do I change the address location in the wsdl

<wsdl:port name="SearchSoap12" binding="tns:SearchSoap12">
<soap12:address location="http://searchservices/engine/search.asmx" />
</wsdl:port>
Anderas
Jan 5 '06 #1
4 6247
Continued:

When I look at the WSDL (http://searchservices/engine/search.asmx?WSDL )I
find that the address:location is wrong.
How can I manipulate address:location?
Andreas
Jan 5 '06 #2
Hi Andreas,

Welcome to MSDN newsgroup.
As for the ASP.NET webservice(asmx) 's autogenerated wsdl document's
service address, it is always pointed to the asmx file's http url address.
So what's the difference between it and your expected address? Also, for
webservice WSDL document, it is mainly used for describe service contract
(method interface and message format....) rather than service's actual port
address... So we don't quite need to change it , and after the clientside
create proxy class to consume the webservce, client code can flexiblely
change the actual service's endpoint address......

Also, based on my research, we can customize our ASMX file's displaying
page by using our own page so that we can point user to our own WSDL
document (create a custom xml file that contains the WSDL document).

#<wsdlHelpGenerator> Element
http://msdn.microsoft.com/library/en...lhelpgenerator
.asp?frame=true

#Configuration Options for XML Web Services Created Using ASP.NET
http://msdn.microsoft.com/library/en...igurationOptio
nsForASPNETWebServices.asp?frame=true

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
From: "andreas.w.h.k. :-\)" <aw**@newsgroup.nospam>
References: <#0**************@tk2msftngp13.phx.gbl>
Subject: Continued: How to change address location
Date: Thu, 5 Jan 2006 12:28:54 +0100
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Response
Message-ID: <OM*************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: www.kf.no 195.18.146.10
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:1325 1
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Continued:

When I look at the WSDL (http://searchservices/engine/search.asmx?WSDL )I
find that the address:location is wrong.
How can I manipulate address:location?
Andreas

Jan 6 '06 #3
Thank you very much for your reply, Steven!

My problem is that the address:location (in the WSDL) differs from the url
in which I use when I surf to my webservice. When I try to Invoke my method
(via the webform) the result pops up in a new window with the url of the
address:location. And that is the wrong url. That is not the URL which I use
when I surfed to my webservice.

Could it be an DNS issue? Because the address in the address:location is
only accessable from the intranet. And the address I use to access the
webservice is a public address accessable from the internet. Two DNS
pointing at the same service.

Andreas :-)
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:VW**************@TK2MSFTNGXA02.phx.gbl...
Hi Andreas,

Welcome to MSDN newsgroup.
As for the ASP.NET webservice(asmx) 's autogenerated wsdl document's
service address, it is always pointed to the asmx file's http url address.
So what's the difference between it and your expected address? Also, for
webservice WSDL document, it is mainly used for describe service contract
(method interface and message format....) rather than service's actual
port
address... So we don't quite need to change it , and after the clientside
create proxy class to consume the webservce, client code can flexiblely
change the actual service's endpoint address......

Also, based on my research, we can customize our ASMX file's displaying
page by using our own page so that we can point user to our own WSDL
document (create a custom xml file that contains the WSDL document).

#<wsdlHelpGenerator> Element
http://msdn.microsoft.com/library/en...lhelpgenerator
asp?frame=true

#Configuration Options for XML Web Services Created Using ASP.NET
http://msdn.microsoft.com/library/en...igurationOptio
nsForASPNETWebServices.asp?frame=true

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
From: "andreas.w.h.k. :-\)" <aw**@newsgroup.nospam>
References: <#0**************@tk2msftngp13.phx.gbl>
Subject: Continued: How to change address location
Date: Thu, 5 Jan 2006 12:28:54 +0100
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Response
Message-ID: <OM*************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: www.kf.no 195.18.146.10
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:1325 1
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Continued:

When I look at the WSDL (http://searchservices/engine/search.asmx?WSDL )I
find that the address:location is wrong.
How can I manipulate address:location?
Andreas

Jan 6 '06 #4
Thanks for your response Andreas,

Yes, I think this is a DNS or webserver(IIS)'s IP address related problem
because when creating the asp.net webservice, the address location we view
in the generated asmx file in browser is identical to the address of the
IIS website's ip address(or mapped dns name....). You can test this with a
web page application also (view some webpages in the server from
browser...). And vs 2005 has no idea of whether the iis site or local
machine has a public IP to external internet or not.....

Also, based on my local test, the expected behavior should be, the address
location in the asmx WSDL document should be the same with the address we
typed in browser... e.g:

when I navigate to the asmx view through

http://localhost/WebServices/MyWebSe...ice1.asmx?WSDL

then, the WSDL's service endpoint shows
<wsdl:port name="Service1HttpPost" binding="tns:Service1HttpPost">
<http:address
location="http://localhost/WebServices/MyWebService/Service1.asmx" />
</wsdl:port>
</wsdl:service>

while if I navigate it through public servername:

http://servername/WebServices/MyWebS...ice1.asmx?WSDL

the wsdl document's endpoint address should be:

<wsdl:port name="Service1HttpPost" binding="tns:Service1HttpPost">
<http:address
location="http://servername/WebServices/MyWebService/Service1.asmx" />
</wsdl:port>
</wsdl:service>
Anyway, the clientside proxy can flexibly change the address to the new
value or updated value since they may create the proxy from a local copy of
the WSDL document rather than through the asmx address...

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "andreas.w.h.k. :-\)" <aw**@newsgroup.nospam>
References: <#0**************@tk2msftngp13.phx.gbl>
<OM*************@tk2msftngp13.phx.gbl>
<VW**************@TK2MSFTNGXA02.phx.gbl>
Subject: Re: Continued: How to change address location
Date: Fri, 6 Jan 2006 09:42:27 +0100
Lines: 89
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
Message-ID: <#3**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: www.kf.no 195.18.146.10
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
microsoft.public.dotnet.framework.webservices:1326 2
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Thank you very much for your reply, Steven!

My problem is that the address:location (in the WSDL) differs from the url
in which I use when I surf to my webservice. When I try to Invoke my method
(via the webform) the result pops up in a new window with the url of the
address:location. And that is the wrong url. That is not the URL which I
use
when I surfed to my webservice.

Could it be an DNS issue? Because the address in the address:location is
only accessable from the intranet. And the address I use to access the
webservice is a public address accessable from the internet. Two DNS
pointing at the same service.

Andreas :-)
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:VW**************@TK2MSFTNGXA02.phx.gbl...
Hi Andreas,

Welcome to MSDN newsgroup.
As for the ASP.NET webservice(asmx) 's autogenerated wsdl document's
service address, it is always pointed to the asmx file's http url address.
So what's the difference between it and your expected address? Also, for
webservice WSDL document, it is mainly used for describe service contract
(method interface and message format....) rather than service's actual
port
address... So we don't quite need to change it , and after the clientside
create proxy class to consume the webservce, client code can flexiblely
change the actual service's endpoint address......

Also, based on my research, we can customize our ASMX file's displaying
page by using our own page so that we can point user to our own WSDL
document (create a custom xml file that contains the WSDL document).

#<wsdlHelpGenerator> Element
http://msdn.microsoft.com/library/en...lhelpgenerator asp?frame=true

#Configuration Options for XML Web Services Created Using ASP.NET
http://msdn.microsoft.com/library/en...igurationOptio nsForASPNETWebServices.asp?frame=true

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
From: "andreas.w.h.k. :-\)" <aw**@newsgroup.nospam>
References: <#0**************@tk2msftngp13.phx.gbl>
Subject: Continued: How to change address location
Date: Thu, 5 Jan 2006 12:28:54 +0100
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Response
Message-ID: <OM*************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: www.kf.no 195.18.146.10
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:1325 1
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Continued:

When I look at the WSDL (http://searchservices/engine/search.asmx?WSDL )I
find that the address:location is wrong.
How can I manipulate address:location?
Andreas


Jan 9 '06 #5

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

Similar topics

4
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
0
by: S | last post by:
Hi, I have a MS Access db MDE which is linked to some SQL tables on a server. Now in my company we are using a certain IP address. The same MDE is given to external company to use, but they...
1
by: | last post by:
Hello, I have a problem when I try to do this on a aspx page.. Is there anything wrong with this approach? This is the javascript function <Script Language='JavaScript'> function...
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. ...
4
by: toton | last post by:
Hi, How to find address of a class from inside? My class having a overloaded new & delete. new allocates the memory like void* operator new(std::size_t size) throw(){ cout<<"op new...
5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar?...
13
by: bushi | last post by:
hi everyone! i want to get the ipaddress,and the country name of a webpage visitor,using asp.Net(C#).if anyone knows about it,plz rply me. thanx in advance.
6
by: Andrew Jocelyn | last post by:
Hi How do I programmatically change (read/write) the values in this app.config file at runtime? Specifically I want to change the client endpoint address but it would be nice to change other...
6
by: Narasimha Rao | last post by:
Hi, I have IP Addresses in my DB table. I want to find the geographic location of each IP address. Can anyone help me if there is any API or solution for this. Thanks in advance.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.