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

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top