1 22 package org.jboss.test.webservice.message; 23 24 import org.w3c.dom.Element ; 25 26 import java.rmi.Remote ; 27 import java.rmi.RemoteException ; 28 29 33 public interface Message extends Remote 34 { 35 static final String NSURI_1 = "http://org.jboss.test.webservice/message"; 36 static final String PREFIX_1 = "ns1"; 37 38 static final String NSURI_2 = "http://somens"; 39 static final String PREFIX_2 = "ns2"; 40 41 String request = 42 "<ns1:Order xmlns:ns1='http://org.jboss.test.webservice/message' xmlns:ns2='http://somens' attrval='somevalue'>" + 43 " <ns2:Customer>Kermit</ns2:Customer>" + 44 " <Item>Ferrari</Item>" + 45 "</ns1:Order>"; 46 47 String response = 48 "<ns1:Response xmlns:ns1='http://org.jboss.test.webservice/message'>" + 49 " <POID>12345</POID>" + 50 " <Status>ok</Status>" + 51 "</ns1:Response>"; 52 53 public Element processElement(Element msg) throws RemoteException ; 54 } 55 | Popular Tags |