Questions tagged [contract-first]

A Web Services development strategy where a WSDL is written first and code that provides the service is generated from the WSDL.

The rationale behind writing a first and then generating code that provides the web service described therein is as follows: due to a range of factors it is the safest implementation strategy for managing change to the web services contract, ensuring interoperability between web service clients which can be implemented in a range of languages and platforms and thus have a range of data types and implementation options.

For more information

cf.

35 questions
55
votes
1 answer

Troubles with WADL / generated XSD using Jersey with a contract-first approach

I have been working on a REST web service using Jersey for a few days now, and managed to have all CRUD operations working, with several exchange formats: XML, JSON, Google Protobuf. However I am facing some issues related to automatically generated…
Marc Carré
  • 1,446
  • 13
  • 19
13
votes
3 answers

Which is the better approach to web services - contract first or contract last?

Which is the better approach to developing web services; contract first or contract last? What are the advantages and disadvantages of each? Which do you have experience with? EDIT This question is about the implementation of a web service (read:…
Martin OConnor
  • 3,583
  • 4
  • 25
  • 32
12
votes
5 answers

How to generate WCF service with SvcUtil.exe

I am using SvcUtil.exe to generate IClassName.cs file from wsdl file and that is working fine. My problem is that I do not know how to generate ClassName.svc file using command arguments for SvcUtil.exe. After running the SvcUtil.exe I would like to…
Skrch
  • 129
  • 1
  • 1
  • 3
12
votes
5 answers

Contract-First SOA with WCF

This question is more of a probe to discover what people are doing in the community, in practical situations, than a specifically targeted question. I have searched pretty broadly about this, and while I have found a lot of bloggers advocating…
jrista
  • 32,447
  • 15
  • 90
  • 130
9
votes
3 answers

Include Schema Type in WSDL file

I created a WSDL by hand that has only one operation with no input parameter and no output parameter. I am getting following error when I try to create a client from this WSDL: Cannot import wsdl:portType Detail: An exception was thrown while…
LCJ
  • 22,196
  • 67
  • 260
  • 418
7
votes
1 answer

Swagger Codegen basePath is being ignored

I'm trying to generate some web services definitions using Swagger Codegen » 2.2.1 All configs are working and the classes are generate correctly by my .yaml definitions. Why the property basePath is being ignored? My @RestController generate…
5
votes
3 answers

How to install Contract-First Tool in VisualStudio 2012

I have VisualStudio 2012 and I'm trying to follow the following tutorial http://msdn.microsoft.com/en-us/library/hh674270.aspx But I couldn't find the option Schema Definition from the WCF pane of the Templates dialog. Do I have to install…
2
votes
1 answer

Do RESTful web services support both contract-first and contract-last approaches?

Does a RESTful web service (e.g. in a JAX-RS implementation) support both contract-first (top-down) approach and contract-last (bottom-up) approach?
user2919819
2
votes
2 answers

Generating Service Contract from a WSDL

I have a WSDL that I need to generate a ServiceContract (OperationContract, DataContract)... I have found a way to do it for ASMX WebServices but can't seem to find how to do it in WCF. I have tried running svcutil AuthPartnerWSDL.wsdl /i…
kay.one
  • 7,622
  • 6
  • 55
  • 74
1
vote
0 answers

Issue generating an Angular endpoint / Model with multipart/form-data

The following is an excempt from my OpenAPI specification that I use to generate my angular services with openapi-generator-cli: requestBody: content: multipart/form-data: schema: type: object properties: …
1
vote
0 answers

WCF Contract First - Creating a Service from a WSDL / Large Amount of XSDs

I am familiar with creating a WCF service bottom up (service first), however, I have been tasked with trying to create a WCF service from a set of WSDLs (Contract-First). I have been given a folder named 'Schema' which contains a set of WSDLs and a…
Scott Moniz
  • 650
  • 11
  • 20
1
vote
0 answers

WCF 4.5 contract-first not generating simple types "correctly"

I have the following simple type defined in an XSD: The representation of a time value that does not include time zone/offset…
SonOfPirate
  • 5,642
  • 3
  • 41
  • 97
1
vote
1 answer

Is it possible to do contract first WCF and expose REST/JSON and SOAP/XML endpoints?

Currently we write contract first WCF SOAP services using .NET 3.5 and WSCF.blue. This allows us to design the Xml documents exchanged using Xsd files. Now that WSDL 2.0 exists and you can design contracts for REST endpoints and there is proper…
RoboJ1M
  • 1,590
  • 2
  • 27
  • 34
1
vote
2 answers

Enable XSD as Type Definition Language is Disabled

I came from this question : How to install Contract-First Tool in VisualStudio 2012 When I tried to perform the steps mentioned by the answer of that question, which is also what is mentioned in the topic Contract-First Tool, I faced the following…
ClayKaboom
  • 1,833
  • 1
  • 22
  • 42
1
vote
2 answers

How to validate WSDL contract break?

I have a notion of what breaks a WSDL contract or not (What are considered non-breaking or backwards-compatible changes to a WSDL contract?) but every time we make a change to some of our WSDLs we need to prove to other teams whether that change…
1
2 3