Skip to content

cope typos in reference docs section 6.2.4 and 6.2.5 [SWS-268] #425

Closed
@gregturn

Description

@gregturn

Barry Simpson opened SWS-268 and commented

  1. In section 6.2.4, the method doInMessage(WebServiceMessage message) should instead be doWithMessage(WebServiceMessage message).

  2. In section 6.2.5, the method doInMessage(WebServiceMessage message) should instead be doWithMessage(WebServiceMessage message).

  3. In section 6.2.5, there is a closing brace "}" missing after the doWithMessage method.

  4. In section 6.2.5, the code should be formatted so that it is not so hard to read, perhaps like:

public void marshalWithSoapActionHeader(final Source s) {
final Transformer transformer = transformerFactory.newTransformer();
webServiceTemplate.sendAndReceive(
new WebServiceMessageCallback() {
public void doWithMessage(WebServiceMessage message) {
transformer.transform(s, message.getPayloadResult());
}
},
new WebServiceMessageExtractor() {
public Object extractData(WebServiceMessage message) throws IOException {
// do your own transforms with message.getPayloadResult()
// or message.getPayloadSource()
}
}
);
}


Affects: 1.0.3

Referenced from: commits 5ec4b40

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions