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. 2 2111
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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>
|
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...
|
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....
|
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
|
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
| |
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&
|
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&
|
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"))
{
|
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"/>
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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();...
|
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: 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
| |
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...
| |