Claus Ibsen created CAMEL-27397:
-----------------------------------
Summary: camel-jbang - camel generate wsdl --samples: a sample
request and response, as XML and JSON, for each operation
Key: CAMEL-27397
URL: https://issues.apache.org/jira/browse/CAMEL-27397
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Reporter: Claus Ibsen
Fix For: 4.24.0
{{camel generate wsdl}} (CAMEL-27376) lists the operations of a WSDL and
scaffolds a cxf route, but it does not show what a request looks like. With
{{--samples}}, it would write for each operation (or those of {{--operation}}):
* a sample request element and response element as XML text, with every field
of the XML schema filled in with a value of its type, and the fault elements;
* the same as JSON, in the form that the {{xsdJson}} data format (CAMEL-27375)
reads and writes, with numbers, booleans and arrays for repeating elements;
* a SOAP envelope with the request, to send with curl.
This is what a user needs to call a SOAP service from a route, or to test a
SOAP service that a route serves, and it would also help the SOAP examples
planned in apache/camel-jbang-examples#144.
Found while adding the soap-source and soap-action Kamelets to the Kamelet
catalog (apache/camel-kamelets, 2026-11-22).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)