RE: Log xml request file

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


From: [email protected]
To: [email protected]
Subject: RE: Log xml request file
Date: Sat, 7 Mar 2015 10:35:01 +0100




Thank you very much, I will try Martin Rampart explanation on Monday, I´m excitted to try now but on Saturday and Sunday I work in a Bakery and from Monday - Friday on Software

Keep all updated with my progress

MG>
Hay una panadería de la esquina en la casa de hija mia en América del sur.Pan fresco, Donuts y lo mejor de todo gratis trata a los niños...Si usted viaja a Colombia, Perú parada por UIO Ecuador...Yo recojo en el aeropuerto y llevarte a la panadería

Mantente en contacto porfavor
Muchismimas Gracias/Obrigrado,
Martín
MG>
 

Thank you very much
Kind regards,
Oscar

From: [email protected]
To: [email protected]
Subject: RE: Log xml request file
Date: Fri, 6 Mar 2015 22:08:09 -0500







> 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.