axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anil Atyam <aanilku...@gmail.com>
Subject Re: AXIS2 with MTOM issue.
Date Thu, 19 May 2011 15:13:16 GMT
Another interesting fact is, the response is successfully processed when we
invoke the producer (webservice) directly. The error only coming only when
we communicate the producer via ESB.



On Wed, May 18, 2011 at 5:37 PM, Anil Atyam <aanilkumar@gmail.com> wrote:

> Thanks Andreas.
>
> I will pursue that option. Meanwhile, do you see any other leads causing
> this issue?
>
> Does the response has to have a base64Binary element?
> Is it possible to restrict MTOM to only request and not the response?
>
> Appreciate if you can answer these questions.
>
> Thanks
> Anil Atyam
> Ph: 703 473 0039
>
>
> On May 18, 2011, at 5:16 PM, Andreas Veithen <andreas.veithen@gmail.com>
> wrote:
>
> > We don't provide support for commercial products based on Axis2. You
> > should use the correct channels for this, i.e open a PMR with IBM
> > support.
> >
> > Andreas
> >
> > On Wed, May 18, 2011 at 22:29, Anil Atyam <aanilkumar@gmail.com> wrote:
> >> Thanks Andreas for the response. We are using IBM WebSphere application
> >> server version 7.0 with latest fix packs. So, I assume IBM using latest
> and
> >> greatest AXIS2 and AXIOM. If not the greatest, they must be using 1.2.8.
> >>
> >> I have tried my best to locate the information and couldn't find it. I
> am
> >> pasting below the bundling information from manifest file of
> >> org.apache.axis2.jar included in IBM WebSphere application server
> plug-ins.
> >>
> >>
> >>
> >> Bundle-Activator: com.ibm.ws.wsfp.axis2.bundle.WSFPAxis2BundleActivato
> >>
> >> r
> >>
> >> Bundle-Localization: plugin
> >>
> >> Bundle-ManifestVersion: 2
> >>
> >> Bundle-Name: org.apache.axis2
> >>
> >> Bundle-SymbolicName: org.apache.axis2; singleton:=true
> >>
> >> Bundle-Vendor: IBM
> >>
> >> Bundle-Version: 7.0.0
> >>
> >> Manifest-Version: 1.0
> >>
> >> Require-Bundle: com.ibm.jaxb.tools,
> >>
> >> com.ibm.jaxws.tools,
> >>
> >> com.ibm.ws.prereq.wsdl4j,
> >>
> >> com.ibm.ws.prereq.javamail
> >>
> >> Import-Package: com.ibm.ws.wsaddressing,
> >>
> >> com.ibm.ws.wsaddressing.namespace,
> >>
> >> com.ibm.wsspi.runtime.service,
> >>
> >> javax.ejb; version="7.0.0",
> >>
> >> javax.jms; version="7.0.0",
> >>
> >> javax.servlet.http; version="7.0.0",
> >>
> >> javax.servlet; version="7.0.0",
> >>
> >> javax.xml,
> >>
> >> javax.xml.datatype,
> >>
> >> javax.xml.parsers,
> >>
> >> javax.xml.transform,
> >>
> >> javax.xml.transform.dom,
> >>
> >> javax.xml.transform.sax,
> >>
> >> javax.xml.transform.stream,
> >>
> >> javax.xml.validation,
> >>
> >> javax.xml.xpath,
> >>
> >> org.apache.commons.logging,
> >>
> >> org.apache.commons.logging.impl,
> >>
> >> org.osgi.framework
> >>
> >> Export-Package: org.apache.axiom.attachments,
> >>
> >> org.apache.axiom.attachments.impl,
> >>
> >> org.apache.axiom.attachments.lifecycle,
> >>
> >> org.apache.axiom.attachments.lifecycle.impl,
> >>
> >> org.apache.axiom.attachments.utils,
> >>
> >> org.apache.axiom.om,
> >>
> >> org.apache.axiom.om.ds,
> >>
> >> org.apache.axiom.om.ds.custombuilder,
> >>
> >> org.apache.axiom.om.impl,
> >>
> >> org.apache.axiom.om.impl.builder,
> >>
> >> org.apache.axiom.om.impl.dom,
> >>
> >> org.apache.axiom.om.impl.dom.factory,
> >>
> >> org.apache.axiom.om.impl.dom.jaxp,
> >>
> >> org.apache.axiom.om.impl.dom.msg,
> >>
> >> org.apache.axiom.om.impl.exception,
> >>
> >> org.apache.axiom.om.impl.llom,
> >>
> >> org.apache.axiom.om.impl.llom.factory,
> >>
> >> org.apache.axiom.om.impl.llom.util,
> >>
> >> org.apache.axiom.om.impl.serialize,
> >>
> >> org.apache.axiom.om.impl.traverse,
> >>
> >> org.apache.axiom.om.impl.util,
> >>
> >> org.apache.axiom.om.util,
> >>
> >> org.apache.axiom.om.xpath,
> >>
> >> org.apache.axiom.soap,
> >>
> >> org.apache.axiom.soap.impl.builder,
> >>
> >> org.apache.axiom.soap.impl.dom,
> >>
> >> org.apache.axiom.soap.impl.dom.factory,
> >>
> >> org.apache.axiom.soap.impl.dom.soap11,
> >>
> >> org.apache.axiom.soap.impl.dom.soap12,
> >>
> >> org.apache.axiom.soap.impl.llom,
> >>
> >> org.apache.axiom.soap.impl.llom.soap11,
> >>
> >> org.apache.axiom.soap.impl.llom.soap12,
> >>
> >> org.apache.axis2,
> >>
> >> org.apache.axis2.addressing,
> >>
> >> org.apache.axis2.addressing.i18n,
> >>
> >> org.apache.axis2.addressing.metadata,
> >>
> >> org.apache.axis2.addressing.wsdl,
> >>
> >> org.apache.axis2.builder,
> >>
> >> org.apache.axis2.client,
> >>
> >> org.apache.axis2.client.async,
> >>
> >> org.apache.axis2.context,
> >>
> >> org.apache.axis2.databinding,
> >>
> >> org.apache.axis2.databinding.i18n,
> >>
> >> org.apache.axis2.databinding.typemapping,
> >>
> >> org.apache.axis2.databinding.types,
> >>
> >> org.apache.axis2.databinding.types.soapencoding,
> >>
> >> org.apache.axis2.databinding.types.xsd,
> >>
> >> org.apache.axis2.databinding.utils,
> >>
> >> org.apache.axis2.databinding.utils.reader,
> >>
> >> org.apache.axis2.databinding.utils.writer,
> >>
> >> org.apache.axis2.dataretrieval,
> >>
> >> org.apache.axis2.dataretrieval.client,
> >>
> >> org.apache.axis2.datasource,
> >>
> >> org.apache.axis2.datasource.jaxb,
> >>
> >> org.apache.axis2.deployment,
> >>
> >> org.apache.axis2.deployment.repository.util,
> >>
> >> org.apache.axis2.deployment.resolver,
> >>
> >> org.apache.axis2.deployment.scheduler,
> >>
> >> org.apache.axis2.deployment.util,
> >>
> >> org.apache.axis2.description,
> >>
> >> org.apache.axis2.engine,
> >>
> >> org.apache.axis2.handlers,
> >>
> >> org.apache.axis2.handlers.addressing,
> >>
> >> org.apache.axis2.i18n,
> >>
> >> org.apache.axis2.java.security,
> >>
> >> org.apache.axis2.jaxws,
> >>
> >> org.apache.axis2.jaxws.addressing,
> >>
> >> org.apache.axis2.jaxws.addressing.factory,
> >>
> >> org.apache.axis2.jaxws.addressing.migrator,
> >>
> >> org.apache.axis2.jaxws.addressing.util,
> >>
> >> org.apache.axis2.jaxws.binding,
> >>
> >> org.apache.axis2.jaxws.catalog,
> >>
> >> org.apache.axis2.jaxws.catalog.impl,
> >>
> >> org.apache.axis2.jaxws.client,
> >>
> >> org.apache.axis2.jaxws.client.async,
> >>
> >> org.apache.axis2.jaxws.client.dispatch,
> >>
> >> org.apache.axis2.jaxws.client.proxy,
> >>
> >> org.apache.axis2.jaxws.core,
> >>
> >> org.apache.axis2.jaxws.core.controller,
> >>
> >> org.apache.axis2.jaxws.core.util,
> >>
> >> org.apache.axis2.jaxws.description,
> >>
> >> org.apache.axis2.jaxws.description.builder,
> >>
> >> org.apache.axis2.jaxws.description.impl,
> >>
> >> org.apache.axis2.jaxws.description.xml.handler,
> >>
> >> org.apache.axis2.jaxws.dispatchers,
> >>
> >> org.apache.axis2.jaxws.feature,
> >>
> >> org.apache.axis2.jaxws.handler,
> >>
> >> org.apache.axis2.jaxws.handler.factory,
> >>
> >> org.apache.axis2.jaxws.handler.lifecycle.factory,
> >>
> >> org.apache.axis2.jaxws.handler.lifecycle.impl,
> >>
> >> org.apache.axis2.jaxws.i18n,
> >>
> >> org.apache.axis2.jaxws.injection,
> >>
> >> org.apache.axis2.jaxws.lifecycle,
> >>
> >> org.apache.axis2.jaxws.marshaller,
> >>
> >> org.apache.axis2.jaxws.marshaller.factory,
> >>
> >> org.apache.axis2.jaxws.marshaller.impl.alt,
> >>
> >> org.apache.axis2.jaxws.message,
> >>
> >> org.apache.axis2.jaxws.message.attachments,
> >>
> >> org.apache.axis2.jaxws.message.databinding,
> >>
> >> org.apache.axis2.jaxws.message.databinding.impl,
> >>
> >> org.apache.axis2.jaxws.message.factory,
> >>
> >> org.apache.axis2.jaxws.message.impl,
> >>
> >> org.apache.axis2.jaxws.message.util,
> >>
> >> org.apache.axis2.jaxws.message.util.impl,
> >>
> >> org.apache.axis2.jaxws.registry,
> >>
> >> org.apache.axis2.jaxws.runtime.description.injection,
> >>
> >> org.apache.axis2.jaxws.runtime.description.marshal,
> >>
> >> org.apache.axis2.jaxws.server,
> >>
> >> org.apache.axis2.jaxws.server.dispatcher,
> >>
> >> org.apache.axis2.jaxws.server.dispatcher.factory,
> >>
> >> org.apache.axis2.jaxws.server.endpoint,
> >>
> >> org.apache.axis2.jaxws.server.endpoint.injection,
> >>
> >> org.apache.axis2.jaxws.server.endpoint.injection.factory,
> >>
> >> org.apache.axis2.jaxws.server.endpoint.injection.impl,
> >>
> >> org.apache.axis2.jaxws.server.endpoint.lifecycle,
> >>
> >> org.apache.axis2.jaxws.server.endpoint.lifecycle.factory,
> >>
> >> org.apache.axis2.jaxws.server.endpoint.lifecycle.factory.impl,
> >>
> >> org.apache.axis2.jaxws.server.endpoint.lifecycle.impl,
> >>
> >> org.apache.axis2.jaxws.spi,
> >>
> >> org.apache.axis2.jaxws.spi.handler,
> >>
> >> org.apache.axis2.jaxws.spi.migrator,
> >>
> >> org.apache.axis2.jaxws.util,
> >>
> >> org.apache.axis2.jaxws.utility,
> >>
> >> org.apache.axis2.jaxws.wrapper,
> >>
> >> org.apache.axis2.jaxws.wrapper.impl,
> >>
> >> org.apache.axis2.jaxws.wsdl,
> >>
> >> org.apache.axis2.metadata.factory,
> >>
> >> org.apache.axis2.metadata.registry,
> >>
> >> org.apache.axis2.metadata.resource,
> >>
> >> org.apache.axis2.mex,
> >>
> >> org.apache.axis2.modules,
> >>
> >> org.apache.axis2.namespace,
> >>
> >> org.apache.axis2.phaseresolver,
> >>
> >> org.apache.axis2.receivers,
> >>
> >> org.apache.axis2.rpc.client,
> >>
> >> org.apache.axis2.rpc.receivers,
> >>
> >> org.apache.axis2.saaj,
> >>
> >> org.apache.axis2.saaj.util,
> >>
> >> org.apache.axis2.schema,
> >>
> >> org.apache.axis2.schema.i18n,
> >>
> >> org.apache.axis2.schema.typemap,
> >>
> >> org.apache.axis2.schema.util,
> >>
> >> org.apache.axis2.schema.writer,
> >>
> >> org.apache.axis2.transport,
> >>
> >> org.apache.axis2.transport.http,
> >>
> >> org.apache.axis2.transport.http.server,
> >>
> >> org.apache.axis2.transport.http.util,
> >>
> >> org.apache.axis2.util,
> >>
> >> org.apache.axis2.util.threadpool,
> >>
> >> org.apache.axis2.wsdl,
> >>
> >> org.apache.axis2.wsdl.codegen,
> >>
> >> org.apache.axis2.wsdl.codegen.emitter,
> >>
> >> org.apache.axis2.wsdl.codegen.extension,
> >>
> >> org.apache.axis2.wsdl.codegen.writer,
> >>
> >> org.apache.axis2.wsdl.databinding,
> >>
> >> org.apache.axis2.wsdl.i18n,
> >>
> >> org.apache.axis2.wsdl.util,
> >>
> >> org.apache.axis2.xmlbeans,
> >>
> >> org.apache.commons.codec.binary; packageType="was_internal";mandatory
> >>
> >> :=packageType,
> >>
> >> org.apache.commons.codec.digest; packageType="was_internal";mandatory
> >>
> >> :=packageType,
> >>
> >> org.apache.commons.codec.language; packageType="was_internal";mandato
> >>
> >> ry:=packageType,
> >>
> >> org.apache.commons.codec.net; packageType="was_internal";mandatory:=p
> >>
> >> ackageType,
> >>
> >> org.apache.commons.codec; packageType="was_internal";mandatory:=packa
> >>
> >> geType,
> >>
> >> org.apache.commons.httpclient.auth;packageType="was_internal";mandato
> >>
> >> ry:=packageType,
> >>
> >> org.apache.commons.httpclient.cookie;packageType="was_internal";manda
> >>
> >> tory:=packageType,
> >>
> >> org.apache.commons.httpclient.methods.multipart;packageType="was_inte
> >>
> >> rnal";mandatory:=packageType,
> >>
> >> org.apache.commons.httpclient.methods;packageType="was_internal";mand
> >>
> >> atory:=packageType,
> >>
> >> org.apache.commons.httpclient.params;packageType="was_internal";manda
> >>
> >> tory:=packageType,
> >>
> >> org.apache.commons.httpclient.protocol;packageType="was_internal";man
> >>
> >> datory:=packageType,
> >>
> >> org.apache.commons.httpclient.util;packageType="was_internal";mandato
> >>
> >> ry:=packageType,
> >>
> >> org.apache.commons.httpclient; packageType="was_internal";mandatory:=
> >>
> >> packageType,
> >>
> >> org.apache.neethi,
> >>
> >> org.apache.neethi.builders,
> >>
> >> org.apache.neethi.builders.xml,
> >>
> >> org.apache.neethi.util,
> >>
> >> org.apache.sandesha2,
> >>
> >> org.apache.sandesha2.addressing,
> >>
> >> org.apache.sandesha2.client,
> >>
> >> org.apache.sandesha2.context,
> >>
> >> org.apache.sandesha2.handlers,
> >>
> >> org.apache.sandesha2.i18n,
> >>
> >> org.apache.sandesha2.msgprocessors,
> >>
> >> org.apache.sandesha2.msgreceivers,
> >>
> >> org.apache.sandesha2.policy,
> >>
> >> org.apache.sandesha2.policy.builders,
> >>
> >> org.apache.sandesha2.polling,
> >>
> >> org.apache.sandesha2.security,
> >>
> >> org.apache.sandesha2.security.dummy,
> >>
> >> org.apache.sandesha2.storage,
> >>
> >> org.apache.sandesha2.storage.beanmanagers,
> >>
> >> org.apache.sandesha2.storage.beans,
> >>
> >> org.apache.sandesha2.storage.inmemory,
> >>
> >> org.apache.sandesha2.transport,
> >>
> >> org.apache.sandesha2.util,
> >>
> >> org.apache.sandesha2.workers,
> >>
> >> org.apache.sandesha2.wsrm,
> >>
> >> org.apache.ws.commons.schema,
> >>
> >> org.apache.ws.commons.schema.constants,
> >>
> >> org.apache.ws.commons.schema.extensions,
> >>
> >> org.apache.ws.commons.schema.resolver,
> >>
> >> org.apache.ws.commons.schema.utils,
> >>
> >> org.apache.ws.java2wsdl,
> >>
> >> org.apache.ws.java2wsdl.utils,
> >>
> >> org.apache.xml.resolver,
> >>
> >> org.jaxen; packageType="was_internal";mandatory:=packageType
> >>
> >> On Wed, May 18, 2011 at 3:37 PM, Andreas Veithen <
> andreas.veithen@gmail.com>
> >> wrote:
> >>>
> >>> On Wed, May 18, 2011 at 19:19, Anil Atyam <aanilkumar@gmail.com>
> wrote:
> >>>> Folks
> >>>>
> >>>> I appreciate if you can help with the following issue we are
> struggling
> >>>> to
> >>>> resolve.
> >>>>
> >>>> We @ National Rail Road Corporation implementing a solution where we
> >>>> send
> >>>> Itinerary as PDF attachment to the passenger's email. To do so, we are
> >>>> using
> >>>> MTOM enabled Web Service which sends to request to a third party
> company
> >>>> which runs on IIS server to send emails.
> >>>>
> >>>> Everything works until here. Emails are delivered fine. However, we
> are
> >>>> having exception while processing the response. AXIS2 framwork failed
> to
> >>>> process the response.
> >>>>
> >>>> First, we don't have any attachments in response. We only have
> >>>> attachments
> >>>> in Request and its processed succesfully. The response has only
> Success
> >>>> element and nothing else. The response sent to us is MIME encoded
> >>>> base64Binary.
> >>>>
> >>>> Here is the response:
> >>>>
> >>>> HTTP/1.1 200 OK
> >>>> Connection: close
> >>>> Date: Thu, 12 May 2011 14:42:15 GMT
> >>>> Server: Microsoft-IIS/6.0
> >>>> X-Powered-By: ASP.NET <http://asp.net/>
> >>>> X-AspNet-Version: 2.0.50727
> >>>> Cache-Control: private, max-age=0
> >>>> Content-Type: multipart/related; type="application/xop+xml";
> >>>> boundary=--MIMEBoundary634407937359568655;
> >>>> start="<0.634407937359568655@example.org>"; start-info="text/xml;
> >>>> charset=utf-8"
> >>>> Content-Length: 890
> >>>>
> >>>> ----MIMEBoundary634407937359568655
> >>>> content-id: <0.634407937359568655@example.org>
> >>>> content-type: application/xop+xml; charset=utf-8; type="text/xml;
> >>>> charset=utf-8"
> >>>> content-transfer-encoding: binary
> >>>>
> >>>> <soap:Envelope xmlns:xop="http://www.w3.org/2004/08/xop/include"
> >>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >>>> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
> >>>>
> >>>> xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> "
> >>>>
> >>>> xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "><soap:Body><TravelDocumentNotificationRS
> >>>> Version="1.000" xmlns="http://www.amtrak.com/schema/2010/01/01
> "><Success
> >>>> /></TravelDocumentNotificationRS></soap:Body></soap:Envelope>
> >>>> ----MIMEBoundary634407937359568655--
> >>>>
> >>>> Exception:
> >>>>
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R Caused by:
> >>>> java.lang.NullPointerException
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axiom.attachments.Attachments.getSOAPPartContentType(Attachments.java:450)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:41)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:191)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:139)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:102)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:66)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       at
> >>>>
> >>>>
> org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:567)
> >>>> [5/6/11 15:49:57:536 EDT] 0000001c SystemErr     R       ... 20 more
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> Why does the AXIS2 framwork code going to attachment class when there
> >>>> are no
> >>>> attachments?
> >>>>
> >>>> We appreciate any help in this regard.
> >>>>
> >>>
> >>> Actually, the name "Attachments" for that class was not chosen very
> >>> well, because it represents (at least in this context) the complete
> >>> set of MIME parts in a MIME multipart (i.e. an MTOM or SOAP with
> >>> attachments message), including the SOAP part. In your case the
> >>> response is an MTOM message, so the use of the Attachments class is
> >>> correct. On the other hand it should obviously not result in a
> >>> NullPointerException. To figure out why this happens, we need the
> >>> exact version of the Axiom library that you are using.
> >>>
> >>> Andreas
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> >>> For additional commands, e-mail: java-dev-help@axis.apache.org
> >>>
> >>
> >>
> >>
> >> --
> >> Thanks,
> >> Anil Atyam,
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> > For additional commands, e-mail: java-dev-help@axis.apache.org
> >
>



-- 
Thanks,
Anil Atyam,

Mime
View raw message