Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 24242 invoked from network); 8 Nov 2004 11:39:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Nov 2004 11:39:45 -0000 Received: (qmail 29187 invoked by uid 500); 8 Nov 2004 11:39:38 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 29164 invoked by uid 500); 8 Nov 2004 11:39:37 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 29149 invoked by uid 99); 8 Nov 2004 11:39:37 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [66.218.78.143] (HELO web40606.mail.yahoo.com) (66.218.78.143) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 08 Nov 2004 03:39:36 -0800 Received: (qmail 64482 invoked by uid 60001); 8 Nov 2004 11:39:35 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=TpJX8VaSrgtP/QSQ8AkF1Ib5/whGV5Zv6Rx4ULHTj+1LGrCSXEnAuDh9RI5OVMPkl1Ljcep6Rnmx07GA4UGdhxKlv9Yy9/RQMiCQoWz/ajGUvjXgikxspTyg4+ypDi7GtjGndMAqEPJltEHmfk0SWA45QwWbo/Ua9J7iXxdQ9uo= ; Message-ID: <20041108113935.64480.qmail@web40606.mail.yahoo.com> Received: from [202.162.29.13] by web40606.mail.yahoo.com via HTTP; Mon, 08 Nov 2004 03:39:35 PST Date: Mon, 8 Nov 2004 03:39:35 -0800 (PST) From: Samisa Abeysinghe Subject: Make error messages meaningful [WAS:RE: Axis C++ 1.3 final is released] To: Apache AXIS C User List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N In case of debuggin errors like these, it is a nightmare to locate the problem when the engine says somethig like "Exception : Cannot deserialize the requested element" or "Exception : 55". We must update the engin to throw more meaningful errors. As an example, in this case, it must tell me what it cannot deserialize. That is the message should include either the element it found or the element it was looking for or the best - what was expected and what was found. (It is not easy to do this manual cheking for complex services like these.) Samisa... --- adrian.p.smith@bt.com wrote: > Sorry, I use YATT over a VPN to capture the response and it's a bit flakey! > > Here is one taken from our mid-tier server log file: > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:tns="http://www.bt.com/css/mmbi/2002/06/types" > xmlns:ns1="http://www.bt.com/css/mmbi/WS021A/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">PCK002069bt.com > SS01 ND1234567890200107190000223344dyemw01 > im011111AdrianWS021AgetCustomerProfile2020/07/04V4.006CSS > R83CMadrianOK1123012700010120856148911230127052BODMINTXDY57NON3CCNOYN xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">MISS C > ACACIA59 > ST ANDREWS > ROADFINNIEGLENBODMINTONRINGSHIREBD1 > 1CC0107 xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">MISS C > ACACIA SOAP-ENC:arrayType="xsd:string[]">59 ST ANDREWS > ROADFINNIEGLENBODMINTONRINGSHIRE xsi:type="SOAP-ENC:Array" > SOAP-ENC:arrayType="xsd:string[]">143.3800.0000.00143.38AYLYI001PMILOPERSONAL > COMMSYRES SINGLE > EXCLBODORDINARY > ACCOUNT23/12/0407/11/00NI001143.38NO143.3801/11/00B/W***NONOCust > Options :CE1 SOAP-ENC:arrayType="xsd:string[]">01 Option 90100 - Tariff for Customer > Account > only00.00C xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">NO CSDP > 33.82Y TARIFF GRAND TOTAL : NO > N 00000.40 D 01/11/00 SOAP-ENC:arrayType="xsd:string[]">??39.50??25.000Success xsi:type="SOAP-ENC:Array" > SOAP-ENC:arrayType="tns:bill[]">I00107/11/00??143.38000000000000000 xsi:type="SOAP-ENC:Array" > SOAP-ENC:arrayType="tns:product[]">1A90100CFRIENDS > & > FAMILY0.000.001A14499CEXCH > LINE + > LINEBOX29.3629.361A14493CPRIORITY > FAULT > REPAIR0.000.001A52053ORESPONSE > 123ORS0.001A45743CCALL > SIGN0.000.001A51875CBT > Calling Features Pack > 14.464.462A42349CHOME > NUMBER 99 MCC > (13)0.000.00 > > > -----Original Message----- > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com] > Sent: 08 November 2004 10:40 > To: Apache AXIS C User List > Subject: RE: Axis C++ 1.3 final is released > > > There seems to be an error in your response: > NO > > looks to me as if invalid XML. Please check if this is a copy/paste error is if that is the real > response sent by the server. > > Thanks, > Samisa... > > --- adrian.p.smith@bt.com wrote: > > > OK, I've rebuilt my client with the new jar. I still get: > > > > Exception : Cannot deserialize the requested element > > Exception : 55 > > > > Here is the captred response: > > > > HTTP/1.1 200 OK > > Date: Mon, 08 Nov 2004 10:10:32 GMT > > Server: WebLogic WebLogic Server 6.1 SP5 04/21/2003 22:50:41 #253745 > > Content-Length: 5211 > > Content-Type: text/xml; charset=UTF-8 > > > > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:tns="http://www.bt.com/css/mmbi/2002/06/types" > > xmlns:ns1="http://www.bt.com/css/mmbi/WS021A/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">PCK002069bt.com > > SS01 ND1234567890200107190000223344dyemw01 > > > im011111AdrianWS021AgetCustomerProfile2020/07/04V4.006CSS > > > R83CMadrianOK1123012700010120856148911230127052BODMINTXDY57NON3CCNOYN > xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">MISS C > > > ACACIANO59 > > ST ANDREWS > > ROADFINNIEGLENBODMINTONRINGSHIREBD1 > > > 1CC0107 > xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">MISS C > > ACACIA > SOAP-ENC:arrayType="xsd:string[]">59 ST ANDREWS > > > ROADFINNIEGLENBODMINTONRINGSHIRE > xsi:type="SOAP-ENC:Array" > > > SOAP-ENC:arrayType="xsd:string[]">143.3800.0000.00143.38AYLYI001PMILOPERSONAL > > COMMSYRES SINGLE > > EXCLBODORDINARY > > > ACCOUNT23/12/0407/11/00NI001143.38NO143.3801/11/00B/W***NOCust > > Options :CE1 > SOAP-ENC:arrayType="xsd:string[]">01 Option 90100 - Tariff for > Customer > > Account > > > only00.00C > xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">NO CSDP > > > 33.82Y TARIFF GRAND TOTAL : NO > > > N 00000.40 D 01/11/00 > > SOAP-ENC:arrayType="xsd:string[]">£39.50£25.000Success > xsi:type="SOAP-ENC:Array" > > > SOAP-ENC:arrayType="tns:bill[]">I00107/11/00£143.38000000000000000 > xsi:type="SOAP-ENC:Array" > > > SOAP-ENC:arrayType="tns:product[]">1A90100CFRIENDS > > & > > > FAMILY0.000.001A14499CEXCH > > LINE + > > > LINEBOX29.3629.361A14493CPRIORITY > > FAULT > > > REPAIR0.000.001A52053ORESPONSE > > > 123ORS0.001A45743CCALL > > > SIGN0.000.001A51875CBT > > Calling Features Pack > > > 14.464.462A42349CHOME > > NUMBER 99 MCC > > > (13)0.000.00 > > > > -----Original Message----- > > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com] > > Sent: 08 November 2004 03:14 > > To: Apache AXIS C User List > > Subject: RE: Axis C++ 1.3 final is released > > > > > > Hi Adrian, > > A jar with fixes is at http://ws.apache.org/~samisa/wsdl2ws.jar > > (Please try this till nightly build is done.) > > Thanks, > > Samisa... > > > > --- adrian.p.smith@bt.com wrote: > > > > > Any progress on the overnight build or even just a new jar file? > > > > > > -----Original Message----- > > > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com] > > > Sent: 02 November 2004 04:34 > > > To: Apache AXIS C User List > > > Subject: RE: Axis C++ 1.3 final is released > > > > > > > > > Hi Adrian, > > > There was a bug in code generation, that caused this problem. > > > > > > The generated code has 'mmbi' XML tag. However, the genrated code was looking for a tag > > with > > > name 'mmbiOutput'. > > > > > > I fixed the problem and the source > > (org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java) > > > is > > > in CVS now. > > > However, I think you are using binary distribution. > > > I will look into how I could provide you with a 1.3 bug fix branch nightly to get your > > > problem solved. > > > > > > Thanks, > > > Samisa... > > > > > > --- adrian.p.smith@bt.com wrote: > > > > > > > OK, the response is now: > === message truncated ===> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:tns="http://www.bt.com/css/mmbi/2002/06/types" > xmlns:ns1="http://www.bt.com/css/mmbi/WS021A/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">PCK002069bt.com > SS01 ND1234567890200107190000223344dyemw01 > im011111AdrianWS021AgetCustomerProfile2020/07/04V4.006CSS > R83CMadrianOK1123012700010120856148911230127052BODMINTXDY57NON3CCNOYN xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">MISS C > ACACIA59 > ST ANDREWS > ROADFINNIEGLENBODMINTONRINGSHIREBD1 > 1CC0107 xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">MISS C > ACACIA SOAP-ENC:arrayType="xsd:string[]">59 ST ANDREWS > ROADFINNIEGLENBODMINTONRINGSHIRE xsi:type="SOAP-ENC:Array" > SOAP-ENC:arrayType="xsd:string[]">143.3800.0000.00143.38AYLYI001PMILOPERSONAL > COMMSYRES SINGLE > EXCLBODORDINARY > ACCOUNT23/12/0407/11/00NI001143.38NO143.3801/11/00B/W***NONOCust > Options :CE1 SOAP-ENC:arrayType="xsd:string[]">01 Option 90100 - Tariff for Customer > Account > only00.00C xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">NO CSDP > 33.82Y TARIFF GRAND TOTAL : NO > N 00000.40 D 01/11/00 SOAP-ENC:arrayType="xsd:string[]">??39.50??25.000Success xsi:type="SOAP-ENC:Array" > SOAP-ENC:arrayType="tns:bill[]">I00107/11/00??143.38000000000000000 xsi:type="SOAP-ENC:Array" > SOAP-ENC:arrayType="tns:product[]">1A90100CFRIENDS > & > FAMILY0.000.001A14499CEXCH > LINE + > LINEBOX29.3629.361A14493CPRIORITY > FAULT > REPAIR0.000.001A52053ORESPONSE > 123ORS0.001A45743CCALL > SIGN0.000.001A51875CBT > Calling Features Pack > 14.464.462A42349CHOME > NUMBER 99 MCC > (13)0.000.00 > __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com