Forum Discussion

Wesk24's avatar
Wesk24
New Contributor
16 years ago

soapUI Request Not Processed Correctly

This is a bit obscure but I am at a loss to debug further so hope someone can help.

I am creating a rate request to a rating engine but not able to successfully test through soapUI 3.0.1.

From soapUI, I am able to cut/paste the input XML payload (IBDOC section) into the engine's testing tool and successfully calculate a return rate.

However, from within soapUI I am not able to get a successful response and the nature of the error and the way the inputs are being echoed back indicates it is only processing the outer portion of the input XML (policy section).

I believe all the header params are correct as I have used the same format in other requests and it is connecting to the engine properly and processing some of the input XML.
Can you please review below and see if you can spot anything that might be the cause?
Many thanks!!




 

   
      1
      315
      56
      1
      TestAuto4
      GLOBAL
     
      NONE
      true
     
     
   

   
      0
      0
      0
      0
      0
      0
      0
      qa
   

 

 
   
      <br /><rate lob="1" ><br /><heading><br /><program parent_id="315"&nbsp; program_id="56"&nbsp; program_ver="1" /><br /></heading><br /><policy><br />&nbsp; <transactionType>NBS</transactionType><br />&nbsp; <policyEffectiveDate>09/01/2009</policyEffectiveDate><br />&nbsp; <LOB>PA</LOB><br />&nbsp; <policyExpirationDate>09/01/2010</policyExpirationDate><br />&nbsp; <transactionEffectiveDate>09/01/2009</transactionEffectiveDate><br />&nbsp; <TempCompanyNum>001</TempCompanyNum><br />&nbsp; <vehicle><br />&nbsp; &nbsp; <ratingTerritoryCode>11</ratingTerritoryCode><br />&nbsp; &nbsp; <type>VAN</type><br />&nbsp; &nbsp; <modelYear>2002</modelYear><br />&nbsp; &nbsp; <TempVehicleNum>1</TempVehicleNum><br />&nbsp; &nbsp; <TempCostNewAmt>45000</TempCostNewAmt><br />&nbsp; &nbsp; <TempVehicleUsageCd>PL</TempVehicleUsageCd><br />&nbsp; &nbsp; <TempVehicleStateName>Connecticut</TempVehicleStateName><br />&nbsp; &nbsp; <vehicleCoverage><br />&nbsp; &nbsp; &nbsp; <vehicleCoverageCode>BI</vehicleCoverageCode><br />&nbsp; &nbsp; &nbsp; <vehicleLimit1>500</vehicleLimit1><br />&nbsp; &nbsp; &nbsp; <vehicleLimit2>1000</vehicleLimit2><br />&nbsp; &nbsp; &nbsp; <TempVehicleBIInd>1</TempVehicleBIInd><br />&nbsp; &nbsp; &nbsp; <TempVehicleLimitAppliesCd1>BI</TempVehicleLimitAppliesCd1><br />&nbsp; &nbsp; </vehicleCoverage><br />&nbsp; </vehicle><br />&nbsp; <policyOperator><br />&nbsp; &nbsp; <TempDateBirth>03/09/1955</TempDateBirth><br />&nbsp; &nbsp; <TempMaritalStatus>M</TempMaritalStatus> <br />&nbsp; &nbsp; <TempGenderCd>F</TempGenderCd>&nbsp; &nbsp;<br />&nbsp; &nbsp; <TempFirstLicensedDt>03/01/1975</TempFirstLicensedDt><br />&nbsp; </policyOperator><br /></policy><br /></rate><br />
   

 
  • Hi!

    hmm.. hard to know what is going on.. only thing that strikes me is the absence of a namespace in the XML payload (in contrary to the header xml).. does that help?

    If not, can you be more specific about the error messages you are getting?

    regards,

    /Ole
    eviware.com
  • Wesk24's avatar
    Wesk24
    New Contributor
    This is what I should be getting back.
    ci1= Vehicle inputs echoed back
    ci0= Policy inputs echoed back along with the last item which is a result-  the total calculated policy premium

                     
                         
                         
                         
                         
                         
                         
                     

                     
                         
                         
                         
                         
                         
                         
                         
                     


    This is what I get. The empty policy inputs are echoed back along with an uncalculated premium and an error message.
                     
                         
                         
                         
                         
                         
                         
                         
                         
                     

    This shows that the inputs were not parsed-  they are echoed back only it there is at least one result for that category. We see the policy category because of an error message that results from a rule violation that all vehicles on a policy cannot be trailers. This happened because trailer is the default vehicle type. Since no vehicle inputs were processed, there were none that were calculated and the default was used resulting in the error.

    Note  in the header that an XSLT mapping is specified 'TestAuto4'. This allows us to use custom input XML and map it to our native XML. I believe that for some reason the mapping is failing. What is strange is that through our application's browser test interface I can paste the same custom input XML from the IBDOC and specify the the same TestAuto4 XSLT and it works fine.

    soapUI can connect ok and process the request/response but it seems to be failing to pass the payload to the XSLT properly.

    I am using our WSDL and it does not specify a namespace in the IBDOC. Can you give me an example of where it should be placed?

    I hope this helps. Please let me know if anything is unclear and thanks!