Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > wsdl.exe problems

Reply
Thread Tools

wsdl.exe problems

 
 
heath.davies@surfcontrol.com
Guest
Posts: n/a
 
      10-12-2006
I have a scenario where I have thousands of web service clients all
referencing a URL of a .wsdl file generated by SOAP toolkit. I now need
to upgrade the backend of the web service (from SOAP toolkit C++)
without altering the client applications. I thought this was possible
using the wsdl.exe tool which comes with the .NET framework, however
once you have generated the server side code and added your
implementation the address of the .wsdl changes to <URL of .aspx
file>?WSDL. Therefore my question is this, can you use the .wsdl tool
to replace the implementation of a web service with .NET code without
altering the address the client uses to access the web service. (Note:
the clients are using the Microsoft SOAP toolkit to invoke the web
methods).

 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      10-12-2006
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
>I have a scenario where I have thousands of web service clients all
> referencing a URL of a .wsdl file generated by SOAP toolkit. I now need
> to upgrade the backend of the web service (from SOAP toolkit C++)
> without altering the client applications. I thought this was possible
> using the wsdl.exe tool which comes with the .NET framework, however
> once you have generated the server side code and added your
> implementation the address of the .wsdl changes to <URL of .aspx
> file>?WSDL. Therefore my question is this, can you use the .wsdl tool
> to replace the implementation of a web service with .NET code without
> altering the address the client uses to access the web service. (Note:
> the clients are using the Microsoft SOAP toolkit to invoke the web
> methods).


What do you mean that the address of the WSDL file changed? .NET will have
added the ?WSDL address, but the old one should certainly still be there.

Also, you probably want your clients to see your existing WSDL and not one
generated by ASP.NET. So, remove the "documentation" protocol:

<system.web>
<webServices>
<protocols>
<remove name="Documentation"></remove>
<remove name="HttpGet"></remove>
<remove name="HttpPost"></remove>
</protocols>
</webServices>
</system.web>

This will also get rid of two other protocols you probably don't want.

Then just tell your clients to get the WSDL from teh same place as before.

John


 
Reply With Quote
 
 
 
 
heath.davies@surfcontrol.com
Guest
Posts: n/a
 
      10-13-2006
Ok, but how do you actually go about this? I cannot find any
documentation whcih gives you a real step by step approach including
the deployment. At the moment I have a website which contains the old
WSDL, let's call it HelloService. I've generated the server .net code
using wsdl.exe and built a binary, say HelloServiceDotNet.dll. What
would I then do to ensure that requests made from my SoapToolkit
clients to the old WSDL end up going to the .NET code in
HelloServiceDotNet.dll?


John Saunders wrote:
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) oups.com...
> >I have a scenario where I have thousands of web service clients all
> > referencing a URL of a .wsdl file generated by SOAP toolkit. I now need
> > to upgrade the backend of the web service (from SOAP toolkit C++)
> > without altering the client applications. I thought this was possible
> > using the wsdl.exe tool which comes with the .NET framework, however
> > once you have generated the server side code and added your
> > implementation the address of the .wsdl changes to <URL of .aspx
> > file>?WSDL. Therefore my question is this, can you use the .wsdl tool
> > to replace the implementation of a web service with .NET code without
> > altering the address the client uses to access the web service. (Note:
> > the clients are using the Microsoft SOAP toolkit to invoke the web
> > methods).

>
> What do you mean that the address of the WSDL file changed? .NET will have
> added the ?WSDL address, but the old one should certainly still be there.
>
> Also, you probably want your clients to see your existing WSDL and not one
> generated by ASP.NET. So, remove the "documentation" protocol:
>
> <system.web>
> <webServices>
> <protocols>
> <remove name="Documentation"></remove>
> <remove name="HttpGet"></remove>
> <remove name="HttpPost"></remove>
> </protocols>
> </webServices>
> </system.web>
>
> This will also get rid of two other protocols you probably don't want.
>
> Then just tell your clients to get the WSDL from teh same place as before.
>
> John


 
Reply With Quote
 
John Saunders
Guest
Posts: n/a
 
      10-13-2006
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Ok, but how do you actually go about this? I cannot find any
> documentation whcih gives you a real step by step approach including
> the deployment. At the moment I have a website which contains the old
> WSDL, let's call it HelloService. I've generated the server .net code
> using wsdl.exe and built a binary, say HelloServiceDotNet.dll. What
> would I then do to ensure that requests made from my SoapToolkit
> clients to the old WSDL end up going to the .NET code in
> HelloServiceDotNet.dll?


Your clients don't make calls to the WSDL, they make calls to the web
service described by the WSDL. Change the location attribute in the
<soap:address> element inside of <wsdlort> inside of <wsdl:service>. Have
it point to the new URL, and the clients should be using the new one.

John


 
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
Saving the web, charset problems and symbols problems Sak Na rede Ruby 0 01-30-2009 05:05 AM
Problems, problems for newbie Shelly ASP .Net 1 09-03-2007 02:10 AM
Problems compiling simple C++ code (also problems with std::string) Susan Baker C++ 2 06-26-2005 01:43 AM
Re: sound problems and modem problems Harold Potter Computer Support 5 12-04-2003 04:12 PM



Advertisments