swagger-api / swagger-api/swagger-codegen

Which client language support XML payload (response)?

Open
#5,646 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Java Enhancement: Feature General: Question help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

As the title say Which client language support XML payload (response)? i'm trying with the java client but i'm getting

io.swagger.client.ApiException: Content type "application/xml" is not supported for type: class io.swagger.client.model.Collection
	at io.swagger.client.ApiClient.deserialize(ApiClient.java:850)
	at io.swagger.client.ApiClient.handleResponse(ApiClient.java:1045)
	at io.swagger.client.ApiClient.execute(ApiClient.java:972)
	at io.swagger.client.api.CatalogApi.restfulShoppingTagsGetWithHttpInfo(CatalogApi.java:304)
	at io.swagger.client.api.CatalogApi.restfulShoppingTagsGet(CatalogApi.java:289)
	at io.swagger.client.api.TestCall.main(TestCall.java:29)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported stack trace in ApiClient.java, especially deserialize and handleResponse, then trace the CatalogApi.java call for restfulShoppingTagsGet and the Collection model. Reproduce the application/xml response with the Java client and determine the expected behavior for Collection deserialization; done means the supported behavior is verified and covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.