Created
November 12, 2011 15:26
-
-
Save OlegYch/1360681 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by <a href="http://scalaxb.org/">scalaxb</a>. | |
case class ComplexEntity(test: EntityType) | |
trait EntityType | |
object EntityType { | |
def fromString(value: String): EntityType = value match { | |
case "Account" => Account | |
} | |
} | |
case object Account extends EntityType { override def toString = "Account" } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:ns1="http://schemas.datacontract.org/Entities" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
targetNamespace="http://tempuri.org/"> | |
<wsdl:types> | |
<xsd:schema | |
attributeFormDefault="unqualified" elementFormDefault="qualified" | |
targetNamespace="http://schemas.datacontract.org/Entities"> | |
<xsd:complexType name="ComplexEntity"> | |
<xsd:sequence> | |
<xsd:element name="test" type="ns1:EntityType"/> | |
</xsd:sequence> | |
</xsd:complexType> | |
<xsd:simpleType name="EntityType"> | |
<xsd:restriction base="xsd:string"> | |
<xsd:enumeration value="Account"/> | |
</xsd:restriction> | |
</xsd:simpleType> | |
<xsd:element name="EntityType" nillable="true" type="ns1:EntityType"/> | |
</xsd:schema> | |
</wsdl:types> | |
</wsdl:definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by <a href="http://scalaxb.org/">scalaxb</a>. | |
case class ComplexEntity(test: com.entities.EntityType) | |
trait EntityType | |
object EntityType { | |
def fromString(value: String): EntityType = value match { | |
case "Account" => Account | |
} | |
} | |
case object Account extends EntityType { override def toString = "Account" } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by <a href="http://scalaxb.org/">scalaxb</a>. | |
trait EntityType | |
object EntityType { | |
def fromString(value: String): EntityType = value match { | |
case "Account" => Account | |
} | |
} | |
case object Account extends EntityType { override def toString = "Account" } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:ns1="http://schemas.datacontract.org/Entities" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
targetNamespace="http://tempuri.org/"> | |
<wsdl:types> | |
<xsd:schema | |
attributeFormDefault="unqualified" elementFormDefault="qualified" | |
targetNamespace="http://schemas.datacontract.org/Entities"> | |
<xsd:complexType name="ComplexEntity"> | |
<xsd:sequence> | |
<xsd:element name="test" type="ns1:EntityType"/> | |
</xsd:sequence> | |
</xsd:complexType> | |
<xsd:simpleType name="EntityType"> | |
<xsd:restriction base="xsd:string"> | |
<xsd:enumeration value="Account"/> | |
</xsd:restriction> | |
</xsd:simpleType> | |
<xsd:element name="EntityType" nillable="true" type="ns1:EntityType"/> | |
</xsd:schema> | |
</wsdl:types> | |
</wsdl:definitions> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment