473,671 Members | 2,484 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Manipulating/Changing the way proxies are generated

Hi all,

I've been exploring the way I can manipulate WSDL.exe using
SchemaImporterE xtension 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 SchemaImporterE xtension 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
SchemaImporterE xtension 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 2101
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
SchemaImporterE xtension 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 SchemaImporterE xtension 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
SchemaImporterE xtension 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
SchemaImporterE xtension 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 SchemaImporterE xtension 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
SchemaImporterE xtension 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
2325
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 the address "&p2->x" to a poiner and then changing. Looklike this is not perfect, can somebody correct me. My programn is below. Thanks, ============================================================== #include <stdio.h>
4
20611
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 is that I could add the WebReference and view the WSDL in my browser (even in my iPaq Internet Explorer) without any problem, when I try to consume the WebService I get the following error message: "The ServicePointManager does not support proxies...
1
1015
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 first time I instance the webservice proxy class it takes 3-4 seconds. What is .NET doing during this time? The Visual Studio debug console reports the following line... 'TestDocumentEditorControl.exe': Loaded 'b8nfj03n', No symbols loaded....
6
3489
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 existing classes instead of having to generate another set of proxy classes, which are going to be very similar to my existing classes. any idea? thanks, -Jason
1
2761
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
3712
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) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
1
2461
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) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
2
3920
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 simple "Hello World" service, hosted in a console app, and if I call that service via a ChannelFactory<generated proxy, life is good: using (ChannelFactory<IHelloWorldhelloFactory = new ChannelFactory<IHelloWorld>("MyClient")) {
0
1707
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 minOccurs="0" maxOccurs="1" name="xml" type="s:string"/> 1.) For some of those parameters i want to make it mandatory, changing minOccurs to 1: <s:element minOccurs="1" maxOccurs="1" name="xml" type="s:string"/>
0
8483
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8401
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
8926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8824
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
8603
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
8673
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
7444
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...
1
6236
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4227
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...

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.