This project is read-only.

MSE Endpoint crashes for DataContract entity with "Id" field

Topics: Technical Questions, Usage Scenarios
Mar 12, 2010 at 9:28 PM

I imported my wcf BuyerService wsdl successfully to MSE, but when I try to attach it to an endpoint, I get a runtime error:

MseEndpointResolver: Cannot import wsdl:portType

Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter

Error: Member ContactProfile.Id of type System.Int32 hides base class member StructuralObject.Id of type System.String. Use XmlElementAttribute or XmlAttributeAttribute to specify a new name.

XPath to Error Source: //wsdl:definitions[@targetNamespace='http://services.microsoft.com/MSE/svc_BuyerService']/wsdl:portType[@name='svc_BuyerService'] for endpoint http://localhost:88/BuyerService

----------------------------------------------------------------------------------------------

The Id member its refering to defined on the Complex Type "StructuralObject" as

<xs:complexType>
    <xs:sequence>
    </xs:sequence>
   <xs:attribute ref="q1:Id" xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/">
    </xs:attribute>
    <xs:attribute ref="q2:Ref" xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/">
    </xs:attribute>
  </xs:complexType>

FYI...I have the same set of schemas loaded in BizTalk and the endpoints are working fine.