none
Cannot seem to import WSDL from service stack example: Custom tool warning: Cannot import wsdl:portType RRS feed

  • Question

  • Hi,

    I cannot seem to figure out whats wrong here. I'm trying to get small application in ServiceStack running but I cannot import the wsdl.

    Seems to me though that the wsdl is not getting generated properly.

    My DataContracts are defined. My datamember are defined.

    public class HelloAppHost : AppHostBase
        {
            //Tell Service Stack the name of your application and where to find your web services
            public HelloAppHost() : base("Hello Web Services", typeof(HelloService).Assembly) { }
    
            public override void Configure(Funq.Container container)
            {
               // Config.WsdlServiceNamespace
                //register any dependencies your services use, e.g:
                //container.Register<ICacheClient>(new MemoryCacheClient());
            }
        }
        
        [DataContract (Name="HelloResponse")]
        public class HelloResponse
        {
            [DataMember (Name = "Result")]
            public string Result { get; set; }
        }
    
        [Route("/hello")]
        [Route("/hello/{Name}")]
        [DataContract (Name = "Hello")]
        public class Hello
        {
            [DataMember (Name="Name")]
            public string Name { get; set; }
        }
    
        public class HelloService : Service
        {
            public object Any(Hello request)
            {
                return new HelloResponse { Result = "Hello, " + request.Name };
            }
        }
    
    

    Furthermore I had look at the WSDl and it seems though the datamember are not getting populated into the inpu:

    wsdl:binding name="WSHttpBinding_ISyncReply" type="svc:ISyncReply"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="Hello"><soap:operation soapAction="http://schemas.servicestack.net/types/Hello" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding>

    Full WSDL:

    <wsdl:definitions name="Soap12" targetNamespace="http://schemas.servicestack.net/types"><wsdl:types><xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/"><xs:element name="anyType" nillable="true" type="xs:anyType"/><xs:element name="anyURI" nillable="true" type="xs:anyURI"/><xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/><xs:element name="boolean" nillable="true" type="xs:boolean"/><xs:element name="byte" nillable="true" type="xs:byte"/><xs:element name="dateTime" nillable="true" type="xs:dateTime"/><xs:element name="decimal" nillable="true" type="xs:decimal"/><xs:element name="double" nillable="true" type="xs:double"/><xs:element name="float" nillable="true" type="xs:float"/><xs:element name="int" nillable="true" type="xs:int"/><xs:element name="long" nillable="true" type="xs:long"/><xs:element name="QName" nillable="true" type="xs:QName"/><xs:element name="short" nillable="true" type="xs:short"/><xs:element name="string" nillable="true" type="xs:string"/><xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/><xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/><xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/><xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/><xs:element name="char" nillable="true" type="tns:char"/><xs:simpleType name="char"><xs:restriction base="xs:int"/></xs:simpleType><xs:element name="duration" nillable="true" type="tns:duration"/><xs:simpleType name="duration"><xs:restriction base="xs:duration"><xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/><xs:minInclusive value="-P10675199DT2H48M5.4775808S"/><xs:maxInclusive value="P10675199DT2H48M5.4775807S"/></xs:restriction></xs:simpleType><xs:element name="guid" nillable="true" type="tns:guid"/><xs:simpleType name="guid"><xs:restriction base="xs:string"><xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/></xs:restriction></xs:simpleType><xs:attribute name="FactoryType" type="xs:QName"/><xs:attribute name="Id" type="xs:ID"/><xs:attribute name="Ref" type="xs:IDREF"/></xs:schema><xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.servicestack.net/types"><xs:complexType name="HelloResponse"><xs:sequence><xs:element minOccurs="0" name="Result" nillable="true" type="xs:string"/></xs:sequence></xs:complexType><xs:element name="HelloResponse" nillable="true" type="tns:HelloResponse"/><xs:complexType name="Hello"><xs:sequence><xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/></xs:sequence></xs:complexType><xs:element name="Hello" nillable="true" type="tns:Hello"/></xs:schema></wsdl:types><wsdl:message name="HelloIn"><wsdl:part name="parameters" element="tns:Hello"/></wsdl:message><wsdl:message name="HelloOut"><wsdl:part name="parameters" element="tns:HelloResponse"/></wsdl:message><wsdl:portType name="ISyncReply"><wsdl:operation name="Hello"><wsdl:input message="svc:HelloIn"/><wsdl:output message="svc:HelloOut"/></wsdl:operation></wsdl:portType><wsdl:portType name="IOneWay">
    	
    	</wsdl:portType><wsdl:binding name="WSHttpBinding_ISyncReply" type="svc:ISyncReply"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="Hello"><soap:operation soapAction="http://schemas.servicestack.net/types/Hello" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="WSHttpBinding_IOneWay" type="svc:IOneWay"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/></wsdl:binding><wsdl:service name="SyncReply"><wsdl:port name="WSHttpBinding_ISyncReply" binding="svc:WSHttpBinding_ISyncReply"><soap:address location="http://localhost:57383/soap12"/></wsdl:port></wsdl:service><wsdl:service name="AsyncOneWay"><wsdl:port name="WSHttpBinding_IOneWay" binding="svc:WSHttpBinding_IOneWay"><soap:address location="http://localhost:57383/soap12"/></wsdl:port></wsdl:service></wsdl:definitions>

    • Moved by Caillen Wednesday, August 14, 2013 2:04 AM
    Tuesday, August 13, 2013 11:28 AM

Answers

All replies