Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Type re-definitions in WebServices + Auto Generated Proxy Stubs

Reply
Thread Tools

Type re-definitions in WebServices + Auto Generated Proxy Stubs

 
 
Arthur Mnev
Guest
Posts: n/a
 
      02-02-2004
I'm a little confused about autogenerated stub for web service (If i
create manual one everything works great) the automatic one creates
XML structures (object stubs) corresponding to messages/schema used to
transport XML; However the objects that I really need to deserialize
data to are far more complex then what XML represents.


to bring in a simple example:
class AComplexClass
{
private int v1; private int v2;
public string v3
{
get { v1.ToString() + "::" + v2.ToString(); }
set { parse INT::INT string and place it into v1 & v2 };
}

during serialization Web Service represents this object as
AutoComplexClass
<v3 type=string>string data</v3>


When WSDL is transformed into Proxy Class proxy class will contain sub
Class Called AutoComplexClass and the only propery of it wlll be v3.

This is perfectly legal for as long as only one side knows what the
object really is. In my case I have a library distributed to both, a
web service and a client; therefore both a server and a client have
access to the object and web service is only a way to deliver data.

The question I guess is: is there anything special about proxy stubs
and are they required by some internal mechanism to verify incoming
data or can i just get rid of them and reference my real objects (this
is what i have been doing thus far)

part two of a question is there any way tell AutoGenerating process to
use my REAL object types instad of creating its own half backed stubs
when creating all WebService calls? Manually editing 200 functions is
quite annoying

Thanks in advance.


 
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
Auto Shipping Auto Shipping Scheduling:car moving auto transport linkswanted ASP .Net 1 11-22-2013 07:02 AM
Axis2 / Java automatically generated web stubs gwoodhouse@gmail.com Java 2 10-21-2010 10:42 PM
WLDeploy for EJB Module -- why are my stubs not generated ? David Van de Voorde Java 0 12-16-2005 03:14 PM



Advertisments