Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > How do I override the soap:address field in the auto-generated WSDL document?

Reply
Thread Tools

How do I override the soap:address field in the auto-generated WSDL document?

 
 
Ray Johnson
Guest
Posts: n/a
 
      01-13-2004

My web service will be served on a farm of servers. However, the WSDL
document that get's created
uses information about the local machine. More specifically the
"soap:address" field is set to something
like this:

<soap:address location=http://webserver1:7000/ingenio.asmx />

However, for people to use the real service they need to hit a different
address on our
load balancer. So the soap:address really should be something like this:

<soap:address location=http://services.ingenio.com/ingenio.asmx />

I have been unable to figure out how to tell the .asmx page to generate a
different WSDL
file with the proper address. ANyone know how to do this?

Ray


 
Reply With Quote
 
 
 
 
Jan Tielens
Guest
Posts: n/a
 
      01-13-2004
Check out following article:
http://msdn.microsoft.com/webservice...ry/en-us/dnweb
srv/html/insidewsdl.asp#insidewsdl_code15

Inside WSDL with .NET Attribution
Code block 15 depicts the service element for the MyStore Web service. The
port element is actually a sub-element located under the Service element.
(The Service element will be discussed in the next section.) The port is
given a unique name within the Service element, which in this case is
MyStoreSoap and is linked to a previously defined binding, also named
MyStoreSoap, via the binding attribute. Finally and most importantly, the
port element contains a SOAP address element that specifies the physical
address of this port. If you are using the HTTP transport, then this address
is a URL. If the transport specified in the Bindings element is SMTP, then
this address would be an e-mail address. All requests transmitted to this
address must use the transport and protocol specified in the MyStoreSoap
binding element.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


"Ray Johnson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> My web service will be served on a farm of servers. However, the WSDL
> document that get's created
> uses information about the local machine. More specifically the
> "soap:address" field is set to something
> like this:
>
> <soap:address location=http://webserver1:7000/ingenio.asmx />
>
> However, for people to use the real service they need to hit a different
> address on our
> load balancer. So the soap:address really should be something like this:
>
> <soap:address location=http://services.ingenio.com/ingenio.asmx />
>
> I have been unable to figure out how to tell the .asmx page to generate a
> different WSDL
> file with the proper address. ANyone know how to do this?
>
> Ray
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
javascript validation for a not required field, field is onlyrequired if another field has a value jr Javascript 3 07-08-2010 10:33 AM
Override the generated soap:address in WSDL MP ASP .Net Web Services 2 12-07-2006 12:37 PM
1.Enter space bar for field names and save the field.The field shoud not get saved and an alert should be there as"Space bars are not allowed" Sound Javascript 2 09-28-2006 02:43 PM
OVERride "binding" name and "portType" name in WSDL Bilge ASP .Net Web Services 0 11-21-2003 09:52 PM



Advertisments