?
Solved

CustomBinding in WCF using Configuration File - VB.NET

Posted on 2011-04-24
3
Medium Priority
?
857 Views
Last Modified: 2012-05-11
Hi,

Can you please let me know in simple terms:

CustomBinding in WCF using Configuration File - VB.NET

Please provide Host configuration file, Client configuration file & code !

Thanks
0
Comment
Question by:milani_lucie
3 Comments
 
LVL 8

Assisted Solution

by:guvera
guvera earned 800 total points
ID: 35458249
Hi lucie,
 
The below link have an article about custom binding in WCF using Configuration file.

http://www.dotnetfunda.com/articles/article1047-how-to-create-custom-binding-in-wcf-services-.aspx

Also please check the  Sample Code to manage app.config
 Dim strConfig As String
 strConfig = System.Reflection.Assembly.GetExecutingAssembly().
CodeBase.Replace("file:///", "") + ".config"
 Dim doc As XmlDocument = New System.Xml.XmlDocument()
doc.Load(strConfig)'
 Get Node value
MessageBox.Show(doc.SelectSingleNode("descendant::
appSettings/add[@key='ConnectionString']").
Attributes("value").Value())
' Update Node value
doc.SelectSingleNode("descendant::appSettings/
add[@key='ConnectionString']").Attributes("value").Value
= "This is new connection string"

Regards
Guvera
0
 

Author Comment

by:milani_lucie
ID: 35460082
Hi Guvera

Can you please explain these two tags -  <httpTransport />  and  <textMessageEncoding /> ?

<bindings>
                <customBinding>
                                          <binding name=”custombinding”>
                                                                    <httpTransport />
                                                                    <textMessageEncoding />
                                           <binding>
                       </customBinding>
</bindings>

Thanks
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 1200 total points
ID: 35460807
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question