Where is the asmx service client(web reference) to WCF client Service reference how to reference -


so going through , updating old web service client code , trying figure how update of features of asmx client setup stuff wcf standard...

for instance these line of code...

service.requestsoapcontext.security.timestamp.ttlinseconds = 180; service.requestsoapcontext.security.tokens.add(sectoken); 

where sectoken microsoft.web.services2 usernametoken...

sectoken = new usernametoken(credential.username, credential.password, passwordoption.sendplaintext); 

and credential system.net.networkcredential.

what equivalent in wcf? doing googling, looks should set operationcontextscop @ point looks can add timestamp , token... not sure happening when that? operationcontextscope? has been mentioned on microsoft's site, loathed admit not sure if applies circumstance...

also how 1 set service.url? tried this...

service.endpoint.listenuri = new uri(config.getattribute("serviceendpoint")); 

that seem work, again not certain...

they overload the soap service client...

soapmessagefilter.overloadsoapserviceclient(service); 

what equivalent in wcf???

again, there plenty of information each of pieces out on internet, nothing concisely explains how upgrade functionality if migrating asmx client services wcf client services.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -