So I have this project where I consume an endpoint that creates a resource, and an access key for that resource is returned. The response xml I get on Soap UI looks like this:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<InsertOrderResponse
xmlns="service URL">
<InsertOrderResult>
<MessageId>0</MessageId>
<TimeStamp>123456789</TimeStamp>
<Result>
<orderId
xmlns="">12345-access-code-67890
</orderId>
</Result>
</InsertOrderResult>
</InsertOrderResponse>
</soap:Body>
</soap:Envelope>
I want to get that order ID, but that field doesn't appear in any of the cxf-generated classes, the lowest level defined in the classes is the Result class which contains a list of objects 'content'. In the debugger, I can see the field and value is present in the return (inside field 'firstChild')
However, there is no implemented method to extract that field.
I feel like this should be very easy, but I'm very noob and I can't see to find a way of doing this.