Apache Axis ignore org.xml.sax.SAXException invalid element

F

Fealfu

I´m working with WS in Axis Technology, the question is how can I
change the WS to include, for example, additional response fields,
without recreate axis java client?

When I add an aditional field the client throws a
org.xml.sax.SAXException invalid element exception.

Thanks a lot.
 
J

Jan =?UTF-8?B?VGhvbcOk?=

Fealfu said:
I´m working with WS in Axis Technology, the question is how can I
change the WS to include, for example, additional response fields,
without recreate axis java client?

You could use an array of response fields in your response message. In Java
that would look like:

class MyResponse {

private ResponseField[] contents;

// getter+setter..

}

class ResponseField {
private String message;
private String code;
}

That way, you can add any amount of response fields without having to
recreate the client.

Hope that helps.

Best regards,
Jan Thomä
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top