Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2006

Tip: Looking for answers? Try searching our database.

Override the generated soap:address in WSDL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MP - 06 Dec 2006 11:40 GMT
Hi all,
I have a problem with my web service: when installed to certain servers
(e.g. load balanced) the URL specified in soap:address gets changed to a
private address, making the service unusable. Is there any way to override
the soap:address generated by the web service or other way round this?
Thanks
John Saunders - 06 Dec 2006 12:02 GMT
> Hi all,
> I have a problem with my web service: when installed to certain servers
> (e.g. load balanced) the URL specified in soap:address gets changed to a
> private address, making the service unusable. Is there any way to override
> the soap:address generated by the web service or other way round this?

Consider how the address is being used. It's simply used as the default URL
for the web service in the client. If you set the Web Reference to Dynamic,
you will be able to set the URL in the application config file.

You can also set the URL at runtime by setting the Url property of the
proxy.

John
MP - 06 Dec 2006 17:55 GMT
Hi John,
thanks for the reply.
Unfortunately your suggestion doesn't apply to my situation.
I try to explain it better:
my web service receives calls from a non-.NET application, so I have no
proxy.
When I try to retrieve the WSDL from the browser using for instance an URL
like this:
https://mysite.com/....?WSDL
the downloaded WSDL contains a <soap:address> like this:
http://mysite.com:81/...?WSDL
and I think this is why the client gets a misleading error message "xml
document must have a top level node".
This is why I'm looking for something that allows me to control that URL in
the WSDL (or to any other workaround).

Any more suggestions?

>> Hi all,
>> I have a problem with my web service: when installed to certain servers
[quoted text clipped - 11 lines]
>
> John
John Saunders - 07 Dec 2006 12:37 GMT
> Hi John,
> thanks for the reply.
[quoted text clipped - 11 lines]
> This is why I'm looking for something that allows me to control that URL
> in the WSDL (or to any other workaround).

I'm afraid I have no suggestions. I use hand-written WSDLs, so I would never
have seen the problem.

I wonder if the ?WSDL at the end is normal, though. I think that the
<soap:address> is meant to be the address of the service, not of the WSDL.

John

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.