473,830 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems replacing SoapToolkit with .NET WebMethods (Server Side)

Hi - we are MSDN Enterprise subscribers, our no-spam address is
mu****@computer share.com

We are currently trying to replace a SoapToolkit web-service with a .NET
WebMethod implementation, but can't seem to get the WSDL to line up properly.

I consulted the migration document:
http://msdn.microsoft.com/library/de...oapwebserv.asp

I then used wsdl.exe to create an abstract class definition for the new
service. The class and first method are as follows:

[System.Web.Serv ices.WebService BindingAttribut e(Name="PAFServ erSoapBinding",
Namespace="http ://tempuri.org/wsdl/")]
public abstract class AbstractPAFServ er : System.Web.Serv ices.WebService {

[System.Web.Serv ices.WebMethodA ttribute()]

[System.Web.Serv ices.Protocols. SoapRpcMethodAt tribute("http://tempuri.org/action/PAFServer.GetAd dressList",
RequestNamespac e="http://tempuri.org/message/",
ResponseNamespa ce="http://tempuri.org/message/")]
[return: System.Xml.Seri alization.SoapE lementAttribute ("Result")]
public abstract string GetAddressList( string PostCode, string
StreetName, string StreetNo, bool ExactMatch, out int nItems);

I then created an implementation which derives from this abstract class. All
is fine so far, but the resulting asmx?WSDL does not match the original WSDL.
For instance, the message names:

-------- OLD SOAP TOOLKIT WSDL -------------

- <message name="PAFServer .GetAddressList ">
<part name="PostCode" type="xsd:strin g" />
<part name="StreetNam e" type="xsd:strin g" />
<part name="StreetNo" type="xsd:strin g" />
<part name="ExactMatc h" type="xsd:boole an" />
</message>
- <message name="PAFServer .GetAddressList Response">
<part name="Result" type="xsd:strin g" />
<part name="nItems" type="xsd:int" />
</message>

---------- NEW ASMX?WSDL --------------

- <message name="GetAddres sListSoapIn">
<part name="PostCode" type="s:string" />
<part name="StreetNam e" type="s:string" />
<part name="StreetNo" type="s:string" />
<part name="ExactMatc h" type="s:boolean " />
</message>
- <message name="GetAddres sListSoapOut">
<part name="Result" type="s:string" />
<part name="nItems" type="s:int" />
</message>

Now, I read some articles on overriding these message names, for instance:
http://msdn.microsoft.com/library/de...insidewsdl.asp
which describes the use of various attributes to modify the resulting WSDL.
Nothing seems to be able to stop .NET appending "SoapIn" and "SoapOut" to the
message names.

Is there a way of getting the new WSDL to match the old WSDL, or are we
going to have to give up and distribute new client side proxies that match
the .NET asmx WSDL?



Nov 12 '05 #1
3 2142
Hello,

We can only control the Message's name like "GetAddressList ". For "SoapIn"
and 'SoapOut", they are generated by the .NET Framework based on the name
of the WebMethod, the protocol used, and the direction of the message. I
think you have to distribute the new client WSDL.

Regards,

Luke

Nov 12 '05 #2
False alarm folks. It turns out that when you use RPC a lot of the WSDL is
effectively ignored. The existing client has no problems accessing the site
with the asmx code generated by wsdl.exe

"[MSFT]" wrote:
Hello,

We can only control the Message's name like "GetAddressList ". For "SoapIn"
and 'SoapOut", they are generated by the .NET Framework based on the name
of the WebMethod, the protocol used, and the direction of the message. I
think you have to distribute the new client WSDL.

Regards,

Luke

Nov 12 '05 #3
Yes, you are right at this.

Luke

Nov 12 '05 #4

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

Similar topics

2
4262
by: Michael Hatmaker | last post by:
I have begun experimenting with web services, and I created some simple web services in C# and was able to install them with IIS and create an equally simple C# client to consume them. My next experiment was to use Python to consume these same web services, and even though I am able to get Python to consume web services from a variety of sources (Apache SOAP, Glue, AXIS), I cannot get web services created with MS.NET to work. Actually,...
0
5574
by: mdh | last post by:
I have an application written for mod_perl and Apache that needs to be able to send some XML queries to a WebMethods server for access to corporate systems. I have been attempting to use LWP to POST my XML query to the target WebMethods server and find I only get 401s (authorization errors) from the WebMethods server when it is configured for username/password authentication. If credentials are turned off on the WM server, I can get my...
2
2104
by: Prashanth | last post by:
Hi, The application we are developing will be used worldwide by various individuals and organizations . As part of the security restrictions , some of the organization will disable client side javscript in their browsers. SO currently we are in the process of replacing client side javascript with server side javascript. There are some pages we have used eventtriggers like onchange,onclick, etc . When a user restricts scripts as part of...
55
4228
by: drhowarddrfine | last post by:
I'm working on a web site that could use some control using js but am concerned about what problems I may have with potential users having their js turned off. Has anyone had any serious problems with this sort of thing? I know some of these potential users are with big companies and am wondering if anyone had real problems with that.
20
1705
by: John | last post by:
I have a page that requests an index number from the user using a form. The submit then calls itself and a php lookup table determines the web page required and then does a jump. echo "<script>window.location.href='$a'</script>"; Details of the page are passed in the address line and pulled off with POST. All works fine no problems, However if the user hits the back button the jump is made again and
14
2624
by: Bert Vandenberghe | last post by:
Hi, I was wondering if there are any best practices on the creation of webmethods? I'll try to explain this a little more: My problem is that we are changing an existing (large) DCOM application to use web services, but we have like hundreds of different methods you can call and what I wanted to do, is add a couple of generic webmethods that take a serializable .NET class or structure, and in that class or structure we put all the...
1
7729
by: Francisco Miguel | last post by:
Hi!! I have created a web service over SSL, (.NET 1.1 SP1 and Windows 2003 Server) and try to consume it from an ASP page (SoapToolkit 3.0). If the ASP page is in other server (Windows 2000 o XP) it works fine, but if I put that same page at 2003 Server i get the following error: Connector error '800a1518' Connector:WinHTTP is unfamiliar with the Certificate Authority that
16
2549
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client uses IE to talk with a server. The user on the client (IE) sees an ASP net page containing a TextBox. He can write some text in this text box and push a submit button.
9
2418
by: =?Utf-8?B?SG93YXJkIFNtaXRo?= | last post by:
I am using VC++ 6.0 (with SP5 installed). When using WinXP this is with SP2 installed. I am developing an instrumentation system comprising a set of networked PCs connected using TCP/IP TCP links. Communications on the Windows PCs use a class derived from CAsyncSocket(). I have written client and server versions of my software for use on the appropriate PCs. I am also using communicating with a legacy DOS based system, with the software...
0
9641
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10479
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10199
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6948
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5616
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4409
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3073
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.