axis2c-unofficial icon indicating copy to clipboard operation
axis2c-unofficial copied to clipboard

Weird behaviour in Axiom XML Parsing (Guththila)

Open alexis-gruet-deel opened this issue 7 years ago • 3 comments

Dear experts,

A quick question,

We observed, for some identified soap request payload, truncated XML in response.

We use guththila as the main XML parser.

This is confirmed by :

om_stax_builder.c(651) -1 returned from the xml reader when reading xml

a token return -1

Do you have experienced similar issues ?

alexis-gruet-deel avatar Oct 20 '17 19:10 alexis-gruet-deel

Can you trace the network to determine the source of the missing data using something like Wireshark or Fiddler2?

ghost avatar Oct 20 '17 19:10 ghost

Thank you @cxsup2 for your help.

I forgot to mention that i use axis2 from the trunk, not the unofficial ... so maybe this is the wrong place.

hard to wireshark the network as the response is encrypted by SSL.

However, i have the missing XML Nodes ( did it through a dumb diff ) Maybe you will observe a bad char that can lead to this issue :

643.                <tplClaimsCountLastYear>
644.	               <id>1</id>
645.	               <sortOrder>0</sortOrder>
646.	               <WIDefault>false</WIDefault>
647.	            </tplClaimsCountLastYear>
648.	            <tplInsuranceYearsCount>
649.	               <id>1</id>
650.	               <sortOrder>0</sortOrder>
651.	               <WIDefault>false</WIDefault>
652.	            </tplInsuranceYearsCount>

and

654.	         <roleId>6</roleId>

and also

656.              <policyType>1</policyType>
657.	      <productId>20037</productId>
658.	      <rawCalculation>false</rawCalculation>
659.	      <rsi>true</rsi>
660.	      <stamp>-760213244;156109955;;</stamp>
661.	      <startDate>2017-10-20T00:00:00+02:00</startDate>
662.	      <statusId>10</statusId>
663.	      <ufg>false</ufg>
664.	      <ufgRequestedForOfferInCurrentFlow>false</ufgRequestedForOfferInCurrentFlow>
665.	      <url>https://1.1.1.1/kalkulator_ubezpieczenia_OC_AC_2/oferta/null-null</url>

alexis-gruet-deel avatar Oct 20 '17 19:10 alexis-gruet-deel

If you're on Windows, Fiddler2 will support tracing SSL. A few things:

  • I'd use axis2c-unofficial since it has a better maintenance record
  • Yes, you should be reporting axis2c related issues in the axis2c project

Given your description of missing nodes, it seems like the payload isn't be constructed properly. It should be easy enough to inspect the XML string prior to submitting to the generated SOAP proxy class. I use tinyxml2 to build and encode the XML payload.

ghost avatar Oct 20 '17 23:10 ghost