We are designing a web service that will connect to a back-end system and retrieve a chunk of XML and will simply return that XML. The .JWS definition may look something like this:

 

public class CallBackendSystem {

  public String invoke(String arg1, String arg2) {

    String xmlString = // contact another system and retrieve XML

    return xmlString;

  }

}

 

We want the returned XML to be part of the SOAP body in the normal way (not escaped, or in a CDATA, etc.).  We also want to include the XML schema (which we have from the back-end system) in the WSDL for this service.  In short, we would like this web service to look to the outside world like it was all generated from the same system.

 

Here are my questions:

 

  1. How can I include an external schema in the WSDL generated by Axis?
  2. What is the proper return type so the retrieved XML shows up in the SOAP message properly

 

Any help or advice will be greatly appreciated.

 

Marc

Reply via email to