<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Praveen Rijal</title>
    <description>The latest articles on DEV Community by Praveen Rijal (@prijal).</description>
    <link>https://dev.to/prijal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Praveen Rijal</title>
      <link>https://dev.to/prijal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prijal"/>
    <language>en</language>
    <item>
      <title>I raised dead SOAP services for AI agents with Kiro (and the spec found my worst bug)</title>
      <dc:creator>Praveen Rijal</dc:creator>
      <pubDate>Thu, 26 Nov 2026 13:45:38 +0000</pubDate>
      <link>https://dev.to/prijal/i-raised-dead-soap-services-for-ai-agents-with-kiro-and-the-spec-found-my-worst-bug-1jgc</link>
      <guid>https://dev.to/prijal/i-raised-dead-soap-services-for-ai-agents-with-kiro-and-the-spec-found-my-worst-bug-1jgc</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;This post is being written as part of the &lt;strong&gt;Kiroween 2026 hackathon&lt;/strong&gt; (Kiroween Hackathon 2026). It's about how I used Kiro to build my entry, &lt;a href="https://wsdlforge.onrender.com" rel="noopener noreferrer"&gt;WSDLForge&lt;/a&gt; (category: Resurrection). The code is on &lt;a href="https://github.com/prijal1202/wsdl-forge" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Banks, insurers, airlines and governments still run on SOAP. Those services work fine. The problem is that nothing modern can talk to them. A REST client wants JSON. An AI agent wants MCP tools. What the service offers is a WSDL file from 2006 and XML envelopes.&lt;/p&gt;

&lt;p&gt;So for Kiroween's "bring dead technology back to life" category, I built a generator: upload a WSDL, get back one zip with&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;an OpenAPI 3.0 spec,&lt;/li&gt;
&lt;li&gt;a Spring Boot proxy that takes JSON and speaks SOAP 1.1 or 1.2 to the real service,&lt;/li&gt;
&lt;li&gt;an MCP server with one tool per SOAP operation, so an agent like Kiro can call the service,&lt;/li&gt;
&lt;li&gt;contract tests and property-based tests for that specific service.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The site even hosts its own legacy bank SOAP service, so you can let Kiro move money through a 20-year-old protocol.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1vjvrt5zvi2me5xnhxsh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1vjvrt5zvi2me5xnhxsh.png" alt="The JSON to SOAP preview: a REST request next to the exact SOAP 1.1 envelope, with 1234567890.123456789 highlighted in both" width="800" height="622"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The JSON ↔ SOAP tab: the REST request, and the exact envelope the generated proxy sends for it. The amount keeps every digit.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This post is about how I built it with Kiro, and mostly about the bugs. Several of them I would have shipped without the way Kiro pushed me to work.&lt;/p&gt;
&lt;h2&gt;
  
  
  Specs first, code second
&lt;/h2&gt;

&lt;p&gt;Kiro's spec workflow gives you three files per feature: &lt;code&gt;requirements.md&lt;/code&gt;, &lt;code&gt;design.md&lt;/code&gt; and &lt;code&gt;tasks.md&lt;/code&gt;. Requirements are written in EARS form ("WHEN ... THEN the system SHALL ..."). I wrote three specs, for the parser, the JSON ↔ XML converter and the generators: 17 requirements and 134 acceptance criteria in total. Tests are named after the criterion they check, so a failing test tells you which promise broke.&lt;/p&gt;

&lt;p&gt;It felt slow at first. Then this happened.&lt;/p&gt;
&lt;h3&gt;
  
  
  The requirement that found an SSRF hole
&lt;/h3&gt;

&lt;p&gt;The hosted generator accepts uploads from anyone, so the parser spec starts with security. One line in it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;2. The parser SHALL NOT fetch any &lt;span class="sb"&gt;`wsdl:import`&lt;/span&gt;, &lt;span class="sb"&gt;`xs:import`&lt;/span&gt; or &lt;span class="sb"&gt;`xs:include`&lt;/span&gt; location over the
   network or file system.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The test for it pointed an &lt;code&gt;xs:import&lt;/code&gt; at &lt;code&gt;169.254.169.254&lt;/code&gt;, the cloud metadata address. I expected it to pass, because I had switched off import fetching in WSDL4J, the WSDL library.&lt;/p&gt;

&lt;p&gt;WSDL4J tried to connect anyway. It still resolves schema imports inside &lt;code&gt;wsdl:types&lt;/code&gt; even with &lt;code&gt;javax.wsdl.importDocuments=false&lt;/code&gt;. On Render, that would have been a server-side request forgery hole in a public upload form.&lt;/p&gt;

&lt;p&gt;The fix: WSDL4J never sees the schemas at all. The parser strips &lt;code&gt;wsdl:types&lt;/code&gt; before handing the document over and reads the schemas with a resolver that refuses every fetch.&lt;/p&gt;

&lt;p&gt;The test had a weakness too: it only passed because the metadata IP is unreachable from a laptop. So it became a canary. A tiny localhost HTTP server counts requests, and every import vector points at it. With the fix reverted, the canary records &lt;code&gt;GET /xs-import.xsd&lt;/code&gt;. With the fix, zero requests.&lt;/p&gt;

&lt;p&gt;Later, a review found a second door: WSDL4J reads &lt;em&gt;every&lt;/em&gt; &lt;code&gt;wsdl:types&lt;/code&gt; element, and the parser only stripped the first. A second, empty-looking block reopened the fetch. The canary test now puts its payload in the second block.&lt;/p&gt;

&lt;p&gt;Without the requirement, nobody would have written that test. "It doesn't fetch imports" was something I believed, not something I had checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steering: one set of rules for every session
&lt;/h2&gt;

&lt;p&gt;Kiro's steering files sit in &lt;code&gt;.kiro/steering/&lt;/code&gt; and load into every conversation. I kept three:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;product.md&lt;/code&gt;&lt;/strong&gt;: scope and terminology. It defines "generator", "generated proxy" and "generated MCP server", and says never to write "proxy" or "MCP server" alone when it is ambiguous. That sounds pedantic until you have a project that is a generator emitting a proxy and an MCP server. After this rule, the code comments, specs, README and Kiro's answers all used the same words.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;tech.md&lt;/code&gt;&lt;/strong&gt;: the invariants. Generation is pure and in memory. No JAXB. XML is parsed with DTDs disabled. Dependency versions are pinned. The MCP server logs to stderr only, because stdout is the protocol channel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;structure.md&lt;/code&gt;&lt;/strong&gt;: the module layout, which module may depend on which, and the zip layout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The biggest difference came from writing invariants as rules, not preferences. "Generation writes nothing to disk" is checkable, so every session respected it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A hook for the fast feedback loop
&lt;/h2&gt;

&lt;p&gt;The core of the project is a model-driven converter: one piece of code that turns JSON into SOAP XML and back for &lt;em&gt;any&lt;/em&gt; WSDL. That is exactly where property-based tests shine. I used &lt;a href="https://jqwik.net/" rel="noopener noreferrer"&gt;jqwik&lt;/a&gt; to generate random service models and random values, and to check that every value survives JSON → XML → JSON unchanged.&lt;/p&gt;

&lt;p&gt;A Kiro hook runs the fast-tagged tests on every save in the parser, converter or generator code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"jqwik fast round-trip tests"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"trigger"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PostFileSave"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"(core|runtime|generators)[\\\\/]src[\\\\/].*\\.java$|generators[\\\\/]src[\\\\/]main[\\\\/]resources[\\\\/]templates[\\\\/]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mvn -B -q -pl runtime,core,generators -am test -Dgroups=fast -Djqwik.tries=100"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"timeout"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;180&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The try count is capped at 100, and the slow end-to-end tests, which build the generated projects with Maven, never run from the hook. So every save gets feedback in seconds.&lt;/p&gt;

&lt;p&gt;To check that the properties could actually fail, I planted a bug: string values trimmed on read. Two of the three properties failed within one or two tries and shrank to a minimal example.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug that would have rounded money
&lt;/h2&gt;

&lt;p&gt;The demo is a bank. The test amount is &lt;code&gt;1234567890.123456789&lt;/code&gt;, which is too many digits for a &lt;code&gt;double&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;One requirement, written before the MCP server existed, said tool arguments must arrive as &lt;code&gt;BigDecimal&lt;/code&gt;. A small spike checked whether the MCP Java SDK does that by default. It doesn't. With the default JSON mapper, an agent's transfer arrives as &lt;code&gt;1.2345678901234567E9&lt;/code&gt;, and &lt;code&gt;0.10&lt;/code&gt; becomes &lt;code&gt;0.1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The generated MCP server now ships a configured mapper. To prove it matters end to end, I put the default mapper back and ran the real test, which builds the generated MCP server, sends a transfer through an MCP &lt;code&gt;tools/call&lt;/code&gt;, and checks the bank's ledger:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;asked to transfer:  1234567890.123456789
bank received:      1234567890.1234567
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the configured mapper, every digit arrives.&lt;/p&gt;

&lt;p&gt;The same end-to-end test caught a subtler one in my own test code: Jackson's default &lt;code&gt;JsonNode&lt;/code&gt; factory turns &lt;code&gt;2500.00&lt;/code&gt; into &lt;code&gt;2.5E+3&lt;/code&gt;. The proxy was right; the test's JSON parser was not. That fix became a requirement for the MCP server too.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzwzj5tw9bof4ook0g1wi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzwzj5tw9bof4ook0g1wi.png" alt="The MCP Server Tools tab with a copyable mcp.json entry for Kiro and each tool's input schema" width="800" height="881"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Every SOAP operation becomes an MCP tool, with a ready-to-paste mcp.json entry for Kiro.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Agents reviewing the code
&lt;/h2&gt;

&lt;p&gt;Before launch, I ran a whole-repo production review as four parallel read-only reviews in Kiro, one each for the runtime, the parser, the generators, and the web layer with the UI. I fixed every High and Medium finding, each with a regression test written first. Two findings worth telling:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A 13-byte number could crash the demo.&lt;/strong&gt; &lt;code&gt;1E+300000000&lt;/code&gt; as a transfer amount made the bank rescale a balance by 10^300000000 while holding the ledger lock. Out of memory, dead JVM. The same trick hit every generated proxy. Numbers are now bounded before any arithmetic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt injection through the WSDL.&lt;/strong&gt; WSDL documentation went verbatim into MCP tool descriptions, which an agent reads as guidance, in a demo where the agent moves money. Tool descriptions now start with the generator's own sentence and quote the WSDL text as bounded data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Specs versus vibe coding
&lt;/h2&gt;

&lt;p&gt;I didn't spec everything. The opening animation (a blade hammered on an anvil, with a WebGL fire shader) was pure back-and-forth with Kiro: "this looks like an emoji, make it realistic", "start close on the anvil and pull back", "faster", "drop the sharpening". For something you judge by looking at it, that loop was right. A spec would have slowed it down for no gain.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3fwu6wo4yvna7dhrpamk.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3fwu6wo4yvna7dhrpamk.jpg" alt="The intro: an anvil in front of a WebGL fire" width="800" height="457"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The intro opens close on the anvil face and pulls back to this.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuok2off8v9d969oeygaj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuok2off8v9d969oeygaj.jpg" alt="The intro ends with the cooled blade on the anvil and the WSDLForge title" width="800" height="457"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;After three strikes the blade cools to steel and the title comes up.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For the parser and the converter, the spec was what made the work trustworthy. Every bug in this post was found by a test that existed because a requirement said what must never happen. Vibe coding tells you whether the code does what you asked. A spec also tells you what you forgot to ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three Kiro apps
&lt;/h2&gt;

&lt;p&gt;I didn't stay in the IDE the whole time.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Kiro IDE&lt;/strong&gt; is where the specs, steering files and the hook live, and where most of the spec-driven work happened.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kiro CLI&lt;/strong&gt; is where I ran chats to develop a feature and to tweak the frontend. Honestly, it was more fun to use than the chat in the IDE. Working from the terminal kept me in the flow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kiro Crew&lt;/strong&gt; is what I used for reviewing. It has bots, and I tried using them to review the project.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Open &lt;a href="https://wsdlforge.onrender.com" rel="noopener noreferrer"&gt;wsdlforge.onrender.com&lt;/a&gt; and click &lt;strong&gt;Try Demo Bank Service&lt;/strong&gt;. The page previews everything before you download: the conversion report, the OpenAPI endpoints, the MCP tools with a copyable &lt;code&gt;mcp.json&lt;/code&gt; entry for Kiro, and a sample JSON request next to the exact SOAP envelope the proxy sends, with &lt;code&gt;1234567890.123456789&lt;/code&gt; intact.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqk1ug3g6se2a41vjywyf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqk1ug3g6se2a41vjywyf.png" alt="The Conversion Report tab listing each converted operation with its REST endpoint and SOAP action" width="800" height="489"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The Conversion Report: what was converted, and what was skipped with its exact location in the WSDL.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faktkxrx7v8wimiy2767y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faktkxrx7v8wimiy2767y.png" alt="The OpenAPI 3.0 Spec tab showing an endpoint with its request and response schemas" width="800" height="668"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The OpenAPI tab: endpoints with their schemas, or the raw YAML and JSON.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It's a free-tier deploy, so the first request after a long idle can take up to a minute.&lt;/p&gt;

&lt;p&gt;The code, including the &lt;code&gt;.kiro&lt;/code&gt; folder with every spec, steering file and hook, is at &lt;a href="https://github.com/prijal1202/wsdl-forge" rel="noopener noreferrer"&gt;github.com/prijal1202/wsdl-forge&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This post was written as part of the Kiroween 2026 hackathon.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>kiroween</category>
      <category>java</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
