SOAP Web服务中的异常

时间:2018-12-27 16:49:31

标签: java web-services soap

在执行soap Web service时。 我在org.apache.axis2.jaxws.core.messagecontext(上下文)中出现异常

谁能知道此方法的确切用途

我有例外

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

WFLogger.printOut("Inside Webservice 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();
    try {


        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 个答案:

没有答案