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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

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

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :.NET Framework
 

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.

 




View Complete Post


More Related Resource Links

Errors when interacting with WorkFlow generated tasks through ISA Server

  

I have a MOSs environment that I have published through ISA Server 2006 and i am getting really strange behavior whentrying to interact with WorkLFow generated tasks when I have connected through ISA. This also seems to affect InfoPath Forms Services. I was wondering if anyone out there is seeing any problems when using ISA Server to interact wih Forms or WorkFlows?

 

The error I get simply states:

the form cannot be submitted to the web server either because your computer is offline or because the host server is currently unavailable.

 

Any help would be appreciated.

 

-joe

 

 


Deserializing Problem when build proxy by svcutil from WSDL

  
Hi, I got a WSDL from a third-party company and have to build a proxy to fetch data. I used svcutil *.wsdl to generate code and config file. Using the proxy I wondered why I got unexpected results: The return value is alway 0 and the string field CTWS_ReturnMsg always empty even if the server sent values. Could anybody help me? Here the WSDL and afterwards the http-traffic (from Wireshark): <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://CEITONWebService.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://CEITONWebService.org/">     <wsdl:types>         <xs:schema xmlns="http://CEITONWebService.org/" xmlns:mstns="http://CEITONWebService.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://CEITONWebService.org" targetNamespace=&q

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

SvcUtil-generated code or shared interface/data contract assembly?

  
If you control both service and client is there any benefit in using svcutil.exe to generate client proxies? Or is it better to share interface/data contract assembly between client and service?

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

Entity Framework: No support for server-generated keys and server-generated values

  
HelloI tried the Beta 1 of the service pack 1 to .net 3.5. If I try to add an entity (and try to save this), I get the Exception "No support for server-generated keys and server-generated values".How can I add entities to my Sqlce- database?I tried to give the id- column (primary key) in the database an identity, another time without identity, only primary key --> none of them worked. I always get the same error.What do I have to change to make successfully a SaveChanges()?Thanks for your help,Gerald

Convert Text to Numeric in reports generated by Microsoft SQL Server 2000

  
Our programming team is producing Excel reports using Microsoft SQL Server 2000 and cannot seem to find a way to produce numeric data as numeric.  It is being produced in the spread sheet as text (with the green triangle in the corner of the cell).  If the user viewing the report has an older version of Excel they cannot even convert it to numeric manually. 

Is there a way to produce numeric data as numeric in the Excel report?

How to test reports generated using web intelligence and sql server?

  

Hi all,

How to test reports generated using web intelligence and sql server?

One way of validating the data is to write sql query based on the report requirement and match the resultset with the data of the report. Then for testing the front end, based on the report requirement,validate the filters or prompts, formatting , printing and exporting feature of the report.

what else can be tested? is it necessary to test the Universe as well? like integrity checking, closed loops, joins etc..?or just run the sql query against the database from which the universe is created and match with the data in the report??

Could anyone Please advice me asap.

Thank You


Eveta

how to test reports generated using web intelligence and sql server

  

Hi all,

How to test reports generated using web intelligence and sql server?

One way of validating the data is to write sql query based on the report requirement and match the resultset with the data of the report. Then for testing the front end, based on the report requirement,validate the filters or prompts, formatting , printing and exporting feature of the report.

what else can be tested? is it necessary to test the Universe as well? like integrity checking, closed loops, joins etc..?or just run the sql query against the database from which the universe is created and match with the data in the report??

Please advice me asap.

Thank You


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.

Thanks


SSRS - Retreiving generated Parameters from Report Server created by using StoredParametersID

  

SSRS - Microsoft SQL Server Reporting Services Version 9.00.4309.00

Problem - StoredParametersID is an rs: (report server) parameter and is not a valid Report Parm and can not be used in web services calls as a parameter. It can not be used as <deviceinfo> and it cannot be used as a "ReportPath" in the web services call.

How can I retreive the current set of generated parameters that are created on the report server side, so I can use these to make a web services call to retreive the Drill Down report since the only method to retreive the report information seems to be a Report URL call with the StoredParametersID included.

 


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.
http://xxx.com/soap.php?target=categories&w

XMLSerializer: Losing data from a generated web service proxy using svcutil

  

I generated a proxy using svcutil with the option ser:XmlSerializer.  When trying to serialize the object I am losing data.  The wsdl came from a .asmx web service.


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

  

My WCF server is behind a firewall
https://www.myserver.net/QA/WS?wsdl
 
but the schema locations are incorrect in the wsdl

   <xsd:schema targetNamespace="http://www.myserver.net/Imports">
      <xsd:import schemaLocation="http://10.3.100.01:860/WS?xsd=xsd0" namespace="http://www.myserver.net" />
      <xsd:import schemaLocation="http://10.3.100.01:860/WS?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
      <xsd:import schemaLocation="http://10.3.100.01:860/WS?xs

Error Generated by Microsoft OLE DB Provider for SQL Server

  

We are running RedDot CMS Version 7.5 Build 7.5.1.31 with MS SQL 2005 and are getting the following database error:

 

<ERROR date="03/12/2010 12:13:54">

   <![CDATA[ SELECT * FROM IO_AFP WHERE AFP0='42EF3175E92B41DEB6F1AAB801A6BA91' AND AFP1='E611107D4BA44817B337BF0C651AD7D8']]>

   <![CDATA[ Error # -2147217885

   Generated by Microsoft OLE DB Provider for SQL Server MoveNext

   Description  Cursor operation conflict

ADO Error   # -2147217885

   NativeError  0

   Description  Cursor operation conflict

   Source       Microsoft OLE DB Provider for SQL Server

ADO Error   # -2147217887

   NativeError  0

   Description  Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

   Source       Microsoft OLE DB Provider for SQL Server ]]>

<

Working with Pega generated WSDL in .Net Application

  

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

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.
Categories: 
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