Ask a Question related to ASP.NET Web Services, Design and Development.
-
Ramunas Urbonas #1
avoiding XML serialization, different WSDL generation, soap serialization
Hello,
I think my problem is interesting for most of developers who wish to
exchange actual business entities with webservices, not just xml stubs.
I can not use XML serialization, when generating wsdl, because some of
transmited entities have only getters. It is required by our framework and
cannot be avoided (to ensure data consistency in most cases).
How do I exchange business entities in that case? I found several solutions,
basically they all imply serializing my classes with soap/binary formatters
and passing parameters as XmlElements, strings or byte arrays. That implies:
1. versioning problems (but that can be avoided with extra work),
2. anonymous parametes (any serialized object will be passed as
XmlElement, or any other selected transfer type. Type validation will be
performed only during run time, which leads to bugs).
3. using XML serialization either way, just ussing "always XML
serializable" format for parameters.
How else could this problem be addressed? Suggestions are very welcome..
regards,
Ramunas Urbonas
Ramunas Urbonas Guest
-
#39635 [NEW]: Better control for serialization (keyword for permit property serialization)
From: t dot prochazka at centrum dot cz Operating system: all PHP version: 5CVS-2006-11-26 (CVS) PHP Bug Type: Feature/Change... -
Serialization by SOAP server
I wonder if anyone can help.I have a SOAP web service that seems to work OK until it has to send large amounts of data (e.g. 2MB). The data is... -
How to log the SOAP message after serialization on the cleint side?
I know I can use SOAPExtension to read request and response SOAP messages on the server side for a Web Method. Is there a way to do the same thing... -
Serialization
Your web service needs a XML namespace since it's defining a XML Schema. Control this namespace this way: public class Calc { public int... -
Avoiding De-Serialization
I've got what i think is a tough question. I hope someone can help me. We have data entering our software through a Web Service. It is then... -
Dino Chiesa [Microsoft] #2
Re: avoiding XML serialization, different WSDL generation, soap serialization
Rather than transmitting the actual entities, have you considered using an
Adapter (GoF 139) or Visitor (331) or Memento (283) ?
-D
"Ramunas Urbonas" <ramas_nospam_@fortas.ktu.lt> wrote in message
news:ecenViibEHA.2844@TK2MSFTNGP12.phx.gbl...solutions,> Hello,
>
> I think my problem is interesting for most of developers who wish to
> exchange actual business entities with webservices, not just xml stubs.
>
> I can not use XML serialization, when generating wsdl, because some of
> transmited entities have only getters. It is required by our framework and
> cannot be avoided (to ensure data consistency in most cases).
>
> How do I exchange business entities in that case? I found severalformatters> basically they all imply serializing my classes with soap/binaryimplies:> and passing parameters as XmlElements, strings or byte arrays. That> 1. versioning problems (but that can be avoided with extra work),
> 2. anonymous parametes (any serialized object will be passed as
> XmlElement, or any other selected transfer type. Type validation will be
> performed only during run time, which leads to bugs).
> 3. using XML serialization either way, just ussing "always XML
> serializable" format for parameters.
>
> How else could this problem be addressed? Suggestions are very welcome..
>
> regards,
> Ramunas Urbonas
>
>
Dino Chiesa [Microsoft] Guest



Reply With Quote

