RE: Log xml request file

Martin Gainty <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>


> Date: Fri, 6 Mar 2015 17:28:16 -0300
> Subject: Re: Log xml request file
> From: [email protected]
> To: [email protected]
> 
> On Fri, Mar 6, 2015 at 3:29 PM, Oscar Rugama <[email protected]> wrote:
> >   So because I have changed the soap header I want to know how exactly the
> > soap envelope will go I mean the soap request which is a xml file just to
> > compare with the structure I know that should be sent.
> >
> > For me it is ok if something like system.out.printl(request) and appears in
> > the log the all soap request xml file
> >
> > Does it make sense now?
> >
> > Thanks your support is her appreciated.
> >
> > Un saludo,
> > Oscar
> 
> This may help:
> 
> MessageContext messageContext = MessageContext.
> getCurrentMessageContext();
> String request = messageContext.getEnvelope().toString();
> 
> - R

that will help for ADB ..thanks robert

 for xmlbeans you may need to add log.debug statements in org.apache.axis2.xmlbeans.CodeGenerationUtility.java:
take a look at:
  //process the unwrapped parameters
            if (!cgconfig.isParametersWrapped()) {
                //figure out the unwrapped operations
                axisServices = cgconfig.getAxisServices();
                for (Iterator servicesIter = axisServices.iterator(); servicesIter.hasNext();) {
                    axisService = (AxisService)servicesIter.next();
                    for (Iterator operations = axisService.getOperations();
                         operations.hasNext();) {
                        AxisOperation op = (AxisOperation)operations.next();

                        if (WSDLUtil.isInputPresentForMEP(op.getMessageExchangePattern())) {
                            AxisMessage message = op.getMessage(
                                    WSDLConstants.MESSAGE_LABEL_IN_VALUE);
                            if (message != null &&
                                    message.getParameter(Constants.UNWRAPPED_KEY) != null) {
                                SchemaGlobalElement xmlbeansElement =
                                        sts.findElement(message.getElementQName());
                                log.debug("CodeGenerationUtility::processSchemas  xmlbeansElement = "+xmlbeansElement.toString() );
then of course compile and redeploy:
mvn package
copy /target/*.jar into webapps/axis2/WEB-INF/lib
Un Saludo
Martín
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.