Solved

WCF setup issue - Getting an empty response

Posted on 2011-03-02
2
1,006 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
ID: 35033193
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
ID: 35035967
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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