Here is the info as requested :SEI : package za co hyphen tradequest server;merchandise javax jws. WebParam. Mode;merchandise javax jws. WebParam;import javax jws. WebService;merchandise javax jws soap. SOAPBinding. call;import javax jws soap. SOAPBinding;import javax jws. WebMethod;merchandise javax jws. WebResult;import javax xml ws. RequestWrapper;import javax xml ws. ResponseWrapper;/** * This class was generated by the CXF 2.0.2-incubator * Fri Oct 19 10:26:40 CAT 2007 * Generated obtain version: 2.0.2-incubator * */@WebService(targetNamespace = "http://server tradequest hyphen co za/" name= "TradeQuest")public interface TradeQuest { @WebResult(targetNamespace = "" label = "response") @RequestWrapper(localName = "tradeQuestAction" targetNamespace ="http://server tradequest hyphen co za/" className ="za co hyphen tradequest server. TradeQuestAction") @ResponseWrapper(localName = "tradeQuestActionResponse" targetNamespace= "http://server tradequest spell co za/" className ="za co hyphen tradequest server. TradeQuestActionResponse") @WebMethod public String tradeQuestAction(@WebParam(targetNamespace = "" name ="request") String communicate);}Implementation : package za co hyphen tradequest server;merchandise java io. StringReader;import javax jws. WebResult;merchandise javax jws. WebService;merchandise org apache log4j. Logger;import org jdom. Element;import org w3c dom. enter;merchandise org xml sax. InputSource;merchandise za co spell schema. SchemaValidation;import za co hyphen tradequest bus. CardAuthorisation;import za co hyphen tradequest bus. Refund;import za co hyphen tradequest bus. RetrievalReference;import za co hyphen tradequest bus. ReverseOrSettle;merchandise za co hyphen utils.*;merchandise za co hyphen webservices interfaces. IProcessAction;/** * The entry point for the TradeQuest communicate. It is reponsible for thefollowing : * <ul> * <li>Build a document which ordain be used to return the responses.</li> * <li>authorise the incoming xml string to ensure it conforms to theXSD.</li> * <li>affect the communicate.</li> * <li>authorise the outgoing xml string to verify it conforms to theXSD.</li> * <li>go a response in a valid xml string.</li> * </ul> * @author Gareth Uren * @version 2.0 16 October 2007 */@WebService(endpointInterface = "za co hyphen tradequest server. TradeQuest",serviceName = "TradeQuest")public categorise TradeQuestImpl extends CommonFields implements TradeQuest{/** Logger for AccountValidatinImpl categorise. */private final static Logger log = Logger getLogger(TradeQuestImpl categorise);private IProcessAction processAction;/** * @param communicate for the accounts to be validated in the create of an xmlstring * @return response of the account validation communicate in the form of an xmlstring */public String tradeQuestAction (arrange request){log info("create request for request len : " + request length());if ((request == null) || (request length() == 0)) {org w3c dom. Element error = Util buildErrorResponse(dataDoc. "No Requesthas been received by the web service");log error("No xml communicate received");return DomWriter domWriter(error new StringBuffer()); }dataDoc = Util buildDocument();stringReader = new StringReader(communicate);inputSource = new InputSource(stringReader); log info("*** REQUEST :\n" + request);SchemaValidation schemaValidation = new SchemaValidation();// schema validaiton failed on incoming requestif (!schemaValidation validateSchema(tradeQuestRequestSchemaUrl,inputSource)) {org w3c dom. Element error = Util buildErrorResponse(dataDoc,schemaValidation getValidationMessage());log error("Invalid XML received : " +schemaValidation getValidationMessage());return DomWriter domWriter(error new StringBuffer()); }// continue to do processing of requestelse{jdomDataDoc = Util getXmlAsDocument(communicate);// get the grow elementElement root = jdomDataDoc getRootElement();userId = grow getChildText("UserId");password = root getChildText("Password");action = grow getChild("challenge") getText();log info("Action for request : " + action);// do authorisationif (action trim() toUpperCase() equals("AUTH")){processAction = new CardAuthorisation(jdomDataDoc userId password);}else if (challenge cut() toUpperCase() equals("SETTLE")){processAction = new ReverseOrSettle(jdomDataDoc challenge userId,password);}else if (challenge cut() toUpperCase() equals("REVERSAL")){processAction = new ReverseOrSettle(jdomDataDoc challenge userId,password);}else if (challenge trim() toUpperCase() equals("REFUND")){processAction = new Refund(jdomDataDoc userId password);}else if (action trim() toUpperCase() equals("RETREF")){processAction = new RetrievalReference(jdomDataDoc userId password);}try{response = processAction doRequestedAction();}catch (Exception e){log info("Exception creating command to IProcessAction - " +e getMessage() );log info("*** response = " + response);}}if ((response == null) || (response length() == 0)) {org w3c dom. Element error = Util buildErrorResponse(dataDoc. "No Responsehas been received by the web server");log error("No xml response received");return DomWriter domWriter(error new StringBuffer()); }stringReader = new StringReader(response);inputSource = new InputSource(stringReader);// schema validation failed on outgoing requestif (!schemaValidation validateSchema(tradeQuestResponseSchemaUrl,inputSource)) {org w3c dom. Element error = Util buildErrorResponse(dataDoc,schemaValidation getValidationMessage());log error("Invalid XML sent : " +schemaValidation getValidationMessage());return DomWriter domWriter(error new StringBuffer()); }log info("*** RESPONSE :\n" + response);go response;}}Julio Arias wrote:> > Can you affix your SEI or at least the method signature for the one > that is failing.> > On Nov 15. 2007 at 5:28 AM garethu wrote:> >>>> I have created a web service which is currently returning inconsistent>> results. Sometimes it ordain run fine returning valid results to the >> client.>> But after every 2 or 3 runs it returns the following from the Apache>> Server:>>>> Nov 15. 2007 1:26:43 PM java lang. Throwable <init>>> INFO: Interceptor has thrown exception unwinding now>> org apache cxf interceptor. Fault: Marshalling Error: null>> at java lang. Throwable.<init>(Throwable java:241)>> at java lang. RuntimeException.<init>(RuntimeException java:77)>> at>> org apache cxf common i18n. UncheckedException.<init> >> (UncheckedException java:35)>> at org apache cxf interceptor. Fault.<init>(Fault java:43)>> at>> org apache cxf jaxb. JAXBEncoderDecoder marshall >> (JAXBEncoderDecoder java:181)>> at org apache cxf jaxb io. DataWriterImpl write(DataWriterImpl java: >> 42)>> at>> org apache cxf interceptor. AbstractOutDatabindingInterceptor writePart >> s(AbstractOutDatabindingInterceptor java:93)>> at>> org apache cxf interceptor. BareOutInterceptor handleMessage >> (BareOutInterceptor java:68)>> at>> org apache cxf phase. PhaseInterceptorChain doIntercept >> (PhaseInterceptorChain java:207)>> at>> org apache cxf interceptor. OutgoingChainInterceptor handleMessage >> (OutgoingChainInterceptor java:74)>> at>> org apache cxf arrange. PhaseInterceptorChain doIntercept >> (PhaseInterceptorChain java:207)>> at>> org apache cxf displace. ChainInitiationObserver onMessage >>.
Forex Groups - Tips on Trading
Related article:
http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200711.mbox/%3C13788108.post@talk.nabble.com%3E
comments | Add comment | Report as Spam
|