wcf - svcutil generated code missing parts -



wcf - svcutil generated code missing parts -

i have this:

"%programfiles%\microsoft sdks\windows\v7.0a\bin\svcutil.exe" ^ /nologo /t:code /l:cs /mc /tcv:version35 /ct:system.collections.generic.list`1 /n:*,myns ^ /config:myserviceproxy.config ^ /out:serviceproxy.cs ^ https://remote-service/servicea?wsdl

it generates classes, types , endpoint configurations expect. when add together multiple endpoints ex:

"%programfiles%\microsoft sdks\windows\v7.0a\bin\svcutil.exe" ^ /nologo /t:code /l:cs /mc /tcv:version35 /ct:system.collections.generic.list`1 /n:*,myns ^ /config:myserviceproxy.config ^ /out:serviceproxy.cs ^ https://remote-service/servicea?wsdl https://remote-service/serviceb?wsdl https://remote-service/servicec?wsdl

no endpoints in myserviceproxy.config, , serviceawsclient() methods missing serviceproxy.cs.

update: removed /i option, bec made classes internal.

update: can generate 2 .cs files, if utilize /serializer:datacontractserializer option, got serviceawsclient() classes , without got shared types. there way both same time?

update: file containing serviceawsclient() classes still not good. methods missing paramteres. why? wsdl contains:

<xs:element name="service" type="tns:service"/> <xs:element name="serviceresponse" type="tns:serviceresponse"/> <xs:complextype name="service"> <xs:sequence> <xs:element name="context" type="ns1:genericcontext" minoccurs="0"/> <xs:element name="userdata" type="ns2:userdata" minoccurs="0"/> </xs:sequence> </xs:complextype> <xs:complextype name="serviceresponse"> <xs:sequence> <xs:element name="resultcontext" type="ns1:genericresponsecontext" minoccurs="0"/> </xs:sequence> </xs:complextype>

svcutil generates:

public void service() { base.channel.service(); }

when should be:

public myns.genericresultcontext service(myns.genericcontext context, myns.servicea userdata) { myns.service invalue = new myns.service(); invalue.context = context; invalue.userdata = userdata; myns.serviceresponse retval = ((myns.servicea)(this)).service(invalue); homecoming retval.resultcontext; }

ty!

the generation failed. svcutil not back upwards multi-targeting.

infact clientbase (the proxy generated base of operations class) can access 1 endpoint.

you unfortunatly have generate 3 diffrent proxies. in fact, theses proxies encapsulating actual channel (socket) communicates service. seems 1 proxy can handle 1 endpoint

wcf svcutil.exe

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -