1 29 30 package com.caucho.soap.skeleton; 31 32 import javax.xml.bind.JAXBException; 33 import javax.xml.stream.XMLStreamException; 34 import javax.xml.stream.XMLStreamReader; 35 import javax.xml.stream.XMLStreamWriter; 36 import java.io.IOException ; 37 import java.lang.reflect.Method ; 38 import java.net.MalformedURLException ; 39 40 44 abstract public class Skeleton { 45 public final static String XMLNS = 46 "http://www.w3.org/2000/xmlns/"; 47 public final static String SOAP_ENVELOPE = 48 "http://schemas.xmlsoap.org/soap/envelope/"; 49 public final static String SOAP_ENCODING = 51 "http://schemas.xmlsoap.org/soap/encoding/"; 52 public final static String SOAP_RESULT = 53 "http://www.w3.org/2003/05/soap-rpc"; 54 public final static String XMLNS_XSD = 55 "http://www.w3.org/2001/XMLSchema"; 56 public final static String XMLNS_XSI = 57 "http://www.w3.org/2001/XMLSchema-instance"; 58 59 public final static String SOAP_ENVELOPE_PREFIX = "soapenv"; 60 61 64 abstract public void invoke(Object service, 65 XMLStreamReader in, 66 XMLStreamWriter out) 67 throws IOException , XMLStreamException, Throwable ; 68 69 abstract public Object invoke(Method method, String url, Object [] args) 70 throws IOException , XMLStreamException, MalformedURLException , 71 JAXBException; 72 } 73 74 75 | Popular Tags |