473,388 Members | 884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Manipulating/Changing the way proxies are generated

Hi all,

I've been exploring the way I can manipulate WSDL.exe using
SchemaImporterExtension in order to create a proxy to my liking.

My situation is as follows - I have a web site that has multiple asmx files,
some of them share the same data types (the famous "Order" example).

What I want is this final result:
- A class file that holds all the proxy classes, but no data types
- A class file that holds all the data type, but no proxy classes

So far, I achieved the first by deriving from SchemaImporterExtension and
change that every time a data type is used, it is referenced by another
namespace, therefore the data types are not generated in the first file.

The second file is the problematic one - How can I use the
SchemaImporterExtension class (or any other class) to manipulate the way the
proxies are created ? or to be more specific - How can I instruct the
wsdl.exe not to generate proxy code ?

Thanks in advance,
Ido.
Jan 28 '06 #1
2 2086
Well, lacking any better suggestions coming in, let me take a crack at this.
I was waiting to see if someone was going to pipe in with a suggestion of
some wiz-bang tool that would export a proxy out of a class library. That
would be perfect for your needs. I did a cursory search and didn't find one.

One thing I am certain of, is that you can't do what you ask by manipulating
WSDL.exe.

I think you'll have to create the proxy with WSDL.exe as a starting point,
make two copies, and edit them both to provide what you want. Or hand code
both proxies from scratch.

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Ido Flatow" wrote:
Hi all,

I've been exploring the way I can manipulate WSDL.exe using
SchemaImporterExtension in order to create a proxy to my liking.

My situation is as follows - I have a web site that has multiple asmx files,
some of them share the same data types (the famous "Order" example).

What I want is this final result:
- A class file that holds all the proxy classes, but no data types
- A class file that holds all the data type, but no proxy classes

So far, I achieved the first by deriving from SchemaImporterExtension and
change that every time a data type is used, it is referenced by another
namespace, therefore the data types are not generated in the first file.

The second file is the problematic one - How can I use the
SchemaImporterExtension class (or any other class) to manipulate the way the
proxies are created ? or to be more specific - How can I instruct the
wsdl.exe not to generate proxy code ?

Thanks in advance,
Ido.

Jan 29 '06 #2
Hi Dale,
I too gave up on WSDL, so i've looked around a bit, and found a simple app
named "SED" (originated in unix) that manipulates text files.
I wrote a small script for it that finds every proxy declaration in the
generated code and deletes it - so very simple and so very stupid !

Sometimes a simple tool can be the answer ...

Thanks anyway,
Ido.

"Dale" wrote:
Well, lacking any better suggestions coming in, let me take a crack at this.
I was waiting to see if someone was going to pipe in with a suggestion of
some wiz-bang tool that would export a proxy out of a class library. That
would be perfect for your needs. I did a cursory search and didn't find one.

One thing I am certain of, is that you can't do what you ask by manipulating
WSDL.exe.

I think you'll have to create the proxy with WSDL.exe as a starting point,
make two copies, and edit them both to provide what you want. Or hand code
both proxies from scratch.

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Ido Flatow" wrote:
Hi all,

I've been exploring the way I can manipulate WSDL.exe using
SchemaImporterExtension in order to create a proxy to my liking.

My situation is as follows - I have a web site that has multiple asmx files,
some of them share the same data types (the famous "Order" example).

What I want is this final result:
- A class file that holds all the proxy classes, but no data types
- A class file that holds all the data type, but no proxy classes

So far, I achieved the first by deriving from SchemaImporterExtension and
change that every time a data type is used, it is referenced by another
namespace, therefore the data types are not generated in the first file.

The second file is the problematic one - How can I use the
SchemaImporterExtension class (or any other class) to manipulate the way the
proxies are created ? or to be more specific - How can I instruct the
wsdl.exe not to generate proxy code ?

Thanks in advance,
Ido.

Jan 29 '06 #3

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

Similar topics

2
by: Santa | last post by:
Hello: I am trying to manipulating the data from the pointer (the below program) in the function "test1", Is there any best way of changing the data from that pointer (I am changing by assigning...
4
by: Molina | last post by:
Hi !!! I have a VB.Net application that consumes an WebService. The problem is that the HTTP address works fine, but it will change to an HTTPS address, and it isn't working. The weird thing...
1
by: James Mclennan via .NET 247 | last post by:
Hi, I'm trying to reduce the start-up time of a browser deployed .NET application. The app uses webservices to login to our back-end server. The proxies are generated via the wsdl.exe tool. The...
6
by: | last post by:
Hi, can someone provide some advise on how to get around with using auto generated proxies? basically I already have the proxy classes, and they are used by other places. I'd like use these...
1
by: tomazi75-nospam(at)gmail.com | last post by:
Hello all, I've a problem using urllib2 with a proxy which need authentication. I've tested the 'simple way' : -- code -- import urllib # example values for the post
2
by: SenthilVel | last post by:
Hi All i am getting an error in remoting proxies like the below : Exception rethrown at : at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)...
1
by: SenthilVel | last post by:
Hi All i am getting an error in remoting proxies like the below : Exception rethrown at : at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)...
2
by: =?Utf-8?B?c21pdGhrbDQy?= | last post by:
I'm just now beginning to experiment with WCF, and I've run into an odd hiccup right at the beginning. I presume it's just something I'm doing wrong, but I can't figure it out. I've created a...
0
by: lehu | last post by:
Hi, I have created web service, it's practically finished, but I wanted to do some improvements in generated wsdl: - For string parameters i get element tag such as this in wsdl: <s:element...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.