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

Top 5 Contributors of the Month
Post New Web Links

Working with Pega generated WSDL in .Net Application

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ADO.Net

Hi All,

As a part of project requirement .Net application has to call web service developed using Pega tool. Reference class generated for the WSDL is not compliance with .Net or other OOP programming standard. Some of the issues are listed below.


  1. Each complex types generated in the WSDL is named as pagedata. Thus when we add a web reference its generated the class name include pagedata1,pagedata2, etc
  2. And also this name will be changed when update it next time.

Let's assume we need to hold employee information and client application manage it through EmployeeData class.

Same data type WSDL reference na

View Complete Post

More Related Resource Links

New off line application working with sdf file. Need advice


Hey Folks

I am working on a project currently where I need to get data out of a 3rd party vendor's software that uses a .sdf file I looked this up and its a SQL CE file. I was hoping to just link to with with access but thats apparently not going to happen. I need to link to the database extract data from it to a csv file for later use. I also and most important I need to get the data from it and create a report that can be printed while on a customers site that my or may not have web access so I need for this program to be on and off line. I had my webapplication that I have been working on open and was able to bring up the sdf file under the server exploere however I can't seem to get anything out of it when I try to do grid views or detail views errors out.

Can I use one of Visual Studio projects to create this sort of applicaiton if so what would be the best approach. I would love to get an access odbc driver since office is allready installed on the employee's laptop's



Generated WSDL - Remove prefix

ssdHi, My Service WSDL is generated with a "s:" prefix. How can I prevent this? ex: <s:schema elementFormDefault="qualified" targetNamespace="http://MyCompany.Services.Utils.LongNameServiceTest/"> <s:element name="Test"> <s:complexType /> </s:element> Thanks in advance, DD

WSDL not working for SQL Reporting Services 2008

I have seutp reporting services successfully, but now i want to generate a proxy to be able to interact progromatically with the reporting services 2008 like I did in 2000 and 2005.  I have tried viewing the WSDL from a command like this:   http://localhost/reportserver/reportservice.asmx?WSDL and I get an error like this:   The path of the item 'WSDL' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath) Get Online Help Any thoughts?  I also tried from WSDL.exe, no dice. Thanksl Ben

WSDL Generated with my.svc?wsdl

I can get WSDL generated by WCF, if I simply point my web browser to URL: http://myhost/iisvirdir/my.svc?wsdl Generated WSDL contains entries like the following: <wsdl:operation name="callname"> <soap:operation soapAction="http://myhost/mypath/myservice/callname" style="document" /> <wsdl:input>   <soap:body use="literal" /> </wsdl:input> <wsdl:output>   <soap:body use="literal" /> </wsdl:output> </wsdl:operation> I see that input and output are always set to use literal. As I understand input and output parameters are XML document and its format is not covered in this WSDL.  I certainly cannot tell what input datastructures are used as input and output parameters from this WSDL. Does it mean that WSDL generated by svc?wsdl is incomplete? If I use Microsoft Windows SDK svcutil tool to generate WSDL I also get associated XSD files. Here is the command I use: svcutil.exe /t:metadata http://myhost/iisvirdir/my.svc That produces a set of files: namespace1.xsd namesapce2.xsd tempuri.org.wsdl my.wsdl I know that with this set of files I can easily generate C# code to implement another WCF service or client. I am surprised to see that after I put so much effort in creating namespaces all over I still get tempuri.org.wsdl (with the same literals for input outpu

Windows Forms application Stopped Working message in Windows Vista



A Windows Forms application developed with VB2008 Express that has been successfully run on two Windows XP systems and a Windows 7 system fails to run on two of two Windows Vista systems tried so far.


Attempting to run the app on a Windows Vista system results in a system dialog box titled, Microsoft Windows, with the message, A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available.  A single button at the lower right of the dialog contains the text, Close Program.
The initial form of the application never displayed and the dialog above appeared with little delay after attempting to start the program.

The program uses an SQL Server Compact Edition 3.5 database and the program is compiled to include the following .DLL files so the user does not need to install SQL ServerCE.

The Load event of the initial form causes a DataSet to be filled from the SQL CE DB.

I have the System Informa

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,


CLR Profiler is not working.Unhandled exception has occured in your application.


For me CLR Profiler is not working.

When i choose profile application and browser to the executable file.It show's up an message box

"waiting for application to start Common language runtime" .

the message box stays for long time and when i click on "Show Heap now" button even as above message box is displayed i get the following error

Unhandled exception has occured in your application. If you click Continue,the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Object reference not set to an instance of an object.

how to convert a byte[] to a xsd:hexBinary in the WSDL generated of a WCF service


Hi, i always see a byte[] type in the contract gets converted into a base64Binary type. What should i do in my WCF service contract so that the date type in the WSDL comes out to hexBinary ?

Will appreciate your help.


Application.Current.MainWindow.InvalidateVisual(); not working


Hello all,


I am now working on the application which needs to get screenshots of WPF applications, the approach I use is injecting into target WPF application code and hooking Direct3D functions to intercept EndScene events and grab backbuffer.


The issue I have is that since the moment I inject into the application code, there is no change in visual representation of its windows then EndScene is not called, but I need to get a first screenshot as soon as possible. For that purpose I would like to force redraw of entire main window of the application. For this pupose in the injected code I call


Response.Redirect not working on an UpdatePanel if redirecting to a ClickOnce application (in some c



I have a strange issue. I am using the AjaxControlToolkit 3.0.30930 (the most recent). I have a very simple page with an UpdatePanel. A button on the UpdatePanel invokes Response.Redirect and passes the URL of a Click Once application on the same server. This works well if I run the website on my local system (Windows 7, IIS 7.5).

If I run the website on a remote system (Windows Server 2008, IIS 7.5, same settings) the redirect simply does not work when invoking the page from remote (using the IP address). Instead a postback is executed. Even if I use the IP address of the webserver to invoke the website locally on the webserver, the redirect does not work. Using http://localhost on the webserver the redirect works well.

I tried another test page with no UpdatePanel: The redirect works well in all scenarios.

I tried out to invoke the ClickOnce application using a link instead of Response.Redirect: The redirect works well in all scenarios, even with an UpdatePanel.

Does anyone have a clue what the problem might be?


Here is the ASPX:


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestWithUpdatePanel.aspx.cs" Inherits="TestWithUpdatePanel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E

Custom Web Application URL is not working.

I have created a web application on port 80 and have created a site collection for it. I have assigned the web app a custom URL.  SharePoint by default tries to insert the server name as the URL. For some reason, when I use a custom URL, the site is not accessible. However, when I leave the default server name, the site is suddenly accessible. Why is this the case and how can I make it so I can use custom URLs? Thanks.

WPF(Speech to Text Application) has stopped Working


This is an application(for converting the Speech to text) created in WPF (C# .net) in Windows Server 2008 Enterprise R2. It is buiding properly and while running it is showing the error WPF application has stopped working and it needs to close the program.

The Error details

Problem signature:

Problem Event Name: APPCRASH

Application Name: WPFSpeechToText.exe

Application Version:

Application Timestamp: 4cc2aeaa

Fault Module Name: KERNELBASE.dll

Fault Module Version: 6.1.7600.16385

Fault Module Timestamp: 4a5bdfe0

Exception Code: c000041d

Exception Offset: 000000000000aa7d

OS Version: 6.1.7600.

Locale ID: 1033

Additional Information 1: af5f

Additional Information 2: af5f87ebdae7965d2b41e6339144a33c

Additional Information 3: bdb6

Additional Information 4: bdb62151460fc71dea0ef6a609bbf67a

Read our privacy statement online:


If the online privacy statement is not available, p

Can a WCF Server "Stub" be Generated from WSDL (eg. via svcutil) ?


What I would like to know is whether there is any tool out there that can generate a WCF Server stub for us, given WSDL & XSD. I am not talking about generating a client proxy - I am talking about generating the skeleton of a server (web service) based on supplied WSDL and XSD.

In other words it would generate a Service class, the Service data structures, the service interfaces etc, with the WCF appropropriate attributes applied where necessary to match the WSDL.

I realise it's an unusual request but we are needing to integrate with a web service that is not directly accessible to us (thinked locked down installation, defence etc) and we were thinking of building a "dummy version" of the web service (since it is very simple) so we can first test against it before moving onto the real thing.

Without this we will have to do most of our development on-site against the real web service, because it is not externally exposed.

The organisation has provided us, however, the WSDL and XSD files and whilst we can hand-craft a service and spend lots of time trying to make it identical to the supplied schemas, I thought a tool might be able to generate a WCF server skeleton for us easily.


C# reading Java/Php/SOAP service, WSDL generated file missing some namespace information

I'm trying to use a Web Service, which I believe is Java/php/SOAP, using C#.
I can connect and send fine, but the results, which are an array of information,
is null. The return is not instant, and I can get back errors.
I believe the problem is in the WSDL translation. The actual response coming back
does not line up with the WSDL generated code in reguards to namespaces. In
perticular, 'getCategoryTreeResponse' & 'getCategoryTreeResult' do not show up 
in the generated file.
I'm quite sure the WSDL file provided is poorly written but I have no control
over it. WSDL.exe only works when I pass a saved copy of the web service's
provided WSDL information due to the way it is called.

WCF WSDL generated paths for xsd:schema, wsdl:import, soap:address wrong for WCF behind a firewall.


My WCF server is behind a firewall
but the schema locations are incorrect in the wsdl

   <xsd:schema targetNamespace="http://www.myserver.net/Imports">
      <xsd:import schemaLocation="" namespace="http://www.myserver.net" />
      <xsd:import schemaLocation="" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
      <xsd:import schemaLocation="

Search not working for one web application but is working for two others


I have three web apps: sp2010, teams and projects. I can use the search box to search the scopes of All, This Site and People in the sp2010 and the teams web applications. However, I can only search This Site in the projects web app. The other searches - All and People send me to an error page

I have noticed that the url in the teams web app is http://teams/_layouts/OSSSearchResults.aspx?k=hudson&s=All%20Sites after the search completes and the url in the projects web app is http://projects/Search/Results.aspx?k=hudson&s=All%20Sites.

I have checked and all three web apps have the same settings for Site Actions > Site Collection Administration > Search settings.

One other thing I noticed is that the teams and sp2010 web apps do not have the FAST configuration links under the Site Collection Administration but the projects web apps do. Could it be that search is not working for this web app due to the type of site collection it is? It is using the Team Site Template.





this application is not working in FF


it is working ie,crome,safari . but it is not working Firefox.

i think that the problem is here.lstMultipleValues.Attributes.Add("onclick", "FindSelectedItems(this," + txtSelectedMLValues.ClientID + ");");

can i write this code for firefox in different type?

<script type="text/javascript" language="javascript">            
        var timoutID;
        function ShowMList()
            var divRef = document.getElementById("divCheckBoxList");
            divRef.style.display = "block";
            var divRefC = document.getElementById("divCheckBoxListClose");
            divRefC.style.display = "block";
        function HideMList()

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