axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <adrian.p.sm...@bt.com>
Subject RE: Fw: Make error messages meaningful [WAS:RE: Axis C++ 1.3 final is released]
Date Tue, 09 Nov 2004 10:28:16 GMT
My problems only occur on the client, the service isn't C++.

-----Original Message-----
From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
Sent: 09 November 2004 01:00
To: Apache AXIS C User List
Subject: Re: Fw: Make error messages meaningful [WAS:RE: Axis C++ 1.3
final is released]


Hi Mark,
   Thanks for the tip.
   Unfortunately, I do not have access to the service. Hence Adrian would have to enable the
trace.
Thanks,
Samisa...

--- Mark Whitlock <mark_whitlock@uk.ibm.com> wrote:

> 
> 
> 
> 
> 
> Hi Samisa,
> Try debugging it from the trace - that's what trace is there for. ant
> buildWithTrace runs the trace tool as part of the build to instrument the
> source code with entry/exit trace. Alternatively find the tool under
> ws-axis/c/tools/trace and invoke it using java
> org.apache.axis.tracetool.AddEntryAndExitTrace <sourcedirectory>. Here's a
> small trace from the Calculator test...
> (See attached file: ClientLog)
> Pointers are traced by outputting the pointer first, then the contents in
> hex in [ ], then the contents as printable characters in < >. There are
> limitations to the current support, but I'm improving it.
> I would be interested to hear any comments you may have,
> Thanks,
> Mark
> Mark Whitlock
> IBM
> 
> ----- Forwarded by Mark Whitlock/UK/IBM on 08/11/2004 12:33 -----
>                                                                        
>              Samisa Abeysinghe                                         
>              <samisa_abeysingh                                         
>              e@yahoo.com>                                               To
>                                        Apache AXIS C User List         
>              08/11/2004 11:39          <axis-c-user@ws.apache.org>     
>                                                                         cc
>                                                                        
>              Please respond to                                     Subject
>               "Apache AXIS C           Make error messages meaningful  
>                 User List"             [WAS:RE: Axis C++ 1.3 final is  
>                                        released]                       
>                                                                        
>                                                                        
>                                                                        
>                                                                        
>                                                                        
>                                                                        
> 
> 
> 
> 
> 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:
> >
> > <?xml version="1.0" standalone="no"?><SOAP-ENV:Envelope
> > 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:Body><ns1:getCustomerProfileResponse
> >
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/
> "><WS021AResponse><E2E><pck>PCK002069bt.com
> > SS01   ND1234567890200107190000223344dyemw01
> >
>
im011111</pck><callerId>Adrian</callerId></E2E><mmbi><object>WS021A</object><method>getCustomerProfile</method><objectVer>20</objectVer><compileDate>20/07/04</compileDate><compilerVer>V4.00</compilerVer><mmbiVer>6</mmbiVer><sysText>CSS
> 
> >
>
R83</sysText><location>CM</location><correlId>adrian</correlId><status>OK</status></mmbi><instId>112301270001</instId><telNr>01208561489</telNr><custAcctNr>11230127</custAcctNr><verNr>052</verNr><exchNm>BODMIN</exchNm><exchType>TXDY57</exchType><currFault>NO</currFault><rcntOrder>N</rcntOrder><follwUpRtng>3</follwUpRtng><custCnsntA>C</custCnsntA><custCnsntB>C</custCnsntB><outstCplntInd>NO</outstCplntInd><callItmsnInd>Y</callItmsnInd><notes>N</notes><names
> 
> > xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]"><name>MISS
C
> > ACACIA</name></names><addrs xsi:type="SOAP-ENC:Array"
> SOAP-ENC:arrayType="xsd:string[]"><addr>59
> > ST ANDREWS
> >
> ROAD</addr><addr>FINNIEGLEN</addr><addr>BODMINTON</addr><addr>RINGSHIRE</addr><addr>BD1
> 
> >
>
1CC</addr></addrs><noOfBillRecords>01</noOfBillRecords><noOfProductRecords>07</noOfProductRecords><custBillNms
> 
> > xsi:type="SOAP-ENC:Array"
> SOAP-ENC:arrayType="xsd:string[]"><custBillNm>MISS C
> > ACACIA</custBillNm></custBillNms><custBillAddrs xsi:type="SOAP-ENC:Array"
> > SOAP-ENC:arrayType="xsd:string[]"><custBillAddr>59 ST ANDREWS
> >
>
ROAD</custBillAddr><custBillAddr>FINNIEGLEN</custBillAddr><custBillAddr>BODMINTON</custBillAddr><custBillAddr>RINGSHIRE</custBillAddr></custBillAddrs><acctEntrys
> 
> > xsi:type="SOAP-ENC:Array"
> >
>
SOAP-ENC:arrayType="xsd:string[]"><acctEntry>143.38</acctEntry><acctEntry>00.00</acctEntry><acctEntry>00.00</acctEntry><acctEntry>143.38</acctEntry></acctEntrys><tar>A</tar><notesInd>Y</notesInd><billMthd>L</billMthd><csdpInd>Y</csdpInd><follwUpId>I001</follwUpId><dtyRef>PMILO</dtyRef><custType>PERSONAL
> 
> > COMMS</custType><inv>Y</inv><instClass>RES SINGLE
> > EXCL</instClass><existGrpCde>BOD</existGrpCde><acctPayMthd>ORDINARY
> >
>
ACCOUNT</acctPayMthd><nextInvDue>23/12/04</nextInvDue><currInvcDate>07/11/00</currInvcDate><trnSvce>N</trnSvce><currInvcId>I001</currInvcId><charRaisd>143.38</charRaisd><debtMgtCase>NO</debtMgtCase><totOfInvc>143.38</totOfInvc><instStrt>01/11/00</instStrt><lnSts>B/W</lnSts><rprPrty>***</rprPrty><maintSvceCde>NO</maintSvceCde><outstBill>NO</outstBill><vrufTtl>Cust
> 
> > Options :</vrufTtl><vrufOpt>CE1</vrufOpt><prodLns
> xsi:type="SOAP-ENC:Array"
> > SOAP-ENC:arrayType="xsd:string[]"><prodLn>01                 Option 90100
> - Tariff for Customer
> > Account
> >
>
only</prodLn></prodLns><unbilledUsage>00.00</unbilledUsage><trafficBillingInd>C</trafficBillingInd><lns
> 
> > xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]"><ln>NO
> CSDP
> >                                33.82</ln><ln>Y TARIFF GRAND TOTAL :
> NO
> > N 00000.40   D   01/11/00</ln></lns><bdgtAcctPymts
> xsi:type="SOAP-ENC:Array"
> >
> SOAP-ENC:arrayType="xsd:string[]"><bdgtAcctPymt>??39.50
> </bdgtAcctPymt><bdgtAcctPymt>??25.00
>
</bdgtAcctPymt></bdgtAcctPymts><appnCompletion><appnCompCode>0</appnCompCode><appnCompText>Success</appnCompText></appnCompletion><bills
> 
> > xsi:type="SOAP-ENC:Array"
> >
>
SOAP-ENC:arrayType="tns:bill[]"><bill><billTyp>I</billTyp><billSerNr>001</billSerNr><billDate>07/11/00</billDate><billAmt>??143.38
>
</billAmt><itmsdUnits>0000000</itmsdUnits><mtrdUnits>00000000</mtrdUnits></bill></bills><products
> 
> > xsi:type="SOAP-ENC:Array"
> >
>
SOAP-ENC:arrayType="tns:product[]"><product><qnty>1</qnty><prod>A90100</prod><prodSts>C</prodSts><shortProdDescr>FRIENDS
> 
> > &amp;
> >
>
FAMILY</shortProdDescr><tarRate>0.00</tarRate><tarTot>0.00</tarTot></product><product><qnty>1</qnty><prod>A14499</prod><prodSts>C</prodSts><shortProdDescr>EXCH
> 
> > LINE +
> >
>
LINEBOX</shortProdDescr><tarRate>29.36</tarRate><tarTot>29.36</tarTot></product><product><qnty>1</qnty><prod>A14493</prod><prodSts>C</prodSts><shortProdDescr>PRIORITY
> 
> > FAULT
> >
>
REPAIR</shortProdDescr><tarRate>0.00</tarRate><tarTot>0.00</tarTot></product><product><qnty>1</qnty><prod>A52053</prod><prodSts>O</prodSts><shortProdDescr>RESPONSE
> 
> >
>
123</shortProdDescr><tarRate>ORS</tarRate><tarTot>0.00</tarTot></product><product><qnty>1</qnty><prod>A45743</prod><prodSts>C</prodSts><shortProdDescr>CALL
> 
> >
>
SIGN</shortProdDescr><tarRate>0.00</tarRate><tarTot>0.00</tarTot></product><product><qnty>1</qnty><prod>A51875</prod><prodSts>C</prodSts><shortProdDescr>BT
> 
> > Calling Features Pack
> >
>
1</shortProdDescr><tarRate>4.46</tarRate><tarTot>4.46</tarTot></product><product><qnty>2</qnty><prod>A42349</prod><prodSts>C</prodSts><shortProdDescr>HOME
> 
> > NUMBER 99 MCC
> >
>
(13)</shortProdDescr><tarRate>0.00</tarRate><tarTot>0.00</tarTot></product></products></WS021AResponse></ns1:getCustomerProfileResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
> 
> >
> >
> > -----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:
> > <maintSvceCde>NO</maintSvceP-ENC:arrayType="xsd:string[]">
> >
> > 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
> > >
> > > <SOAP-ENV:Envelope xmlns:SOAP-ENV="
> 
=== message truncated ===

> ATTACHMENT part 2 application/octet-stream name==?ISO-8859-1?Q?ClientLog?=




		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


Mime
View raw message