This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
commit 8db831d2e8f607941d242b62c66511951a2b0e77 Author: Claus Ibsen <[email protected]> AuthorDate: Sun Nov 29 10:17:56 2026 +0100 ai-benchmark: the SOAP examples, soap-facade and soap-client, as a set of their own (steps-soap) Three steps each, from camel-jbang-examples#145: answer getOrder from the order API, the declared fault, and WS-Security on the facade; three orders, the fault of an unknown order with faultAsBody, and WS-Security on both sides for the client. The reference pass is 6/6 and the negative pass 0/6. They stay out of steps-new until main's camel-kamelets-catalog-version is 4.24.0: the MCP tools take the Kamelets of the classpath (4.23.0), so every validation and write result says that soap-source is not in the Kamelet catalog. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- ai-benchmark/gen_stepwise.py | 224 +++++++++++++++++++++ .../seed/contracts-soap-client/orders.json | 5 + .../seed/contracts-soap-client/orders.wsdl | 92 +++++++++ .../seed/contracts-soap-facade/orders.json | 5 + .../seed/contracts-soap-facade/orders.wsdl | 92 +++++++++ 5 files changed, 418 insertions(+) diff --git a/ai-benchmark/gen_stepwise.py b/ai-benchmark/gen_stepwise.py index 3df867f..376df12 100644 --- a/ai-benchmark/gen_stepwise.py +++ b/ai-benchmark/gen_stepwise.py @@ -1323,6 +1323,230 @@ EXAMPLES.append({ ]}) +# ---------------------------------------------------------------- contracts/soap-facade and soap-client (SOAP with the soap Kamelets) +# Claus, Nov 29: the SOAP examples of camel-jbang-examples#145 (issue #144). soap-source and soap-action come with +# camel-kamelets 4.24; camel run takes the Kamelets of camel-kamelets-catalog-version (4.23.0 on main), so the seeds' +# application.properties sets camel.jbang.kameletsVersion to the snapshot that the night build installs. The +# service is served at /services/orders on the integration's HTTP server; the probes post SOAP 1.1 envelopes. +# Kept out of steps-new until main's camel-kamelets-catalog-version is 4.24.0 (Nov 29): the MCP tools take the Kamelets +# of the classpath (4.23.0), so camel_validate_source and every write result say "no Kamelet named soap-source in +# the Kamelet catalog or the project", and camel_catalog_kamelet_doc says "Kamelet not found", whatever the project's +# camel.jbang.kameletsVersion. Run with BENCH_STEPS_DIR=steps-soap; move them to NEW once the catalog has them. +SOAP_SET = "steps-soap" +SOAP_PROPS = ("camel.server.port=8080\n# the soap-source and soap-action Kamelets come with camel-kamelets 4.24\n" + "camel.jbang.kameletsVersion=4.24.0-SNAPSHOT\n") +SOAP_NS = "http://camel.apache.org/examples/shop" +WSSE_HEADER = ('<soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"' + ' soap:mustUnderstand="1"><wsse:UsernameToken><wsse:Username>shop</wsse:Username><wsse:Password' + ' Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' + 'secret</wsse:Password></wsse:UsernameToken></wsse:Security></soap:Header>') +def soap_get_order(order_id, status, rx, token=False): + env = ('<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' + (WSSE_HEADER if token else "") + + '<soap:Body><s:getOrder xmlns:s="' + SOAP_NS + '"><s:orderId>' + order_id + '</s:orderId></s:getOrder>' + + '</soap:Body></soap:Envelope>') + return {"method": "POST", "url": "http://localhost:8080/services/orders", "headers": {"Content-Type": "text/xml"}, + "body": env, "expect_status": status, "body_regex": rx} +SOAP_ORD_1002 = "<tns:customer>C-207</tns:customer>.*<tns:sku>CAMEL-MUG</tns:sku><tns:qty>3</tns:qty>" +SOAP_9999_FAULT = "<faultcode>soap:Client</faultcode><faultstring>Order ORD-9999 not found</faultstring>.*<orderNotFound" +SOAP_SECURITY_FAULT = "SecurityError" +def soap_source(extra=""): + return (" uri: kamelet:soap-source\n parameters:\n path: /orders\n wsdlURL: orders.wsdl\n" + " bodyFormat: json\n" + extra) +SOAP_WSS_SOURCE = " wsSecurityUsername: shop\n wsSecurityPassword: secret\n" +SOAP_ORDER_ID = (" - setVariable:\n name: orderId\n expression:\n jq:\n" + " expression: \".orderId\"\n resultType: java.lang.String\n") +SOAP_TO_JSON_ORDER = ("{order: {orderId, customer, country, status, line: .lines}}") + +SF = "soap-facade.camel.yaml" +SF_API = '''# The shop's order API of today: JSON over HTTP. GET /api/orders/{id} answers the order from orders.json, or 404. +- rest: + path: /api/orders + get: + - id: getOrder + path: "/{id}" + description: One order, by its id + to: + uri: direct:get-order + +- route: + id: get-order + from: + uri: direct + parameters: + name: get-order + steps: + - setBody: + expression: + constant: + expression: "resource:file:orders.json" + - unmarshal: + json: + library: Jackson + - setBody: + expression: + groovy: + expression: "body.find { it.orderId == headers.id }" + - choice: + when: + - expression: + simple: + expression: "${body} == null" + steps: + - setHeader: + name: CamelHttpResponseCode + expression: + constant: + expression: "404" + - setBody: + expression: + simple: + expression: '{"error": "unknown order ${header.id}"}' + otherwise: + steps: + - marshal: + json: + library: Jackson +''' +SF_LOG_REQUEST = log("SOAP getOrder: ${body}") +SF_FIXED = (" - setBody:\n expression:\n constant:\n expression: >-\n" + " {\"order\": {\"orderId\": \"ORD-0000\", \"customer\": \"C-000\", \"country\": \"DK\", \"status\": \"paid\",\n" + " \"line\": [{\"sku\": \"CAMEL-MUG\", \"qty\": 1, \"price\": 9.5}]}}\n") +SF_CALL_API = (" - removeHeaders:\n pattern: \"*\"\n" + " - toD:\n uri: \"http://localhost:{{camel.server.port}}/api/orders/${variable.orderId}\"\n" + " parameters:\n httpMethod: GET\n throwExceptionOnFailure: false\n") +def sf_answer(ind): + i = " " * ind + return (i + "- setBody:\n" + i + " expression:\n" + i + " jq:\n" + i + " expression: \"" + SOAP_TO_JSON_ORDER + "\"\n" + + log("Order ${variable.orderId} answered from the order API", i)) +SF_FAULT = (" - choice:\n when:\n - expression:\n simple:\n" + " expression: \"${header.CamelHttpResponseCode} == 404\"\n steps:\n" + + log("Order ${variable.orderId} not found: the client gets the fault orderNotFound", " ") + + " - setHeader:\n name: SoapFault\n expression:\n" + " simple:\n expression: \"Order ${variable.orderId} not found\"\n" + " - setHeader:\n name: SoapFaultCode\n expression:\n" + " constant:\n expression: Client\n" + " - setBody:\n expression:\n simple:\n" + " expression: '<orderNotFound xmlns=\"" + SOAP_NS + "\"><orderId>${variable.orderId}</orderId></orderNotFound>'\n" + " otherwise:\n steps:\n" + sf_answer(16)) +sf_s0 = route("soap-facade", soap_source(), SF_LOG_REQUEST + SF_FIXED) +sf_s1 = route("soap-facade", soap_source(), SF_LOG_REQUEST + SOAP_ORDER_ID + SF_CALL_API + sf_answer(8)) +sf_s2 = route("soap-facade", soap_source(), SF_LOG_REQUEST + SOAP_ORDER_ID + SF_CALL_API + SF_FAULT) +sf_s3 = route("soap-facade", soap_source(SOAP_WSS_SOURCE), SF_LOG_REQUEST + SOAP_ORDER_ID + SF_CALL_API + SF_FAULT) +EXAMPLES.append({ + "name": "contracts-soap-facade", "route_file": SF, "props_file": "application.properties", "wait_seconds": 8, + "seed": "contracts-soap-facade", "steps_dir": SOAP_SET, + "initial": {SF: sf_s0, "orders-api.camel.yaml": SF_API, "application.properties": SOAP_PROPS}, + "steps": [ + {"request": "The SOAP service of orders.wsdl answers getOrder with a fixed order. Answer it from the order API of this integration instead (GET /api/orders/{id}, on the same port): take the orderId of the request, call the API, and answer its order as getOrderResponse of the WSDL describes it (the API calls the lines lines, the WSDL calls each one line). Log \"Order ${variable.orderId} answered from the order API\".", + "check": {"probes": [soap_get_order("ORD-1002", 200, SOAP_ORD_1002)], "log_regex": "Order ORD-1002 answered from the order API"}, + "reference": {SF: sf_s1}}, + {"request": "An order that the order API does not have (it answers 404) must get the fault orderNotFound that the WSDL declares for getOrder, with the text \"Order <orderId> not found\" and the fault code Client. Log \"Order ${variable.orderId} not found: the client gets the fault orderNotFound\".", + "check": {"probes": [soap_get_order("ORD-9999", 500, SOAP_9999_FAULT), soap_get_order("ORD-1002", 200, SOAP_ORD_1002)], + "log_regex": "Order ORD-9999 not found: the client gets the fault orderNotFound"}, + "reference": {SF: sf_s2}}, + {"request": "Only callers that send a WS-Security UsernameToken with the user shop and the password secret may call the service now.", + "check": {"probes": [soap_get_order("ORD-1002", 500, SOAP_SECURITY_FAULT), soap_get_order("ORD-1002", 200, SOAP_ORD_1002, token=True)]}, + "reference": {SF: sf_s3}}, + ]}) + +SC = "order-status.camel.yaml" +SC_SERVICE = '''# Stands in for the shop's old order service: soap-source serves getOrder from the WSDL, and answers from orders.json, +# or with the fault orderNotFound for an order it does not have. +''' + route("order-service", soap_source("{wss}"), SOAP_ORDER_ID + ''' - setBody: + expression: + constant: + expression: "resource:file:orders.json" + - unmarshal: + json: + library: Jackson + - setBody: + expression: + groovy: + expression: "body.find { it.orderId == variables.orderId }" + - choice: + when: + - expression: + simple: + expression: "${body} == null" + steps: + - setHeader: + name: SoapFault + expression: + simple: + expression: "Order ${variable.orderId} not found" + - setHeader: + name: SoapFaultCode + expression: + constant: + expression: Client + - setBody: + expression: + simple: + expression: '<orderNotFound xmlns="''' + SOAP_NS + '''"><orderId>${variable.orderId}</orderId></orderNotFound>' + otherwise: + steps: + - marshal: + json: + library: Jackson + - setBody: + expression: + jq: + expression: "''' + SOAP_TO_JSON_ORDER + '''" +''') +SC_TIMER = (" uri: timer\n parameters:\n timerName: order-status\n repeatCount: 1\n delay: 3000\n") +def sc_action(ind, fault, wss): + i = " " * ind + return (i + "- to:\n" + i + " uri: kamelet:soap-action\n" + i + " parameters:\n" + + i + " address: \"http://localhost:{{camel.server.port}}/services/orders\"\n" + + i + " wsdlURL: orders.wsdl\n" + i + " operation: getOrder\n" + i + " bodyFormat: json\n" + + (i + " faultAsBody: true\n" if fault else "") + + (i + " wsSecurityUsername: shop\n" + i + " wsSecurityPassword: \"{{order.service.password}}\"\n" if wss else "")) +SC_STATUS_LOG = "Order ${variable.orderId} for customer ${variable.order[customer]} is ${variable.order[status]}, with ${variable.order[line].size()} line(s)" +def sc_status(ind): + i = " " * ind + return (i + "- setVariable:\n" + i + " name: order\n" + i + " expression:\n" + i + " jq:\n" + + i + " expression: \".order\"\n" + i + " resultType: java.util.Map\n" + log(SC_STATUS_LOG, i)) +def sc_split(ids, inner): + return (" - setBody:\n expression:\n constant:\n expression: \"" + ids + "\"\n" + " - split:\n expression:\n tokenize:\n token: \",\"\n steps:\n" + " - setVariable:\n name: orderId\n expression:\n simple:\n" + " expression: \"${body}\"\n" + " - setBody:\n expression:\n simple:\n" + " expression: '{\"orderId\": \"${variable.orderId}\"}'\n" + inner) +def sc_fault_choice(wss): + return (sc_action(14, True, wss) + " - choice:\n when:\n - expression:\n" + " simple:\n expression: \"${header.SoapFault} != null\"\n" + " steps:\n" + + log("Order ${variable.orderId}: the order service answered with the fault: ${header.SoapFault}", " ") + + " otherwise:\n steps:\n" + sc_status(22)) +sc_s0 = route("order-status", SC_TIMER, + " - setBody:\n expression:\n constant:\n expression: '{\"orderId\": \"ORD-1001\"}'\n" + + sc_action(8, False, False) + log("Order status: ${body}")) +sc_s1 = route("order-status", SC_TIMER, sc_split("ORD-1001,ORD-1002,ORD-1003", sc_action(14, False, False) + sc_status(14))) +sc_s2 = route("order-status", SC_TIMER, sc_split("ORD-1001,ORD-1002,ORD-1003,ORD-1004", sc_fault_choice(False))) +sc_s3 = route("order-status", SC_TIMER, sc_split("ORD-1001,ORD-1002,ORD-1003,ORD-1004", sc_fault_choice(True))) +SC_LINES = ["Order ORD-1001 for customer C-482 is paid, with 2 line\\(s\\)", "Order ORD-1002 for customer C-207 is paid, with 1 line\\(s\\)", + "Order ORD-1003 for customer C-134 is pending, with 3 line\\(s\\)"] +SC_FAULT = "Order ORD-1004: the order service answered with the fault: Order ORD-1004 not found" +EXAMPLES.append({ + "name": "contracts-soap-client", "route_file": SC, "props_file": "application.properties", "wait_seconds": 12, + "seed": "contracts-soap-client", "steps_dir": SOAP_SET, + "initial": {SC: sc_s0, "order-service.camel.yaml": SC_SERVICE.replace("{wss}", ""), "application.properties": SOAP_PROPS}, + "steps": [ + {"request": "The status check asks the order service about one order. Check the orders ORD-1001, ORD-1002 and ORD-1003 instead, one getOrder call each, and log \"" + SC_STATUS_LOG.replace("${variable.order[customer]}", "<customer>").replace("${variable.order[status]}", "<status>").replace("${variable.order[line].size()}", "<number of lines>").replace("${variable.orderId}", "<orderId>") + "\" for each.", + "check": {"log_regex": SC_LINES}, + "reference": {SC: sc_s1}}, + {"request": "Also check ORD-1004, which the order service does not have. Its fault must not fail the message: log \"Order <orderId>: the order service answered with the fault: <the text of the fault>\" and go on with the next order.", + "check": {"log_regex": SC_LINES + [SC_FAULT]}, + "reference": {SC: sc_s2}}, + {"request": "The order service must require a WS-Security UsernameToken with the user shop and the password secret now, and the status check must send it, with the password in application.properties as order.service.password.", + "check": {"files": {"order-service.camel.yaml": "wsSecurityPassword", SC: "wsSecurityPassword"}, + "props_regex": "order\\.service\\.password\\s*=\\s*secret", "log_regex": SC_LINES + [SC_FAULT]}, + "reference": {SC: sc_s3, "order-service.camel.yaml": SC_SERVICE.replace("{wss}", SOAP_WSS_SOURCE), + "application.properties": SOAP_PROPS + "order.service.password=secret\n"}}, + ]}) + + # ---------------------------------------------------------------- connect-aws-s3-sqs (S3 and SQS on the emulator of camel infra run aws) # Claus, Nov 2: the order files go to an S3 bucket; a route takes each new object and sends an event with the order id # to an SQS queue; another route consumes the queue; and the processed objects are archived. `camel infra run aws s3` diff --git a/ai-benchmark/seed/contracts-soap-client/orders.json b/ai-benchmark/seed/contracts-soap-client/orders.json new file mode 100644 index 0000000..ceea517 --- /dev/null +++ b/ai-benchmark/seed/contracts-soap-client/orders.json @@ -0,0 +1,5 @@ +[ + {"orderId": "ORD-1001", "customer": "C-482", "country": "DK", "status": "paid", "lines": [{"sku": "CAMEL-TSHIRT", "qty": 2, "price": 19.95}, {"sku": "CAMEL-MUG", "qty": 1, "price": 9.5}]}, + {"orderId": "ORD-1002", "customer": "C-207", "country": "DE", "status": "paid", "lines": [{"sku": "CAMEL-MUG", "qty": 3, "price": 9.5}]}, + {"orderId": "ORD-1003", "customer": "C-134", "country": "US", "status": "pending", "lines": [{"sku": "CAMEL-TSHIRT", "qty": 1, "price": 19.95}, {"sku": "CAMEL-CAP", "qty": 1, "price": 14.0}, {"sku": "CAMEL-MUG", "qty": 2, "price": 9.5}]} +] diff --git a/ai-benchmark/seed/contracts-soap-client/orders.wsdl b/ai-benchmark/seed/contracts-soap-client/orders.wsdl new file mode 100644 index 0000000..d6a0928 --- /dev/null +++ b/ai-benchmark/seed/contracts-soap-client/orders.wsdl @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- The shop's order service, an old SOAP service the shop still has to call: one operation, getOrder, which answers the order with + its lines, or the fault orderNotFound for an order the shop does not have. --> +<wsdl:definitions name="OrderService" + targetNamespace="http://camel.apache.org/examples/shop" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://camel.apache.org/examples/shop"> + + <wsdl:types> + <xs:schema targetNamespace="http://camel.apache.org/examples/shop" elementFormDefault="qualified"> + <xs:element name="getOrder"> + <xs:complexType> + <xs:sequence> + <xs:element name="orderId" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getOrderResponse"> + <xs:complexType> + <xs:sequence> + <xs:element name="order" type="tns:Order"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:complexType name="Order"> + <xs:sequence> + <xs:element name="orderId" type="xs:string"/> + <xs:element name="customer" type="xs:string"/> + <xs:element name="country" type="xs:string"/> + <xs:element name="status" type="xs:string"/> + <xs:element name="line" type="tns:Line" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="Line"> + <xs:sequence> + <xs:element name="sku" type="xs:string"/> + <xs:element name="qty" type="xs:int"/> + <xs:element name="price" type="xs:decimal"/> + </xs:sequence> + </xs:complexType> + <xs:element name="orderNotFound"> + <xs:complexType> + <xs:sequence> + <xs:element name="orderId" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema> + </wsdl:types> + + <wsdl:message name="getOrderRequest"> + <wsdl:part name="parameters" element="tns:getOrder"/> + </wsdl:message> + <wsdl:message name="getOrderResponse"> + <wsdl:part name="parameters" element="tns:getOrderResponse"/> + </wsdl:message> + <wsdl:message name="orderNotFound"> + <wsdl:part name="fault" element="tns:orderNotFound"/> + </wsdl:message> + + <wsdl:portType name="OrderPortType"> + <wsdl:operation name="getOrder"> + <wsdl:input message="tns:getOrderRequest"/> + <wsdl:output message="tns:getOrderResponse"/> + <wsdl:fault name="orderNotFound" message="tns:orderNotFound"/> + </wsdl:operation> + </wsdl:portType> + + <wsdl:binding name="OrderBinding" type="tns:OrderPortType"> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <wsdl:operation name="getOrder"> + <soap:operation soapAction="http://camel.apache.org/examples/shop/getOrder"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + <wsdl:fault name="orderNotFound"> + <soap:fault name="orderNotFound" use="literal"/> + </wsdl:fault> + </wsdl:operation> + </wsdl:binding> + + <wsdl:service name="OrderService"> + <wsdl:port name="OrderPort" binding="tns:OrderBinding"> + <soap:address location="http://localhost:8080/services/orders"/> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> diff --git a/ai-benchmark/seed/contracts-soap-facade/orders.json b/ai-benchmark/seed/contracts-soap-facade/orders.json new file mode 100644 index 0000000..ceea517 --- /dev/null +++ b/ai-benchmark/seed/contracts-soap-facade/orders.json @@ -0,0 +1,5 @@ +[ + {"orderId": "ORD-1001", "customer": "C-482", "country": "DK", "status": "paid", "lines": [{"sku": "CAMEL-TSHIRT", "qty": 2, "price": 19.95}, {"sku": "CAMEL-MUG", "qty": 1, "price": 9.5}]}, + {"orderId": "ORD-1002", "customer": "C-207", "country": "DE", "status": "paid", "lines": [{"sku": "CAMEL-MUG", "qty": 3, "price": 9.5}]}, + {"orderId": "ORD-1003", "customer": "C-134", "country": "US", "status": "pending", "lines": [{"sku": "CAMEL-TSHIRT", "qty": 1, "price": 19.95}, {"sku": "CAMEL-CAP", "qty": 1, "price": 14.0}, {"sku": "CAMEL-MUG", "qty": 2, "price": 9.5}]} +] diff --git a/ai-benchmark/seed/contracts-soap-facade/orders.wsdl b/ai-benchmark/seed/contracts-soap-facade/orders.wsdl new file mode 100644 index 0000000..b8fbac0 --- /dev/null +++ b/ai-benchmark/seed/contracts-soap-facade/orders.wsdl @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- The shop's order service, as its old SOAP clients know it: one operation, getOrder, which answers the order with + its lines, or the fault orderNotFound for an order the shop does not have. --> +<wsdl:definitions name="OrderService" + targetNamespace="http://camel.apache.org/examples/shop" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://camel.apache.org/examples/shop"> + + <wsdl:types> + <xs:schema targetNamespace="http://camel.apache.org/examples/shop" elementFormDefault="qualified"> + <xs:element name="getOrder"> + <xs:complexType> + <xs:sequence> + <xs:element name="orderId" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getOrderResponse"> + <xs:complexType> + <xs:sequence> + <xs:element name="order" type="tns:Order"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:complexType name="Order"> + <xs:sequence> + <xs:element name="orderId" type="xs:string"/> + <xs:element name="customer" type="xs:string"/> + <xs:element name="country" type="xs:string"/> + <xs:element name="status" type="xs:string"/> + <xs:element name="line" type="tns:Line" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="Line"> + <xs:sequence> + <xs:element name="sku" type="xs:string"/> + <xs:element name="qty" type="xs:int"/> + <xs:element name="price" type="xs:decimal"/> + </xs:sequence> + </xs:complexType> + <xs:element name="orderNotFound"> + <xs:complexType> + <xs:sequence> + <xs:element name="orderId" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema> + </wsdl:types> + + <wsdl:message name="getOrderRequest"> + <wsdl:part name="parameters" element="tns:getOrder"/> + </wsdl:message> + <wsdl:message name="getOrderResponse"> + <wsdl:part name="parameters" element="tns:getOrderResponse"/> + </wsdl:message> + <wsdl:message name="orderNotFound"> + <wsdl:part name="fault" element="tns:orderNotFound"/> + </wsdl:message> + + <wsdl:portType name="OrderPortType"> + <wsdl:operation name="getOrder"> + <wsdl:input message="tns:getOrderRequest"/> + <wsdl:output message="tns:getOrderResponse"/> + <wsdl:fault name="orderNotFound" message="tns:orderNotFound"/> + </wsdl:operation> + </wsdl:portType> + + <wsdl:binding name="OrderBinding" type="tns:OrderPortType"> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <wsdl:operation name="getOrder"> + <soap:operation soapAction="http://camel.apache.org/examples/shop/getOrder"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + <wsdl:fault name="orderNotFound"> + <soap:fault name="orderNotFound" use="literal"/> + </wsdl:fault> + </wsdl:operation> + </wsdl:binding> + + <wsdl:service name="OrderService"> + <wsdl:port name="OrderPort" binding="tns:OrderBinding"> + <soap:address location="http://localhost:8080/services/orders"/> + </wsdl:port> + </wsdl:service> +</wsdl:definitions>
