M
M
mrgrigo2018-12-04 16:06:11
Java
mrgrigo, 2018-12-04 16:06:11

Parsing XML response from SOAP?

Hello.
What library would you recommend for working with XML responses received as a result of a SOAP request to the 1C server?
Response format:

<Item>value</Item>
<Item2>
    <Item21>value</Item21>
    <Item22>value</Item22>
</Item2>

Along the way, the data model is implemented as a class in Java:
public class MyMethod {
    
    public String Item1;

    ...
}

The problem lies precisely in the fact that the library must be able to work with nested strings of this kind.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
protven, 2018-12-04
@mrgrigo

Take the WSDL and generate a client from it. You work with Java, so use the tools that it gives. Lots of libraries. I like cxf, but you can take some axis2 thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question