472,789 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,789 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 6197
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: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.