[
https://issues.apache.org/jira/browse/CAMEL-27397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149367#comment-18149367
]
Claus Ibsen commented on CAMEL-27397:
-------------------------------------
PR: https://github.com/apache/camel/pull/30614
Design (decided by Claus): the sample logic is a new public class
XsdJsonSamples in camel-xsd-json, so the JSON is exactly the xsdJson form and
the MCP tool of CAMEL-27396 can reuse it. camel generate wsdl --samples prints
the samples, writes them as files with --output=<dir>, or puts them in the
--json listing. The schema of a remote WSDL is read with the rules of a
wsdl:import (its host only).
_Claude Code on behalf of Claus Ibsen_
> 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
> Assignee: Claus Ibsen
> Priority: Major
> 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)