Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 9666 invoked from network); 3 Jul 2006 09:20:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2006 09:20:32 -0000 Received: (qmail 40447 invoked by uid 500); 3 Jul 2006 09:20:23 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 40422 invoked by uid 500); 3 Jul 2006 09:20:22 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 40409 invoked by uid 99); 3 Jul 2006 09:20:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 02:20:22 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of pzfreo@gmail.com designates 64.233.166.177 as permitted sender) Received: from [64.233.166.177] (HELO py-out-1112.google.com) (64.233.166.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 02:20:21 -0700 Received: by py-out-1112.google.com with SMTP id z59so1284743pyg for ; Mon, 03 Jul 2006 02:19:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HRvyeRYPyBtWOOTT6jjdyyT3oXkfdWoGSTAzrI/5cTPtTfmgX5Dx5jX6/HD1RzKxZE+FEUtwJ+zoEOMjYeQ9pRoQmol/Jj+lOaA2a3UUxMMU+yEez/O8fZ6K+Wtb37pG/ceYYY/cTc2DWeR7bCwHz1gBy4I1QM0euOz6/TZKrSw= Received: by 10.35.84.16 with SMTP id m16mr2617037pyl; Mon, 03 Jul 2006 02:19:51 -0700 (PDT) Received: by 10.35.71.11 with HTTP; Mon, 3 Jul 2006 02:19:51 -0700 (PDT) Message-ID: <88f5d710607030219u49e82f9ah7328f12f44841cec@mail.gmail.com> Date: Mon, 3 Jul 2006 10:19:51 +0100 From: "Paul Fremantle" To: axis-user@ws.apache.org, sandesha-dev@ws.apache.org Subject: Re: [Axis2,Sandesha2]MTOM/XOP + WSRM In-Reply-To: <44A8D14F.9030305@bull.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44A29CB8.7030001@bull.net> <44A29F9F.9030700@bull.net> <44A2A2DF.9090905@bull.net> <88f5d710606280841n6fe4d2a4yd6321bca8d1ee7ac@mail.gmail.com> <88f5d710606281019j7458c89cw5ebcacd7726ffa1b@mail.gmail.com> <44A3F401.2080802@bull.net> <88f5d710606301127s6988aa1gcaf64c87ec16ed69@mail.gmail.com> <44A8D14F.9030305@bull.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Elodie This looks more like a Sandesha bug. I will do a test as well and let you know how it goes. Paul On 7/3/06, Mancinelli Elodie wrote: > Hi Paul > > 1) Yes, MTOM + XMLBeans code works without WSRM and also WSRM + XMLBeans > code works without WSRM. > 2) The error for MTOM + WSRM with ADB, I don't know because I can't > generate sources. > I'm trying to do MTOM + WSRM with ADB on a other little exemple like > HelloWorld. I tell you the result when I finish it. > > Thanks > > Elodie > > > > > Paul Fremantle wrote: > > > Elodie > > > > I'm not completely clear on the situation! > > > > 1) Is the MTOM + XMLBeans code working without WSRM? > > 2) What is the error you get with ADB? > > 3) Can you post the WSDL? > > > > Paul > > > > On 6/29/06, Mancinelli Elodie wrote: > > > >> Hi Paul > >> > >> Thanks for your response. I wish have more information because I don' t > >> understand why MTOM can't work with XmlBeans? And what is the > >> marshalling I have to use? > >> I try ADB but it not seems to work, I can't generate the server > >> implementation. > >> > >> In more, I create a client-server with only MTOM and I also create the > >> same thing with only WSRM(sandesha2) and both work separetly with > >> XmlBeans. Is the problem is WSRM + MTOM together? And how could I do to > >> resolve my problem? > >> > >> > >> Thanks a lot. > >> > >> Regards > >> Elodie > >> > >> > >> Paul Fremantle wrote: > >> > >> > Elodie > >> > > >> > I think the problem is that you are using MTOM with XMLBeans which > >> > does not work. > >> > > >> > Paul > >> > > >> > -- > >> > Paul Fremantle > >> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair > >> > > >> > http://bloglines.com/blog/paulfremantle > >> > paul@wso2.com > >> > > >> > "Oxygenating the Web Service Platform", www.wso2.com > >> > > >> > > >> > On 6/28/06, Mancinelli Elodie wrote: > >> > > >> >> Mancinelli Elodie wrote: > >> >> > >> >> > Sorry, I want to precise my request. When I observe with TCPMon the > >> >> > soap message, the differents messages of WSRM's protocole are > >> created > >> >> > (CreateSequence, CreateSequenceResponse, Message, Acknowldgement > >> and > >> >> > TerminateSequence). These messages are correct. The problem is > >> on the > >> >> > server after messages. > >> >> > > >> >> > Thanks, > >> >> > > >> >> > Regards, > >> >> > Elodie > >> >> > > >> >> > > >> >> > Mancinelli Elodie wrote: > >> >> > > >> >> >> Hi all, > >> >> >> > >> >> >> I try to create an OneWay method which supports WSRM and an > >> >> attachment. > >> >> >> My service is really simple, it's only a "println". > >> >> >> The method runs successfully when there is only the WSRM > >> >> >> implementation, but when I add the attachement part, I have an > >> server > >> >> >> error: > >> >> >> > >> >> >> org.apache.sandesha2.SandeshaException: Data binding error; nested > >> >> >> exception is: > >> >> >> java.lang.RuntimeException: Data binding error; nested > >> >> >> exception is: > >> >> >> org.apache.axis2.AxisFault: Data binding error; nested > >> >> >> exception is: > >> >> >> java.lang.RuntimeException: Data binding error > >> >> >> at > >> >> >> > >> >> > >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199) > >> >> >> Caused by: org.apache.axis2.AxisFault: Data binding error; nested > >> >> >> exception is: > >> >> >> java.lang.RuntimeException: Data binding error > >> >> >> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) > >> >> >> at > >> >> >> > >> >> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497) > >> >> >> at > >> >> org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543) > >> >> >> at > >> >> >> > >> >> > >> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189) > >> >> >> Caused by: java.lang.RuntimeException: Data binding error > >> >> >> at > >> >> >> > >> >> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46) > >> > >> >> > >> >> >> > >> >> >> ... 4 more > >> >> >> Caused by: org.apache.axiom.om.OMException: > >> >> >> java.lang.NullPointerException > >> >> >> at > >> >> >> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254) > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843) > >> >> >> at > >> >> >> > >> >> > >> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826) > >> >> >> at > >> >> >> > >> >> > >> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145) > >> > >> >> > >> >> >> > >> >> >> ... 5 more > >> >> >> Caused by: java.lang.NullPointerException > >> >> >> at > >> >> >> > >> >> > >> org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710) > >> > >> >> > >> >> >> > >> >> >> at org.apache.coyote.Request.doRead(Request.java:423) > >> >> >> at > >> >> >> > >> >> > >> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371) > >> >> >> at > >> >> >> > >> >> > >> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292) > >> >> >> at > >> >> >> > >> >> > >> org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104) > >> > >> >> > >> >> >> > >> >> >> at > >> java.io.FilterInputStream.read(FilterInputStream.java:66) > >> >> >> at > >> >> java.io.PushbackInputStream.read(PushbackInputStream.java:120) > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106) > >> >> >> at > >> >> >> > >> javax.mail.internet.InternetHeaders.(InternetHeaders.java:92) > >> >> >> at > >> >> javax.mail.internet.MimeBodyPart.(MimeBodyPart.java:59) > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.attachments.PartOnMemory.(PartOnMemory.java:31) > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451) > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:324) > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:151) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> >> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368) > >> > >> >> > >> >> >> > >> >> >> at > >> >> >> > >> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238) > >> >> >> > >> >> >> My client is: > >> >> >> > >> >> >> public static void testSubmitOneWayWSRM() throws Exception { > >> >> >> > >> >> >> ConfigurationContext configContext = > >> >> >> > >> >> > >> ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_REPO_PATH,axis2_xml); > >> > >> >> > >> >> >> > >> >> >> ServiceClient sender = new ServiceClient > >> >> (configContext,null); > >> >> >> > >> >> >> > >> >> >> OMFactory fac = OMAbstractFactory.getOMFactory(); > >> >> >> OMNamespace omNs = fac.createOMNamespace(namespace, "m"); > >> >> >> OMElement payload = fac.createOMElement("submitOneWay", > >> >> omNs); > >> >> >> OMElement bodymess = fac.createOMElement("bodymessage", > >> >> omNs); > >> >> >> // Add Text > >> >> >> String bodymessvalue=createSoapMessageString(fileXMLName); > >> >> >> payload.addChild(fac.createOMText(bodymess, > >> bodymessvalue)); > >> >> >> > >> >> >> // Add text file > >> >> >> OMElement attach=createAttachment(fac,omNs); > >> >> >> attach = fac.createOMElement("attachment", omNs); > >> >> >> File fileTxt = new File(fileName); > >> >> >> FileDataSource dataSource = new FileDataSource(fileTxt); > >> >> >> DataHandler expectedDH = new DataHandler(dataSource); > >> >> >> OMText textData = fac.createOMText(expectedDH, true); > >> >> >> System.out.println("Client:contentID" + > >> >> >> textData.getContentID()); > >> >> >> attach.addChild(textData); > >> >> >> payload.addChild(attach); > >> >> >> > >> >> >> System.out.println("callAXIOM, doc sent : "+payload); > >> >> >> Options options = new Options(); > >> >> >> options.setTo(targetEPR); > >> >> >> options.setAction("submitOneWay"); > >> >> >> options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > >> >> >> options.setUseSeparateListener(false); > >> >> >> options.setProperty(Constants.Configuration.ENABLE_MTOM, > >> >> >> Constants.VALUE_TRUE); > >> >> >> > >> >> >> > >> >> > >> options.setProperty(MessageContextConstants.TRANSPORT_URL,targetEPRTcpmon); > >> > >> >> > >> >> >> > >> >> >> sender.setOptions(options); > >> >> >> > >> >> >> options.setProperty(SandeshaClientConstants.LAST_MESSAGE, > >> >> >> "true"); > >> >> >> sender.fireAndForget(payload); > >> >> >> Thread.sleep(10000); > >> >> >> System.out.println("NO RETURN FOR WEBSERVICE"); > >> >> >> > >> >> >> } > >> >> >> > >> >> >> I join also the configuration file : client_axis2.xml > >> >> >> > >> >> >> Can someone have an idea? > >> >> >> > >> >> >> Thanks for your help. > >> >> >> > >> >> >> Regards > >> >> >> Elodie > >> >> >> > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org > >> >> For additional commands, e-mail: sandesha-dev-help@ws.apache.org > >> >> > >> >> > >> > > >> > > >> > >> > > > > > > -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle paul@wso2.com "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org