axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa_abeysin...@yahoo.com>
Subject RE: failure notice
Date Thu, 07 Oct 2004 02:27:29 GMT
Yes I think it is a WSDL2Ws defect.
However, only way to verify this is to change "getCustomerProfileSoapOutput" to
"getCustomerProfileResponse" in the gerated code manually and test. 

Additionally the response contains a '<' within string values received in the response.
"<pck>PCK&lt;01069bt.com SS01   ND1234567890200107190000223344dyemw01im011111</pck>"
It is a known bug that Axis C++ cannot handel '<' and '>' characters in strings received.

Samisa...

> 
> 
> 
> 
> This is the last I saw on this - is this a WSDL2ws defect then?
> 
> 
> John Hawkins
> 
> 
> 
> 
>                                                                        
>              Samisa Abeysinghe                                         
>              <samisa_abeysingh                                         
>              e@yahoo.com>                                               To
>                                        Apache AXIS C User List         
>              05/10/2004 04:55          <axis-c-user@ws.apache.org>     
>                                                                         cc
>                                        axis-c-dev@ws.apache.org        
>              Please respond to                                     Subject
>               "Apache AXIS C           RE: failure notice              
>              Developers List"                                          
>                                                                        
>                                                                        
>                                                                        
>                                                                        
>                                                                        
> 
> 
> 
> 
> I could generate the code and compile as well (on Linux).
> 
> However in the generated code I get the following line in
> CH020XSoapPort.cpp file:
>     if(AXIS_SUCCESS ==
> m_pCall->checkMessage("getCustomerProfileSoapOutput",
> "http://www.bt.com/css/mmbi/CH020X/"))
> 
> The response message has:
> <ns1:getCustomerProfileResponse
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> 
> Hence I guess the generated code should be:
>         if(AXIS_SUCCESS ==
> m_pCall->checkMessage("getCustomerProfileResponse",
> "http://www.bt.com/css/mmbi/CH020X/"))
> 
> Possible bug in WSDL2WS tool?
> 
> Further it would be helpful for the exception to say which element it could
> not deserialize,
> rather than just saying deserialization failure. (thus we could verify
> situations like these)
> 
> Samisa...
> 
> 
> 
> --- adrian.p.smith@bt.com wrote:
> 
> > The reply returned from the service was:
> >
> > HTTP/1.1 200 OK
> > Date: Mon, 04 Oct 2004 17:38:50 GMT
> > Server: WebLogic WebLogic Server 6.1 SP5  04/21/2003 22:50:41 #253745
> > Content-Length: 5000
> > Content-Type: text/xml; charset=UTF-8
> >
> > <?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/CH020X/" 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/
> "><CH020XResponse><E2E><pck>PCK&lt;01069bt.com
> > SS01   ND1234567890200107190000223344dyemw01
> >
>
im011111</pck></E2E><mmbi><object>CH020X</object><method>getCustomerProfile</method><objectVer>90</objectVer><compileDate>16/04/03</compileDate><compilerVer>V4.00</compilerVer><mmbiVer>6</mmbiVer><sysText>CSS
> 
> >
>
R82</sysText><location>LW</location><correlId>adrian</correlId><status>OK</status></mmbi><instId>112301270001</instId><telNr>01208561489</telNr><custAcctNr>11230127</custAcctNr><verNr>051</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><bdgtAcctPymts
> 
> > xsi:type="SOAP-ENC:Array"
> SOAP-ENC:arrayType="xsd:string[]"><bdgtAcctPymt>
> > </bdgtAcctPymt><bdgtAcctPymt>
> >
>
</bdgtAcctPymt></bdgtAcctPymts><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>28/09/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><appnCompletion><APPNCOMPCODE>0</APPNCOMPCODE><APPNCOMPTEXT>No
> 
> > dialled call usage found for this
> account</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></CH020XResponse></ns1:getCustomerProfileResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
> 
> >
> > But I get an Exception:
> >
> > Exception : Cannot deserialize the requested element
> > Exception : 55
> >
> > My client code looks like this:
> >
> > #include "CH020XSoapPort.h"
> > int main()
> > {
> >     try
> >     {
> >         CH020XSoapPort * port = new CH020XSoapPort();
> >
> >         mmbiInput *mmbiIn = new mmbiInput();
> >         mmbiIn->correlId = "adrian";
> >         E2E *e2e = new E2E();
> >         e2e->pck = "PCK<01069bt.com SS01
> ND1234567890200107190000223344dyemw01 im011111";
> >
> >         getCustomerProfileResponse *result =
> port->getCustomerProfile(mmbiIn, e2e,
> > "01208561489");
> >         E2E *e2eOut = result->E2E_Ref;
> >        printf("output pck: %s\n", e2eOut->pck);
> >         printf("result = %s\n", result->telNr);
> >         return 0;
> >     }
> >     catch(AxisException &e)
> >     {
> >         printf("Exception : %s\n", e.what());
> >         printf("Exception : %d\n", e.getExceptionCode());
> >         return 1;
> >     }
> >     catch(exception& e)
> 
=== message truncated ===



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

Mime
View raw message