avoiding XML serialization, different WSDL generation, soap serialization

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. #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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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
    >
    >

    Dino Chiesa [Microsoft] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139