<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>IWeb Forum Rss Feed</title><link>http://www.codeplex.com/IWeb/Thread/List.aspx</link><description>IWeb Forum Rss Description</description><item><title>New Post: Having problem while decrypting my credentials.</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=75037</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Try using a longer crypto key&lt;/p&gt;&lt;/div&gt;</description><author>adefwebserver</author><pubDate>Fri, 13 Nov 2009 16:47:48 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while decrypting my credentials. 20091113044748P</guid></item><item><title>New Post: Having problem while decrypting my credentials.</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=75037</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;When i set Encrypted property of my webservice's IWebAuthendicationHeader -that is assigned to my webservice's IWebAuthendicationHeaderValue&amp;nbsp;property such as:&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt; IWebAuthendicationHeader.Encrypted = &lt;span style="color:#A31515"&gt;&amp;quot;true&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;pre&gt;It throws ann exception: &lt;pre&gt;&amp;quot;System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&amp;gt; System.Security.Cryptography.CryptographicException: Length of the data to decrypt is invalid.
   at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)&amp;quot;&lt;/pre&gt;
&lt;pre&gt;My pass is of 9 characters, username is just 4 characters and key to crypto is 4 characters. How can i resolve this?&lt;/pre&gt;
&lt;pre&gt;Thanks...&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Fri, 13 Nov 2009 15:16:27 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while decrypting my credentials. 20091113031627P</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;And that is the web method of the webservice (of IWEB) that is supposed not to be called in case of wrong credentials - It may help&amp;nbsp;:&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Data;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Configuration;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Linq;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Security;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.HtmlControls;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.WebControls;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.WebControls.WebParts;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Xml.Linq;

&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Services;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Services.Protocols;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; DotNetNuke.Entities.Users;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; DotNetNuke.Common.Utilities;


&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Collections;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.ComponentModel;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Data;


&lt;span style="color:Blue"&gt;using&lt;/span&gt; Simetri.Modules.Data.Mtk;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; Simetri.Modules.Data.Mtk.DatabaseSpecific;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; SD.LLBLGen.Pro.ORMSupportClasses;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Configuration;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; Simetri.Modules.Data.Mtk.EntityClasses;

&lt;span style="color:Gray"&gt;///&lt;/span&gt; &lt;span style="color:Gray"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt;&lt;span style="color:Green"&gt; Summary description for FirmaBilgileri&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt; &lt;span style="color:Gray"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt;&lt;span style="color:Green"&gt; &lt;/span&gt;
&lt;span style="color:Blue"&gt;namespace&lt;/span&gt; DotNetNuke.Modules.IWebCSharp
{
    &lt;span style="color:Green"&gt;//[WebService(Namespace = &amp;quot;http://webservices.DotNetNuke.com/&amp;quot;)]&lt;/span&gt;
    &lt;span style="color:Green"&gt;//[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]&lt;/span&gt;

    &lt;span style="color:Blue"&gt;public&lt;/span&gt; &lt;span style="color:Blue"&gt;partial&lt;/span&gt; &lt;span style="color:Blue"&gt;class&lt;/span&gt; WebService&lt;/pre&gt;
&lt;pre&gt;    {

        [WebMethod(Description = &lt;span style="color:#A31515"&gt;&amp;quot; .....&amp;quot;&lt;/span&gt;), SoapHeader(&lt;span style="color:#A31515"&gt;&amp;quot;IWebCredentials&amp;quot;&lt;/span&gt;)]
        &lt;span style="color:Blue"&gt;public&lt;/span&gt; FirmaEntity GetFirma(&lt;span style="color:Blue"&gt;string&lt;/span&gt; firmaKey)
        {&lt;/pre&gt;
&lt;pre&gt;		//Here are the codes...&lt;/pre&gt;
&lt;pre&gt;        }
    }
}
            
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Tue, 10 Nov 2009 12:49:44 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091110124944P</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Let's make it clear. My portal is on the server&amp;nbsp;and what i did(i told in my previous post) is on the client.&lt;/p&gt;
&lt;p&gt;On portal on my server i did:&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;hit &amp;quot;Edit iWeb Configuration&amp;quot; on IWEB module and under &amp;quot;Method&amp;quot; column , i found the method i wantto use.&lt;/p&gt;
&lt;p&gt;And under &amp;quot;Security Settings&amp;quot; column i chosed &amp;quot;Host&amp;quot; Only the name of the method and &amp;quot;Host&amp;quot; are&amp;nbsp;displayed.&lt;/p&gt;
&lt;p&gt;Others (Company, Application, Group1, Group2, Description )&amp;nbsp;were all empty.&lt;/p&gt;
&lt;p&gt;And on the client i did what i posted previously: (the same as previous post)&lt;/p&gt;
&lt;pre&gt;webservices.iweb.WebService iwebservice = new MyNameSpace.webservices.iweb.WebService();
iwebservice.IWebAuthendicationHeaderValue = IWebAuthendication2.AttachCredentials();
&lt;/pre&gt;
&lt;pre&gt;&lt;pre&gt;And then i called the method of my webservice as such iwebservice.MyMethod(). &lt;/pre&gt;
&lt;pre&gt;I F5 and stepped into AttachCredentials() and assigned non-existing values to PortalID, Username,Password. &lt;/pre&gt;
&lt;pre&gt;I made no other changes. However my service is stilled called and it worked. &lt;/pre&gt;
&lt;pre&gt;How can i prevent my webservice's methods from running, when un-registered user cal them?&lt;/pre&gt;
&lt;/pre&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Tue, 10 Nov 2009 12:07:41 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091110120741P</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;On your portal, if you visit the page where you have added the iWeb module at the bottom there is a link &amp;quot;Edit iWeb Configuration&amp;quot;&lt;/p&gt;
&lt;p&gt;When you click this link and select the relevant portal you can assign the roles that can access the webservice.&lt;/p&gt;
&lt;p&gt;If you leave them as &amp;quot;host&amp;quot; then it can only be accessed by the the client app if it has the host username and password.&lt;/p&gt;
&lt;p&gt;Trev&lt;/p&gt;&lt;/div&gt;</description><author>trevorjdaniel</author><pubDate>Tue, 10 Nov 2009 10:23:39 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091110102339A</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;It been done thanks. Bt i still have problem when interacting with my webservice -that is o a remote server. On client side ,just before calling webservice methods i assigned the values to credentials and then assing the credentials to Web as follows:&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;webservices.iweb.WebService iwebservice = &lt;span style="color:Blue"&gt;new&lt;/span&gt; MyNameSpace.webservices.iweb.WebService();
&lt;span style="color:Green"&gt;//iwebservice.Url = WebserviceURL;&lt;/span&gt;
iwebservice.IWebAuthendicationHeaderValue = IWebAuthendication2.AttachCredentials();

And then i called the method of my webservice as such iwebservice.MyMethod(). I F5 and stepped into AttachCredentials() and assigned non-existing values to PortalID, Username,Password. I made no other changes. However my service is stilled c alled and it worked. How can i prevent my webservice's methods from running, when un-wanted user cal them?&lt;pre&gt;Thanks...
       &lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Tue, 10 Nov 2009 10:19:07 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091110101907A</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;blockquote style="border:solid .1em #ccc;font-style:italic;margin:.25em 1em 0 1em;padding:0 .25em 0 .25em"&gt;&lt;strong&gt;kem wrote:&lt;/strong&gt;&lt;br&gt;
&lt;p&gt;Could someone pls guide me how to secure my webservice with a userid and a password. I will publish my webservices over a server and on a remote client i add those webservices as web references and retrieve data and want this to happen in a secure way. I followed the line (&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://iweb.adefwebserver.com/ExampleCode/SecureWebServices/tabid/64/Default.aspx"&gt;http://iweb.adefwebserver.com/ExampleCode/SecureWebServices/tabid/64/Default.aspx&lt;/a&gt;&amp;nbsp;). However it is not telling how to hadle userid, password and encrypto/decrypto&amp;nbsp;on server and how to call webservice fom client with encrypted userid and pass? So could you ls advice me some guidanec or tell how to do it?&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;The page has this example:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Public&lt;/span&gt; &lt;span&gt;Function&lt;/span&gt; GetUser(&lt;span&gt;ByVal&lt;/span&gt; PortalID &lt;span&gt;As&lt;/span&gt; &lt;span&gt;Integer&lt;/span&gt;, _&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;        &lt;span&gt;ByVal&lt;/span&gt; UserID &lt;span&gt;As&lt;/span&gt; &lt;span&gt;Integer&lt;/span&gt;, &lt;span&gt;ByVal&lt;/span&gt; Username &lt;span&gt;As&lt;/span&gt; &lt;span&gt;String&lt;/span&gt;, &lt;span&gt;ByVal&lt;/span&gt; Password &lt;span&gt;As&lt;/span&gt; &lt;span&gt;String&lt;/span&gt;, &lt;span&gt;ByVal&lt;/span&gt; ModuleId &lt;span&gt;As&lt;/span&gt; &lt;span&gt;String&lt;/span&gt;, _&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;        &lt;span&gt;ByVal&lt;/span&gt; WebPageCall &lt;span&gt;As&lt;/span&gt; &lt;span&gt;Boolean&lt;/span&gt;, &lt;span&gt;ByVal&lt;/span&gt; Encrypted &lt;span&gt;As&lt;/span&gt; &lt;span&gt;Boolean&lt;/span&gt;) &lt;span&gt;As&lt;/span&gt; &lt;/span&gt;&lt;span&gt;&lt;span style="font-size:x-small"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            &lt;span&gt;Dim&lt;/span&gt; objIWebAuthendicationHeader &lt;span&gt;As&lt;/span&gt; &lt;span&gt;New&lt;/span&gt; IWebAuthendicationHeader()&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            objIWebAuthendicationHeader.PortalID = PortalID&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            objIWebAuthendicationHeader.Username = Username&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            objIWebAuthendicationHeader.UserID = UserID&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            objIWebAuthendicationHeader.Password = Password&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            objIWebAuthendicationHeader.Encrypted = Encrypted&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            objIWebAuthendicationHeader.WebPageCall = WebPageCall&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            objIWebAuthendicationHeader.ModuleID = ModuleId&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            &lt;span&gt;Dim&lt;/span&gt; objIWebAuthendication &lt;span&gt;As&lt;/span&gt; &lt;span&gt;New&lt;/span&gt; IWebAuthendication(objIWebAuthendicationHeader)&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            &lt;span&gt;If&lt;/span&gt; &lt;span&gt;Not&lt;/span&gt; objIWebAuthendication.ValidAndAuthorized() &lt;/span&gt;&lt;span&gt;&lt;span style="font-size:x-small"&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;                &lt;span&gt;Return&lt;/span&gt; &lt;/span&gt;&lt;span&gt;&lt;span style="font-size:x-small"&gt;&amp;quot;Not Authorized&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            &lt;/span&gt;&lt;span&gt;&lt;span style="font-size:x-small"&gt;Else&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;                &lt;span&gt;Dim&lt;/span&gt; objUser &lt;span&gt;As&lt;/span&gt; UserInfo = IWebUserInfo.GetUserInfo(PortalID, UserID, Username, Password, ModuleId)&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;                &lt;span&gt;Return&lt;/span&gt; &lt;span&gt;&amp;quot;DisplayName: &amp;quot;&lt;/span&gt; &amp;amp; objUser.DisplayName &amp;amp; &lt;span&gt;&amp;quot; - Email: &amp;quot;&lt;/span&gt; &amp;amp; objUser.Email&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;            &lt;span&gt;End&lt;/span&gt; &lt;/span&gt;&lt;span&gt;&lt;span style="font-size:x-small"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:x-small"&gt;        &lt;span&gt;End&lt;/span&gt; &lt;/span&gt;&lt;span&gt;&lt;span style="font-size:x-small"&gt;Function&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;</description><author>adefwebserver</author><pubDate>Mon, 09 Nov 2009 16:39:52 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091109043952P</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;this is the function.....&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;Imports&lt;/span&gt; System.Web
&lt;span style="color:Blue"&gt;Public&lt;/span&gt; &lt;span style="color:Blue"&gt;Class&lt;/span&gt; IWebAuthendication

    &lt;span style="color:Blue"&gt;Public&lt;/span&gt; &lt;span style="color:Blue"&gt;Shared&lt;/span&gt; &lt;span style="color:Blue"&gt;Function&lt;/span&gt; AttachCredentials() &lt;span style="color:Blue"&gt;As&lt;/span&gt; TaxiRoute_Mobile_Customer.uk.co.taxiroute.www.IWebAuthendicationHeader
        &lt;span style="color:Blue"&gt;Dim&lt;/span&gt; IWebAuthendicationHeader &lt;span style="color:Blue"&gt;As&lt;/span&gt; &lt;span style="color:Blue"&gt;New&lt;/span&gt; TaxiRoute_Mobile_Customer.uk.co.taxiroute.www.IWebAuthendicationHeader

        IWebAuthendicationHeader.PortalID = &lt;span style="color:#A31515"&gt;&amp;quot;XXX&amp;quot;&lt;/span&gt;
        IWebAuthendicationHeader.Username = &lt;span style="color:#A31515"&gt;&amp;quot;username&amp;quot;&lt;/span&gt;
        IWebAuthendicationHeader.Password = &lt;span style="color:#A31515"&gt;&amp;quot;password&amp;quot;&lt;/span&gt;
        IWebAuthendicationHeader.Encrypted = 0

        &lt;span style="color:Blue"&gt;Return&lt;/span&gt; IWebAuthendicationHeader
    &lt;span style="color:Blue"&gt;End&lt;/span&gt; &lt;span style="color:Blue"&gt;Function&lt;/span&gt;
&lt;span style="color:Blue"&gt;End&lt;/span&gt; &lt;span style="color:Blue"&gt;Class&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>trevorjdaniel</author><pubDate>Mon, 09 Nov 2009 16:26:37 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091109042637P</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Have you added the IWebAuthendication.vb to your project?&lt;/p&gt;
&lt;p&gt;The method is contained within that file.&lt;/p&gt;
&lt;p&gt;Trev&lt;/p&gt;&lt;/div&gt;</description><author>trevorjdaniel</author><pubDate>Mon, 09 Nov 2009 16:24:46 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091109042446P</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;It doesn't acknowledge a method such as AttachCredentials().&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Mon, 09 Nov 2009 15:18:02 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091109031802P</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Kem,&lt;/p&gt;
&lt;p&gt;If i understand your problem correctly then you need to do the following to your client application...&lt;/p&gt;
&lt;p&gt;1. Add the file IWebAuthendication.vb to your project&lt;/p&gt;
&lt;p&gt;2. Make sure you have this line of code in the app as you create the web service&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small"&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;ws.IWebAuthendicationHeaderValue = IWebAuthendication.AttachCredentials()
&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3. Look for the function AttachCredentials in the iwebauthendication file and change to include your username, password and portal.&lt;/p&gt;
&lt;p&gt;Hope that helps&lt;/p&gt;
&lt;p&gt;Trev&lt;/p&gt;&lt;/div&gt;</description><author>trevorjdaniel</author><pubDate>Mon, 09 Nov 2009 13:29:27 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091109012927P</guid></item><item><title>New Post: How to secure my webservices</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74529</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Could someone pls guide me how to secure my webservice with a userid and a password. I will publish my webservices over a server and on a remote client i add those webservices as web references and retrieve data and want this to happen in a secure way. I followed the line (&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://iweb.adefwebserver.com/ExampleCode/SecureWebServices/tabid/64/Default.aspx"&gt;http://iweb.adefwebserver.com/ExampleCode/SecureWebServices/tabid/64/Default.aspx&lt;/a&gt;&amp;nbsp;). However it is not telling how to hadle userid, password and encrypto/decrypto&amp;nbsp;on server and how to call webservice fom client with encrypted userid and pass? So could you ls advice me some guidanec or tell how to do it?&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Mon, 09 Nov 2009 12:29:05 GMT</pubDate><guid isPermaLink="false">New Post: How to secure my webservices 20091109122905P</guid></item><item><title>New Post: Having problem while entegrating my web service to IWEB module</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;It is done. Thanks...&lt;/p&gt;
&lt;p&gt;I just refered to WebService there in my partial class as such:&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt; &lt;span style="color:Blue"&gt;public&lt;/span&gt; &lt;span style="color:Blue"&gt;partial&lt;/span&gt; &lt;span style="color:Blue"&gt;class&lt;/span&gt; WebService {}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Mon, 09 Nov 2009 12:21:23 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while entegrating my web service to IWEB module 20091109122123P</guid></item><item><title>New Post: Having problem while entegrating my web service to IWEB module</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hopefully this page will explain IWeb:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://iweb.adefwebserver.com/ExampleCode/SecureWebServices/tabid/64/Default.aspx"&gt;http://iweb.adefwebserver.com/ExampleCode/SecureWebServices/tabid/64/Default.aspx&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>adefwebserver</author><pubDate>Sat, 07 Nov 2009 20:26:43 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while entegrating my web service to IWEB module 20091107082643P</guid></item><item><title>New Post: Having problem while entegrating my web service to IWEB module</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I followed those instructions on the link you sent right upto step 8. the only difference is the code i wrote (and it is below). On the 8 step it says : &lt;em&gt;&lt;span style="font-size:x-small"&gt;8) In the web browser, place an instance of the IWEB module on a page &lt;strong&gt;and configure it. &lt;/strong&gt;&lt;br&gt;Then click on the link that appears after &amp;quot;&lt;em&gt;This website implements this web service:&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/em&gt; I placed an intance of IWEB module on page as it says but &lt;em&gt;&lt;strong&gt;configure what?&lt;/strong&gt;&lt;/em&gt; The only thing i can do is to click the link &amp;quot;this website implement this web service&amp;quot;&amp;nbsp; and i did it. And couldn't find the method i coded. That is all i did. So isn'y what i am doing &lt;em&gt;&lt;strong&gt;&amp;quot;using IWeb&amp;quot; &lt;/strong&gt;&lt;/em&gt;? What else am i supposed to do?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is my code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Data;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Configuration;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Linq;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Security;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.HtmlControls;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.WebControls;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.WebControls.WebParts;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Xml.Linq;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Services;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Services.Protocols;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; DotNetNuke.Entities.Users;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; DotNetNuke.Common.Utilities;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Collections;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.ComponentModel;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Data;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; asd.asd.asd.asd;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; asd.asd.ad.ad.asd;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; asd.asd.asd.asd;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Configuration;&lt;br&gt;&lt;span style="color:Blue"&gt;using&lt;/span&gt; asd.asd.asd.asd.asd;&lt;br&gt;&lt;br&gt;&lt;span style="color:Gray"&gt;///&lt;/span&gt; &lt;span style="color:Gray"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt;&lt;span style="color:Green"&gt; Summary description for FirmaBilgileri&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt; &lt;span style="color:Gray"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt;&lt;span style="color:Green"&gt; &lt;/span&gt;
&lt;span style="color:Blue"&gt;namespace&lt;/span&gt; DotNetNuke.Modules.IWebCSharp&lt;br&gt;{&lt;br&gt;    [WebService(Namespace = &lt;span style="color:#A31515"&gt;&amp;quot;http://webservices.DotNetNuke.com/&amp;quot;&lt;/span&gt;)]&lt;br&gt;    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]&lt;br&gt;    &lt;br&gt;    &lt;span style="color:Blue"&gt;public&lt;/span&gt; &lt;span style="color:Blue"&gt;partial&lt;/span&gt; &lt;span style="color:Blue"&gt;class&lt;/span&gt; FirmaBilgileri : DotNetNuke.Modules.IWebCSharp.WebService &lt;span style="color:Green"&gt;//System.Web.Services.WebService&lt;/span&gt;
    {

        [WebMethod]        
        &lt;span style="color:Blue"&gt;public&lt;/span&gt; FirmaEntity GetFirma(&lt;span style="color:Blue"&gt;string&lt;/span&gt; firmaKey)&lt;br&gt;        {&lt;br&gt;            Guid fKey = &lt;span style="color:Blue"&gt;new&lt;/span&gt; Guid(firmaKey);&lt;br&gt;            FirmaEntity firma = &lt;span style="color:Blue"&gt;new&lt;/span&gt; FirmaEntity(fKey);&lt;br&gt;&lt;br&gt;            &lt;span style="color:Green"&gt;// Here i have codes but basically here is short&lt;/span&gt;&lt;br&gt;            //descreption of what i &lt;span style="color:Blue"&gt;do&lt;/span&gt; here&lt;br&gt;            &lt;br&gt;            DbAdapter.FetchEntity(firma, pPath);&lt;br&gt;&lt;br&gt;            &lt;span style="color:Blue"&gt;return&lt;/span&gt; firma;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        &lt;span style="color:Blue"&gt;private&lt;/span&gt; DataAccessAdapter _dbAdapter;&lt;br&gt;&lt;br&gt;        &lt;span style="color:Blue"&gt;public&lt;/span&gt; DataAccessAdapter DbAdapter&lt;br&gt;        {&lt;br&gt;            &lt;span style="color:Blue"&gt;get&lt;/span&gt;
            {
                &lt;span style="color:Blue"&gt;if&lt;/span&gt; (_dbAdapter == &lt;span style="color:Blue"&gt;null&lt;/span&gt;)&lt;br&gt;                {&lt;br&gt;                    _dbAdapter = &lt;span style="color:Blue"&gt;new&lt;/span&gt; DataAccessAdapter();&lt;br&gt;                    _dbAdapter.ConnectionString = asdasd;&lt;br&gt;                }&lt;br&gt;                &lt;span style="color:Blue"&gt;return&lt;/span&gt; _dbAdapter;&lt;br&gt;            }&lt;br&gt;            &lt;span style="color:Blue"&gt;set&lt;/span&gt; { _dbAdapter = value; }&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Sat, 07 Nov 2009 18:56:02 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while entegrating my web service to IWEB module 20091107065602P</guid></item><item><title>New Post: Having problem while entegrating my web service to IWEB module</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;It should be. All IWeb does is provide some methods to authenticate users via DotNetNuke (for example IWebAuthendication(IWebCredentials)). In your sample code it appears you are not doing that so from your sample code you're not actually using IWeb.&lt;/p&gt;
&lt;p&gt;See: &lt;a href="http://iweb.adefwebserver.com/ExampleCode/HowtoextendIWebforyourownmodules/tabid/59/Default.aspx"&gt;http://iweb.adefwebserver.com/ExampleCode/HowtoextendIWebforyourownmodules/tabid/59/Default.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;for proper use of IWeb.&lt;/p&gt;&lt;/div&gt;</description><author>adefwebserver</author><pubDate>Sat, 07 Nov 2009 16:34:38 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while entegrating my web service to IWEB module 20091107043438P</guid></item><item><title>New Post: Having problem while entegrating my web service to IWEB module</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74401</link><description>&lt;div style="line-height: normal;"&gt;&lt;blockquote style="border:solid .1em #ccc;font-style:italic;margin:.25em 1em 0 1em;padding:0 .25em 0 .25em"&gt;&lt;strong&gt;adefwebserver wrote:&lt;/strong&gt;&lt;br&gt;
&lt;p&gt;You have to make sure that &lt;span style="color:black;font-size:12pt"&gt;FirmaEntity&amp;nbsp; is a public class or type and that it is marked [Serializable()]&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Well actually i was using that webservice method that returns value - that is type of &lt;span style="color:black;font-size:12pt"&gt;&lt;em&gt;FirmaEntity&lt;/em&gt;- when i was not using IWEB. So i think it must be &lt;/span&gt;&lt;span style="color:black;font-size:12pt"&gt;&lt;em&gt;[Serializable()]&lt;/em&gt;. If it is not, how can i make it &lt;/span&gt;&lt;span style="color:black;font-size:12pt"&gt;&lt;em&gt;[Serializable()]&lt;/em&gt;. Is to insert a line of &lt;/span&gt;&lt;span style="color:black;font-size:12pt"&gt;&lt;em&gt;[Serializable()]&lt;/em&gt; just above the line &lt;/span&gt;&lt;em&gt;&lt;span style="color:Blue"&gt;public&lt;/span&gt; &lt;span style="color:Blue"&gt;partial&lt;/span&gt; &lt;span style="color:Blue"&gt;class&lt;/span&gt; FirmaBilgileri : System.Web.Services.WebService. enough?&lt;br&gt;&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Sat, 07 Nov 2009 16:28:34 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while entegrating my web service to IWEB module 20091107042834P</guid></item><item><title>New Post: Having problem while entegrating my web service to IWEB module</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;You have to make sure that &lt;span style="color:black;font-size:12pt"&gt;FirmaEntity&amp;nbsp; is a public class or type and that it is marked [Serializable()]&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><author>adefwebserver</author><pubDate>Sat, 07 Nov 2009 12:56:34 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while entegrating my web service to IWEB module 20091107125634P</guid></item><item><title>New Post: Having problem while entegrating my web service to IWEB module</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=74401</link><description>&lt;div style="line-height: normal;"&gt;&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;p&gt;I downloaded and installed IWEB to my DNN with host account . Then under the &lt;strong&gt;App_Code&lt;/strong&gt;&amp;nbsp; folde&lt;em&gt;r i right-clicked&amp;nbsp;&lt;/em&gt; on the &lt;strong&gt;IWebMethods&lt;/strong&gt; folder and selected &lt;strong&gt;Add New Item. &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And then i added a class and i manipulated it as such:&lt;/p&gt;&lt;br&gt;&lt;span style="color:Blue"&gt;&lt;br&gt;using&lt;/span&gt; System;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Data;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Configuration;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Linq;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Security;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.HtmlControls;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.WebControls;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.UI.WebControls.WebParts;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Xml.Linq;

&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Services;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Web.Services.Protocols;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; DotNetNuke.Entities.Users;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; DotNetNuke.Common.Utilities;


&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Collections;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.ComponentModel;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; System.Data;

&lt;span style="color:Green"&gt;// here some dll i need.&lt;/span&gt;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; asd;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; ...;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; ...;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; ..;
&lt;span style="color:Blue"&gt;using&lt;/span&gt; ...;   

&lt;span style="color:Gray"&gt;///&lt;/span&gt; &lt;span style="color:Gray"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt;&lt;span style="color:Green"&gt; Summary description for FirmaBilgileri&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt; &lt;span style="color:Gray"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;span style="color:Gray"&gt;///&lt;/span&gt;&lt;span style="color:Green"&gt; &lt;/span&gt;
&lt;span style="color:Blue"&gt;namespace&lt;/span&gt; DotNetNuke.Modules.IWebCSharp
{
  
    &lt;span style="color:Blue"&gt;public&lt;/span&gt; &lt;span style="color:Blue"&gt;partial&lt;/span&gt; &lt;span style="color:Blue"&gt;class&lt;/span&gt; FirmaBilgileri : System.Web.Services.WebService
    {

        [WebMethod]
        &lt;span style="color:Blue"&gt;public&lt;/span&gt; FirmaEntity GetFirma(&lt;span style="color:Blue"&gt;string&lt;/span&gt; firmaKey)
        {
            Guid fKey = &lt;span style="color:Blue"&gt;new&lt;/span&gt; Guid(Key);
            FirmaEntity firma = &lt;span style="color:Blue"&gt;new&lt;/span&gt; FirmaEntity(fKey);
            
            &lt;span style="color:Green"&gt;// HERE i have lines of codes&lt;/span&gt;

            DbAdapter.FetchEntity(firma, pPath);

            &lt;span style="color:Blue"&gt;return&lt;/span&gt; firma;
        }

       &lt;span style="color:Blue"&gt;private&lt;/span&gt; DataAccessAdapter _dbAdapter;

        &lt;span style="color:Blue"&gt;public&lt;/span&gt; DataAccessAdapter DbAdapter
        {
            &lt;span style="color:Blue"&gt;get&lt;/span&gt;
            {
                
                &lt;span style="color:Blue"&gt;return&lt;/span&gt; _dbAdapter;
            }
            &lt;span style="color:Blue"&gt;set&lt;/span&gt; { _dbAdapter = value; }
        }

        
    }
}

&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Then &lt;span style="font-size:x-small"&gt;in the web browser, i placed an instance of the IWEB module . Then i clicked on the link that appears after &amp;quot;&lt;em&gt;This website implements this web service:&lt;/em&gt;&amp;quot;. Then in the list of webservices methods&amp;nbsp; I couldn't see my webservice method called &lt;em&gt;&lt;strong&gt;GetFirma()&amp;nbsp;&lt;/strong&gt;&lt;/em&gt; - the method i posted above. Do i need to do some extra configuration?&lt;br&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small"&gt;How can i resolve this? Thanks in advance...&lt;br&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>kem</author><pubDate>Sat, 07 Nov 2009 09:48:09 GMT</pubDate><guid isPermaLink="false">New Post: Having problem while entegrating my web service to IWEB module 20091107094809A</guid></item><item><title>New Post: Trying to populate a datagrid from webservice</title><link>http://iweb.codeplex.com/Thread/View.aspx?ThreadId=71695</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks!!!! - you are correct from what I have read.&lt;/p&gt;
&lt;p&gt;I have managed to get it working using a dataset.&lt;/p&gt;
&lt;p&gt;Trev&lt;/p&gt;&lt;/div&gt;</description><author>trevorjdaniel</author><pubDate>Thu, 15 Oct 2009 11:32:17 GMT</pubDate><guid isPermaLink="false">New Post: Trying to populate a datagrid from webservice 20091015113217A</guid></item></channel></rss>