Skip to content

Commit

Permalink
2002-07-26 Tim Coleman <tim@timcoleman.com>
Browse files Browse the repository at this point in the history
        * ServiceDescription.cs:
                Changed the creation of the XmlSerializer after
                consulting the System.Xml.Serialization namespace
                and trying to serialize a document.  Now works somewhat!

svn path=/trunk/mcs/; revision=6200
  • Loading branch information
Tim Coleman committed Jul 26, 2002
1 parent 6ae048f commit 2289348
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2002-07-26 Tim Coleman <tim@timcoleman.com>
* ServiceDescription.cs:
Changed the creation of the XmlSerializer after
consulting the System.Xml.Serialization namespace
and trying to serialize a document. Now works somewhat!

2002-07-25 Tim Coleman <tim@timcoleman.com>
* OperationMessageCollection.cs:
Some implementation of this class after consulting a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ public sealed class ServiceDescription : DocumentableItem {
ServiceCollection services;
string targetNamespace;
Types types;

static XmlSerializer serializer;
static SoapReflectionImporter importer;
static XmlTypeMapping mapping;


#endregion // Fields
Expand All @@ -45,11 +42,9 @@ public sealed class ServiceDescription : DocumentableItem {

static ServiceDescription ()
{
importer = new SoapReflectionImporter ();
mapping = importer.ImportTypeMapping (typeof (ServiceDescription));
serializer = new XmlSerializer (mapping);
serializer = new XmlSerializer (typeof (ServiceDescription, Namespace);
}

public ServiceDescription ()
{
bindings = new BindingCollection (this);
Expand All @@ -60,9 +55,6 @@ public ServiceDescription ()
portTypes = new PortTypeCollection (this);
retrievalUrl = String.Empty;

SoapReflectionImporter importer = new SoapReflectionImporter ();
XmlTypeMapping mapping = importer.ImportTypeMapping (typeof (ServiceDescription));
serializer = new XmlSerializer (mapping);

serviceDescriptions = null;
services = new ServiceCollection (this);
Expand Down

0 comments on commit 2289348

Please sign in to comment.