c# - Add login and password to Web Service -


first of one-week self taught when comes web service pardon if duh! question. given sample web service , asked re-create new 1 scratch. have been able understand , apply several of elements original web service ran wall one. web service has following element

    <s:element name="runqaas">         <s:complextype>             <s:sequence>                 <s:element name="login" type="s:string"/>                 <s:element name="password" type="s:string"/>                 <s:element name="createdby" type="s:datetime" nillable="true"/>                 <s:element name="createdto" type="s:datetime" nillable="true"/>                 <s:element name="modifiedby" type="s:datetime" nillable="true"/>                 <s:element name="modifiedto" type="s:datetime" nillable="true"/>             </s:sequence>         </s:complextype>     </s:element> 

the user enter username , password given him/her. problem not how create web method ask username , password , how add entries username , password .asmx file? also, how can change properties of elements such maxoccurs , minoccurs? know using visual studio 2010 , programming in c#. appreciated. thank guys.

@criatura, couldn't add comment post new answer here. have ever programmed asmx 5 years ago , security follow standard ws-security usernametoken based in case. ms has wse 3 used programming ws-s , maybe other ws-*: http://www.microsoft.com/en-au/download/details.aspx?id=14089. example of how use usernametoken: http://www.codeproject.com/articles/19508/webservice-authentication-with-usernametoken-in-ws hope helps.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -