Solved

WCF setup issue - Getting an empty response

Posted on 2011-03-02
2
960 Views
Last Modified: 2012-05-11
Ok I am trying to get a secure WCF service setup, but it is returning a blank response when I view the ?WSDL or /mex/ meta-data.

Here's my web.config:



Any ideas?
<system.serviceModel>
    <bindings>
        <wsHttpBinding>
            <binding name="WsHttpBindingConfig">
                <security mode="TransportWithMessageCredential">
                    <transport clientCredentialType="None" />
                    <message clientCredentialType="UserName" />
                </security>
            </binding>
        </wsHttpBinding>
    </bindings>
    <services>
        <service name="WService" behaviorConfiguration="ServiceBehavior">
            <!-- Service Endpoints -->
            <endpoint address="" binding="wsHttpBinding" bindingConfiguration="WsHttpBindingConfig" name="wsHttpEndpoint" contract="IWService"></endpoint>
            <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
            <host>
                <baseAddresses>
                    <add baseAddress="https://MyHost.com/MyApp/"  />
                </baseAddresses>
                
                
            </host>
        </service>
    </services>
    <behaviors>
        <serviceBehaviors>
            <behavior name="ServiceBehavior">
                
                <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
                <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
                <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
                <serviceDebug includeExceptionDetailInFaults="false"/>
                <serviceCredentials>
                    <userNameAuthentication
                        userNamePasswordValidationMode="MembershipProvider"
                        membershipProviderName="AspNetSqlMembershipProvider"/>
                </serviceCredentials>
                <serviceAuthorization
                    principalPermissionMode="UseAspNetRoles"
                    roleProviderName="AspNetSqlRoleProvider" />
            </behavior>
        </serviceBehaviors>
    </behaviors>
</system.serviceModel>

Open in new window

0
Comment
Question by:imseasick
2 Comments
 
LVL 25

Accepted Solution

by:
apeter earned 500 total points
Comment Utility
Did you test your wcf service separately, and it is working fine?

Is your call from client reaches wcf service?

If yes then enable tracing to see to details.http://msdn.microsoft.com/en-us/library/ms733025.aspx
0
 

Author Comment

by:imseasick
Comment Utility
I figured this out, and it turns out that I am in fact an idiot. I use chrome, which hides XML responses. View:Source did it.

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now