Re: Raw SOAP XML response

sanjib mondal <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAOVVAzCX8JLqxBpkDbVcPUN1BJwFd1A9aVwWBcj_-3ZgmK_MJw@mail.gmail.com>
Hi ,

Please unsubscribe my email id from all the list of ais.apache.org.

I have already informed this so many times but still i am getting email. If
i get email next time then i need to proceed with legal procedure.


Thanks
Sanjeev

On Thu, Nov 3, 2016 at 5:37 AM, Andreas Veithen <[email protected]>
wrote:

> This is by design. To avoid the overhead of building a complete DOM
> like representation of the message, Axis2 actually consumes the
> message (more specifically the content of the SOAP Body element) when
> converting it to a Java object. Once that is done, the original
> message can no longer be serialized. In the fault case the situation
> is different because Axis2 doesn't get to the point where it would
> consume (part of) the message.
>
> Andreas
>
> On Wed, Nov 2, 2016 at 1:37 PM, Sterpu Victor <[email protected]> wrote:
> > Hello
> >
> > I need to save the raw SOAP XML response from Axis2(I use axis 2 1.7.3).
> > When Axis2 call retusrns an error this code works: String response =
> > sc.getLastOperationContext().getMessageContext("In").
> getEnvelope().toString();
> > But when I run a succesful Axis2 call the same code gives the following
> > error: "java.lang.IllegalStateException: Can't process next node because
> > caching is disabled"
> >
> > I tryed to enable cache like this, but it didn't work:
> >
> >                                 ServiceClient sc =
> > (ServiceClient)method_getServiceClient.invoke(objectReflect);
> >                                 ServiceContext srv_context =
> > sc.getServiceContext();
> >
> > srv_context.setCachingOperationContext(true);
> >                                 OperationContext oc= new
> OperationContext();
> >                                 oc.setComplete(true);
> >                                 srv_context.setLastOperationContext(oc);
> >
> > Thank you
> >
> >
>
> ---------------------------------------------------------------------
> 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.