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: Axis C++ 1.3 final is released
Date Thu, 11 Nov 2004 08:59:36 GMT
Attached to Issues.

-----Original Message-----
From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
Sent: 11 November 2004 08:40
To: Apache AXIS C User List
Subject: RE: Axis C++ 1.3 final is released


Hi Adrian,

   The Jira issues http://nagoya.apache.org/jira/browse/AXISCPP-250 and
http://nagoya.apache.org/jira/browse/AXISCPP-257 both relate to the problem that you are having.
    Hopefully, now that it is reported in Jira, someone would look into it (my gut feel is
that it
needs quite a bit of work to fix those)

    In the mean time, please attach your WSDL in Jira againt those issues, if it is OK for
you to
make it public. WSDL would help when fixing the problem.
Thanks,
Samisa...

--- adrian.p.smith@bt.com wrote:

> If the schema says <xs:sequence> then yes, the order is expected to be correct,
but not if it
> says <xs:all>
> 
> 
> 
> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> Sent: 09 November 2004 01:41
> To: Apache AXIS C User List
> Subject: RE: Axis C++ 1.3 final is released
> 
> 
> > All elements in the response have minOccurs="0", so they can be omitted. Is this
another
> issue?
> 
> Good point Adrian! I missed that :(.
> This must be the reason that is causing the problem.
> 
> To my knowledge, WSDL2Ws tool does not deal with this correctly (I came to this conclusion
by
> looking at the generated code for the WSDL). It expects all the elements to be there,
and throws
> an error, if at least a single element is missing.
> Also, the ordering of the element is very critical for the generated code to work.
> 
> e.g.
> param->names = (xsd__string_Array&)pIWSDZ->getBasicArray(XSD_STRING, "names",0);
> param->addrs = (xsd__string_Array&)pIWSDZ->getBasicArray(XSD_STRING, "addrs",0);
> param->xdirInd = pIWSDZ->getElementAsString("xdirInd",0);
> param->noOfBillRecords = pIWSDZ->getElementAsInt("noOfBillRecords",0);
> 
> (the '0' parameters in above code indicates that namespace is NULL - it must have used
NULL
> instead of 0)
> 
> If "xdirInd" is missing in the response, and "noOfBillRecords" is present,
> getElementAsString("xdirInd",0) call on the serializer will see that next element is
> "noOfBillRecords" and will error. 
> If we are looking for an optional element, we are doing a serious mistake here (and thus
this is
> a
> serious bug)
> The correct logic would be to 
> 1. Test if the element is opetional
>    if yes
>        1.1. Test if the current element is what we are looking for
>        if yes
>            1.1.1 return Success
>        if no
>            1.1.2 Back track to point to the start of the elemnt and return Success
>    if no
>        1.2 return Failure
> 
> I hope the above algorithm does not violate the pull model we have. 
> 
> Additionally, can we expect the SOAP message to have the elements in the same order defined
by
> the
> WSDL? If yes (I think it is) we are OK. If not we have another bug :(
> 
> Thanks,
> Samisa...
>        
> 
> --- adrian.p.smith@bt.com wrote:
> 
> > All elements in the response have minOccurs="0", so they can be omitted. Is this
another
> issue?
> > 
> > -----Original Message-----
> > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > Sent: 08 November 2004 11:35
> > To: Apache AXIS C User List
> > Subject: RE: Axis C++ 1.3 final is released
> > 
> > 
> > I have the WSDL sent by you some time back and I am using that to generate code.
> > I see that the generated code is expecting an element named "xdirInd" in the response
and the
> > response has no such element. (None of the elements in the WSDL has nillable="true".
Hence I
> > guess
> > all elements must appear in that order)
> > 
> > Additionally, the generated code expects to see "bdgtAcctPymts" after "acctEntrys"
elements,
> but
> > the reasponse has "tar" following "acctEntrys" and thus the generated code fails.
> > 
> > Have there been changes done to the WSDL lately? If so, could you please send the
new WSDL?
> > Thanks,
> > 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...
> 
=== message truncated ===



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


Mime
View raw message