.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

why does WSDL file have httpS? i just need http

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :.NET Framework
I built my c# web service.  Tested it.  I built my android app.  Tested it.  All is well.  I tried to get these things to talk to each other...FAIL.  I found these lines in my wsdl. <wsdl:service name="Service1"> - <wsdl:port name="Service1Soap" binding="tns:Service1Soap"> <soap:address location="" /> </wsdl:port> - <wsdl:port name="Service1Soap12" binding="tns:Service1Soap12"> <soap12:address location="" /> </wsdl:port> </wsdl:service> What decided that the path should be https?  I never told it that.  It is overriding IIS which says everything should be http.  Someone please help me before I go ballistic.  Oh and for others developing on android 2.2, it won't take unsigned certs, so you either have to configure a local certificate authority or go http. 

View Complete Post

More Related Resource Links

Setting of sharepoint 2010 custom WCF service "web.config" file for both HTTP and HTTPS



        I have created a custom SharePoint 2010 WCF service that is deployed to 14\ISAPI\MYService folder. The issue i am facing is that this service should be accessible from all Web applications, that can be HTTPS (i.e. SSL) enabled or normal HTTP. If i am making in web.config file for web application that has HTTPS enabled, then it fails for Web applications having normal HTTP configuration. My requirement is that when this WCF service is deployed it should accessible from all web applications that can be HTTPS or HTTP both. I went through number of blogs and tried whatever option they had suggested but none of them worked for me :(. Here are some of the blog that i tried:-

I am not able to read xml file with XDocument if its Descendants has Attribute xmlns="http://abc.co


I am not able to read xml file with XDocument if its Descendants has  Attribute like:-

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
  <row ID="1" xmlns="http://www.opentravela.org/OTA/2003/05">
    <var country_name="Caribbean and Rest of the world" city_name="Kingston" flight_category="Economy Class" via="Atlanta" flight_departure="London Heathrow" airline_logo="Delta" adult_fare="Delta" child_fare="660" infant_fare="561" date1="132" date2="2010-08-15" />


I don't know what to do ?

Looking for some help..

ISAPI Extensions: Creating a DLL to Enable HTTP-based File Uploads with IIS


The MIME-compliant content type, called multipart/form-data, makes writing HTML that uploads files almost trivial. On the server side though, ASP does not have a way to access data in the multipart/form-data format. The most flexible way to access the uploaded file is through a C++ ISAPI Extension DLL. This article describes a reusable ISAPI extension DLL that allows you to upload images and files without writing C++ code. It is coupled with a few COM components that make it readily reusable for ASP development. With .NET, this whole process is much easier, and this article shows preliminary code that uploads files using ASP.NET features.

Panos Kougiouris

MSDN Magazine October 2001

How to switch between HTTP and HTTPS in ASP.NET MVC2


ASP.NET MVC2 has the new RequireHttpsAttribute that you can use to decorate any action to force any non-secure request to come through HTTPS (SSL).  It can be used as simply as this:

        public ActionResult LogOn()

Now any request to the LogOn action that is not over HTTPS will automatically be redirected back to itself over HTTPS.  This is very useful and easy to implement.

Unfortunately though, once the scheme is changed to HTTPS, all following requests will also be under HTTPS, which is not necessarily what you want.  In most cases you do not need all requests to your site to be secure but only certain ones such as the logon page or pages that accept credit card information. 

To handle this you can override the Controller.OnAuthorization method.  From within this method, you can check to see if the RequireHttps attribute is set on the Controller Action by searching the Attributes collection of the ActionDescriptor object. If the RequireHttpsAttribute is not set AND the request is under SSL, then return a redirect result to the HTTP (no

workflows on https: versus http:

I have a production site that uses https:.  I noticed that if I access the site with http instead, the workflows don't start.  Can anyone explain that to me please?

switch between http to https

What is the best way to switch to https from http for some of my aspx pages. Currently, I"m using relative page for all pages.

User permissions in SharePoint 2010 act differently in http and https

I installed SharePoint 2010, created a site (complete with a document library), and assigned user permissions.  Additionally, I set up certificate authentication for all users.  Two problems occur: 1. As the system administrator, when I access the https site, I no longer have permissions to add/edit users 2. When user's, who have permissions to edit/add a document/folder click on "Add document" or the folder icon to add a new folder, they get an error. Any help is much appreciated.

WCF fails to work for HTTPS & HTTP

Currently I am having an issue with getting my WCF ajax calls to work with HTTPS. I get a javascript error telling me the service cannot be found. We need to be able to be able to access the site through http and https. We have some of our consultants who cannnot access the site via their client site without using https. We need both http and https to work. Here is my web.config as is now...   <system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="Time.AjaxServiceAspNetAjaxBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> </behaviors> <bindings> <webHttpBinding> <binding name="webHttpBindingAuthenticated" sendTimeout="00:04:00"> <security mode="TransportCredentialOnly"> <transport clientCredentialType="Ntlm" /> </security> </binding> </webHttpBinding> </bindings> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" > <baseAddressPrefixFilters> <add prefix="http://www.ourdomain.com"/> </baseAddressPrefixFilters> </serviceHostingEnvironment> <services> <service name="Time.AjaxService"> <endpoint address="" behaviorConfiguratio

Web Services Task Editor: The input Web Services Description Language (WSDL) file is not valid

I am trying to prove I can use SSIS to connect to a web service.  The WS I am trying to connect to was developed by a vendor and covered by a NDA, but I was able to reproduce the issue with a public WS. Here are the steps to reproduce the issue: In the Web Services Connection Manager, I entered http://office.microsoft.com/Research/Providers/MoneyCentral.asmx?wsdl in the URL window.  I am able to successfully "test" the connection I pasted the above link into IE and saved the resulting XML as a .wsdl file on my local machine.  In the Web Services Task Editor, General Tab, I specify the path to the .wsdl file and click on "Download WSDL" button.  No Issues When I click on "Input" and select "MoneyCentralRemote" from the drop-down for Service, I receive an error message saying "This version of the Web Services Description Language (WSDL) is not supported" So the questions are: Did I perform the above steps correctly? What WSDL versions are supported in SSIS? How can I tell what WSDL version was used to create the .wsdl I am trying to access? If the WSDL is an unsupported version, is there a work-around to fix the issue?

URL location of the WSDL File for Web Services File Task

I am finding that in order to have the Web Services Task work successfully the location of the WSDL file has to be on a local drive that SSIS is executing upon.  Is the current intended behavior? In my SSIS task I use a URL path to store information extracted from the Web Service.  The information is stored on a different server than the one that SSIS is running upon.  This works properly without error. I have confirmed that SSIS has appropriate permissions to read/write to that directory on that server.  When I attempt to reference the WSDL file (located in the same URL directory that I am saving the information) I get a web services error, 'The Web Services Name is empty, Verify that a valid web service name is available." When I update the Web Service Task attribute to point to the WSDL file located on a local drive it works correctly.  I have confirmed that both WSDL documents are exactly the same. The behavior seems a little strange...so I must be missing something subtle. ...cordell...

WSDL file for Web Services task

I'm trying to use a Web Service for the first time in SSIS.  I have the httpConnection specified, and the test succeeded.  I have put in a text file the code below, and renamed the file with a .WSDL extension.  I'm getting the error below.  What is wrong with my WSDL file?  Thanks!   Could not read the Web Services Description Language (WSDL) file.  The input WSDL file is not valid.  The follwing error occurred while reading the file.  There is an error in XML document (3,3)...   Code Snippet<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><helloworld xmlns="http://lesl.com/" /></soap:Body></soap:Envelope>

How to make use of WSDL+XSD file?

I have to consume a web service created in a Java platform.  The web service is not up yet.  All I have been given are the WSDL file and a XSD file specifying the web service.  How can I make use of these two files to set up the stubs to do my testing of the web service?

I ran wsdl.exe and put both files on the command line and it generated a .cs file.  Then I tried instantiating classes defined in this file.  But the methods do not appear to be what I need.  Is the right approach?


Yahoo Contacts API causes problems (HTTP to HTTPS and back to HTTP)


Dear All, 

I have an asp.net website hosted in a shared hosting environment. I also registered my site to have Yahoo and Google App IDs so that I can user their Social APIs to import my user's contacts (via OAuth). So everything was running fine until I've installed a SSL certificate. My site uses forms authentication which redirects each request to http://mysite.com/account/login.aspx now I wanted this page to be delivered via HTTPS so I wrote the following code in the Page_Init event of the login.aspx page:

    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        If Not Request.IsSecureConnection Then
            Dim RetUrl As String = Request.Url.ToString.Replace("http", "https")
        End If
    End Sub

so it did the right thing for me. When user is authenticated using Forms Authentication it redirects the user to the UserHome.aspx page but with the HTTPS

URL is: https://mysite.com/userhome.aspx

so now each and every request is served using HTTPS and this is not a big problem but the Y

Can not connect to ReportServer. HTTP 404 - File not found

I am running SQL Server 2008 Express.

I notice it did not create the reportserver directory in the Default Web Site.  I read one solution that said to go in Reporting Services Configuration Manager and click on the New button.  I can not find the New button.

I think the original problem was my IIS server was not working right so I reinstalled it.  It is working now.  How do I get Reporting Services to recreate the directories?

Thanks for any help,


Need advice on reliable file upload via Http



I want to have an upload functionality for uploading large files -- as large as 1GB. I see some sites successfully implementing reliable upload functionality without using any upload clients e.g. ActiveX, Java, etc.

Can anyone offer me advice on how to handle this? Some suggest, the secret is sending the large file in smaller and more manageable chunks to the server. If that't the case how do I handle that?

How to Use WSDL file in our ASp.net ,c# application


Dear All,

Please try to guide me i am new to this area.i  received WSDL file from my client to access there database. But i dont know how to add the WSDL file to my Asp.net web application and How to use it. Please try to explaine me in detailed iam new .please try give me As soon as possible.

Appriciate  urgent action

Thanking you,


How to get rid of targetnamespace="http://tempuri.org" in Workflow WCF service WSDL (.NET 3.5)


I have created a Workflow Sequential Service which is hosted in IIS.


In the Servicecontract Interface you can define a ServiceContract namespace. Also you can define a namespace in the workflowserviceattributes property. But after changing these namespace properties I still get at the <wsdl : definition targetnamespace:http://tempuri.org.


How can I change that property in a workflowservice (WCF)?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend