Okie. Take it easy!
On Tue, May 24, 2011 at 3:13 PM, Andreas Veithen <andreas.veit...@gmail.com>wrote: > If you had read the article I sent earlier [1], you would know now > that you should "write to the mailing list, not to individual > developers". Anyway, the IBM support people are paid to help you with > your problem, while we are all volunteers here. So please stop > diverting our time away from issues reported by people who use the > Open Source Axis2 product and who are not entitled to commercial > support. > > Andreas > > [1] http://www.catb.org/~esr/faqs/smart-questions.html > > On Tue, May 24, 2011 at 20:48, Anil Atyam <aanilku...@gmail.com> wrote: > > Thanks Andreas. > > > > Quick question: > > > > Why responseMessageContext.getEnvelope() returning NULL even though we > have > > SOAP Envelop in the response? Appreciate your help. We are still > struggling > > with this issue and have already opened ticket with IBM. > > > > > > > > > > protected void handleResponse(MessageContext responseMessageContext) > throws > > AxisFault{ > > > > 336 // Options object reused above so soapAction needs to be > removed > > so > > > > 337 // that soapAction+wsa:Action on response don't conflict > > > > 338 responseMessageContext.setSoapAction(null); > > > > 339 > > > > 340 if (responseMessageContext.getEnvelope() == null) { > > > > 341 // If request is REST we assume the responseMessageContext > is > > REST, so > > > > 342 // set the variable > > > > 343 /* > > > > 344 * old code here was using the outbound message context to > > set the inbound SOAP namespace, > > > > 345 * as such and passing it to > TransportUtils.createSOAPMessage > > > > 346 * > > > > 347 * msgctx.getEnvelope().getNamespace().getNamespaceURI() > > > > 348 * > > > > 349 * However, the SOAP1.2 spec, appendix A indicates that if > a > > SOAP1.2 message is sent to a SOAP1.1 > > > > 350 * endpoint, we will get a SOAP1.1 (fault) message > response. > > We need another way to set > > > > 351 * the inbound SOAP version. Best way to do this is to > trust > > the content type and let > > > > 352 * createSOAPMessage take care of figuring out what the > SOAP > > namespace is. > > > > 353 */ > > > > 354 SOAPEnvelope resenvelope = > > TransportUtils.createSOAPMessage(responseMessageContext); > > > > 355 if (resenvelope != null) { > > > > 356 responseMessageContext.setEnvelope(resenvelope); > > > > 357 } else { > > > > 358 throw new AxisFault(Messages > > > > 359 > > .getMessage("blockingInvocationExpectsResponse")); > > > > 360 } > > > > 361 } > > > > 362 SOAPEnvelope resenvelope = > responseMessageContext.getEnvelope(); > > > > 363 if (resenvelope != null) { > > > > 364 AxisEngine.receive(responseMessageContext); > > > > 365 if (responseMessageContext.getReplyTo() != null) { > > > > 366 sc.setTargetEPR(responseMessageContext.getReplyTo()); > > > > 367 } > > > > 368 if > > (resenvelope.hasFault()||responseMessageContext.isProcessingFault()) { > > > > 369 if (options.isExceptionToBeThrownOnSOAPFault()) { > > > > 370 // does the SOAPFault has a detail element for > > Excpetion > > > > 371 throw > > Utils.getInboundFaultFromMessageContext(responseMessageContext); > > > > 372 } > > > > 373 } > > > > 374 } > > > > 375 } > > > > > > > > > > > > > > SOAP Response: > > > > > > HTTP/1.0 200 OK > > > > Date: Thu, 12 May 2011 19:12:29 GMT > > > > Server: ACE XML Gateway > > > > Content-Type: multipart/related; type="application/xop+xml"; > > boundary="--MIMEBoundary634408099496812220"; > > start="<0.634408099496812...@example.org>"; start-info="text/xml" > > > > Content-Length: 860 > > > > Connection: close > > > > > > > > ----MIMEBoundary634408099496812220 > > > > Content-Type: application/xop+xml;type="text/xml"; > > > > Content-ID: <0.634408099496812...@example.org> > > > > 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> > > > > ----MIMEBoundary634408099496812220-- > > > > > -- Thanks, Anil Atyam,