Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.1.1-BC
-
Fix Version/s: 1.2.0-BC
-
Component/s: Consumer mode
-
Security Level: Public
-
- Environment:
- -
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | New [ 10000 ] | Open [ 10002 ] |
| Priority | Blocker [ 1 ] |
| Status | Open [ 10002 ] | In Progress [ 10003 ] |
| Status | In Progress [ 10003 ] | Resolved [ 10004 ] |
| Fix Version/s | 1.2.0-BC [ 10821 ] | |
| Resolution | Fixed [ 1 ] |
| Description |
I want to export my service interface as following:
* HTTP method: {{POST}} * HTTP path: http://<server:port>/api/demarches-administratives/cantine * HTTP body JSON: {code} { "usager-demandeur": "jdoe", "numero-fiscal": "123456789" } {code} As it's a POST, only the convertion JSON --> XML is operated, and I'm not able to manage correctly namespces in XML payload. The expected XML payload is: {code} <new xmlns="my-namespace"> <usager-demandeur xmlns="">jdoe</usager-demandeur> <numero-fiscal xmlns="">123456789</numero-fiscal> </new> {code} I think that we should run a XSL tranformation after the JSON-->XML convertion to adjust XML payload. Moreover, we should be able to include in the XML payload elements of the URL path according to the URI template. These parameters could be transmitted to the XSL transformation as XSL parameters. |
I want to export my service interface as following:
* HTTP method: {{POST}} * HTTP path: http://<server:port>/api/demarches-administratives/cantine * HTTP body JSON: {code} { "usager-demandeur": "jdoe", "numero-fiscal": "123456789" } {code} As it's a POST, only the convertion JSON --> XML is operated, and I'm not able to manage correctly namespaces in XML payload. The expected XML payload is: {code} <new xmlns="my-namespace"> <usager-demandeur xmlns="">jdoe</usager-demandeur> <numero-fiscal xmlns="">123456789</numero-fiscal> </new> {code} I think that we should run a XSL transformation after the JSON-->XML conversion to adjust XML payload. Moreover, we should be able to include in the XML payload elements of the URL path according to the URI template. These parameters could be transmitted to the XSL transformation as XSL parameters. |
| Transition | Status Change Time | Execution Times | Last Executer | Last Execution Date | |||||||||
|
|
|
|
|
|||||||||
|
|
|
|
|
|||||||||
|
|
|
|
|

Fixed in trunk.
A new XSL transformation has been added after conversion JSON-->XML of the HTTP body to adjust the XML payload to the one expected by the service provider.