SOAP Web Service解析器中的异常已被使用

时间:2018-12-29 11:08:21

标签: java web-services exception soap

在执行soap Web service时。我有例外 org.apache.axis2.jaxws.core.messagecontext(上下文)

谁能知道此方法的确切用法 我也有例外

java.lang.UnsupportedOperationException:解析器已被使用!

WFLogger.printOut(“内部Web服务1 ::” + request.getBill_Amount());

WFLogger.printOut("Inside Webservice 1.1 :: "+request.getTotal_Net_Amount());
WFLogger.printOut("Inside Webservice 1.2 :: "+request.getPO_No());
WFLogger.printOut("Inside Webservice 1.3 :: "+request.getBilling_Currency());
WFLogger.printOut("Inside Webservice 1.3 :: "+request.getBusinessUnit());

LTTSWiCreateResponse responseToFCPG = null;
WMWorkitem workItem = null;

AttachFile fileAttachObject = new AttachFile();     尝试{

    WFLogger.printOut("Inside Webservice 2 :: ");
    org.apache.axis2.context.MessageContext localMessageContext = org.apache.axis2.context.MessageContext.getCurrentMessageContext();

    WFLogger.printOut("Inside Webservice 3 :: "+localMessageContext);
    SOAPBody localSOAPBody = localMessageContext.getEnvelope().getBody();

    WFLogger.printOut("Inside Webservice 4 :: "+localSOAPBody);
    org.apache.axis2.jaxws.core.MessageContext localMessageContext1 = new org.apache.axis2.jaxws.core.MessageContext(localMessageContext);

    WFLogger.printOut("Inside Webservice 5 :: "+localMessageContext1);
    SOAPMessage localSOAPMessage = localMessageContext1.getMessage().getAsSOAPMessage();



    WFLogger.printOut("Inside Webservice 6 :: "+localSOAPMessage);
    //WFLogger.printOut("Inside getAttachmentIDs  :: "+localMessageContext1.getMessage().getAttachmentIDs());

0 个答案:

没有答案