visual studio 2012 - Adding service reference for WF4 workflow service doesn't create client (ClientBase) -


i've created simple wf4 service contains receive/send sequence. i've deployed appfabric , responds expected when viewed via browser (ie, "you have created service"... wsdl links.. etc)

i've added service reference inside vs2012, completes successfully. however, there no reference clientbase class (serviceclient).

however, if instead of adding service reference create service2 class via

svcutil.exe http://localhost/trinityservices/testbed/service2.xamlx?wsdl 

the resulting service2.cs has serviceclient declared,

[system.diagnostics.debuggerstepthroughattribute()] [system.codedom.compiler.generatedcodeattribute("system.servicemodel", "4.0.0.0")] public partial class serviceclient : system.servicemodel.clientbase<iservice>, iservice 

and i'm able declare:

var svc = new serviceclient(); . . string p = svc.getdata(); 

why isn't client class getting generated via service reference process? below full wsdl.

i came across 1 similar post (clientbase classes not available in reference.cs file), can't see direct relation issue. namespaces untouched defaults.

thanks reading!

<?xml version="1.0" ?> <wsdl:definitions name="service2" targetnamespace="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:xsd="http://www.w3.org/2001/xmlschema">   <wsp:policy wsu:id="netnamedpipebinding_iservice_policy">     <wsp:exactlyone>       <wsp:all>         <msb:binaryencoding xmlns:msb="http://schemas.microsoft.com/ws/06/2004/mspolicy/netbinary1"/>         <sp:transportbinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">           <wsp:policy>             <sp:transporttoken>               <wsp:policy>                 <msf:windowstransportsecurity xmlns:msf="http://schemas.microsoft.com/ws/2006/05/framing/policy">                   <msf:protectionlevel>                     encryptandsign                   </msf:protectionlevel>                 </msf:windowstransportsecurity>               </wsp:policy>             </sp:transporttoken>             <sp:algorithmsuite>               <wsp:policy>                 <sp:basic256/>               </wsp:policy>             </sp:algorithmsuite>             <sp:layout>               <wsp:policy>                 <sp:strict/>               </wsp:policy>             </sp:layout>           </wsp:policy>         </sp:transportbinding>         <wsaw:usingaddressing/>       </wsp:all>     </wsp:exactlyone>   </wsp:policy>   <wsdl:types>     <xs:schema attributeformdefault="qualified" elementformdefault="qualified" targetnamespace="http://schemas.microsoft.com/2003/10/serialization/" xmlns:tns="http://schemas.microsoft.com/2003/10/serialization/" xmlns:xs="http://www.w3.org/2001/xmlschema">       <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>   </wsdl:types>   <wsdl:message name="iservice_getdata_inputmessage">     <wsdl:part element="q1:int" name="int" xmlns:q1="http://schemas.microsoft.com/2003/10/serialization/"/>   </wsdl:message>   <wsdl:message name="iservice_getdata_outputmessage">     <wsdl:part element="q2:string" name="string" xmlns:q2="http://schemas.microsoft.com/2003/10/serialization/"/>   </wsdl:message>   <wsdl:porttype name="iservice">     <wsdl:operation name="getdata">       <wsdl:input message="tns:iservice_getdata_inputmessage" wsaw:action="http://tempuri.org/iservice/getdata"/>       <wsdl:output message="tns:iservice_getdata_outputmessage" wsaw:action="http://tempuri.org/iservice/getdataresponse"/>     </wsdl:operation>   </wsdl:porttype>   <wsdl:binding name="basichttpbinding_iservice" type="tns:iservice">     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>     <wsdl:operation name="getdata">       <soap:operation soapaction="http://tempuri.org/iservice/getdata" 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="netnamedpipebinding_iservice" type="tns:iservice">     <wsp:policyreference uri="#netnamedpipebinding_iservice_policy"/>     <soap12:binding transport="http://schemas.microsoft.com/soap/named-pipe"/>     <wsdl:operation name="getdata">       <soap12:operation soapaction="http://tempuri.org/iservice/getdata" style="document"/>       <wsdl:input>         <soap12:body use="literal"/>       </wsdl:input>       <wsdl:output>         <soap12:body use="literal"/>       </wsdl:output>     </wsdl:operation>   </wsdl:binding>   <wsdl:service name="service2">     <wsdl:port binding="tns:basichttpbinding_iservice" name="basichttpbinding_iservice">       <soap:address location="http://localhost/trinityservices/testbed/service2.xamlx"/>     </wsdl:port>     <wsdl:port binding="tns:netnamedpipebinding_iservice" name="netnamedpipebinding_iservice">       <soap12:address location="net.pipe://ip-0a7e0a82/trinityservices/testbed/service2.xamlx"/>       <wsa10:endpointreference>         <wsa10:address>           net.pipe://ip-0a7e0a82/trinityservices/testbed/service2.xamlx         </wsa10:address>         <identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">           <spn>             host/ip-0a7e0a82           </spn>         </identity>       </wsa10:endpointreference>     </wsdl:port>   </wsdl:service> </wsdl:definitions> 

for caught in one, here's issue. had generated web references console service app. default, these implemented workflow activities, not part of client wrapper. once realized misunderstanding, instantiating simple.


Comments