Skip to content

Commit

Permalink
Added namespaces to sample XML and fixed file reference in README
Browse files Browse the repository at this point in the history
  • Loading branch information
djcoleman authored and aldettinger committed Nov 15, 2023
1 parent 953896d commit ec547e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cxf-soap/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ We can also test our customer service:
$ curl -X POST -H "Content-Type: text/xml;charset=UTF-8" -d @src/main/resources/requests/customer/getByName.xml http://localhost:8080/cxf/services/customer
----

You can observe that we have hardcoded `test` as the name in the `SOAPBody` part in `src/main/resources/requests/customer/getByName.soap` as follows:
You can observe that we have hardcoded `test` as the name in the `SOAPBody` part in `src/main/resources/requests/customer/getByName.xml` as follows:

[source, xml]
----
Expand Down
12 changes: 6 additions & 6 deletions cxf-soap/src/main/resources/requests/contact/add.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
<soapenv:Body>
<con:addContact>
<arg0>
<name>Lukas</name>
<address>
<city>New York</city>
<street>Sky 1234</street>
</address>
<type>PERSONAL</type>
<con:name>Lukas</con:name>
<con:address>
<con:city>New York</con:city>
<con:street>Sky 1234</con:street>
</con:address>
<con:type>PERSONAL</con:type>
</arg0>
</con:addContact>
</soapenv:Body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<soapenv:Header/>
<soapenv:Body>
<cus:getCustomersByName>
<name>Non existent</name>
<name>test</name>
</cus:getCustomersByName>
</soapenv:Body>
</soapenv:Envelope>

0 comments on commit ec547e4

Please sign in to comment.