ODCostMatrix SOAP Request

1809
1
06-19-2013 11:07 AM
HernanB
New Contributor
Hello everybody!

I'm receiving:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:client</faultcode>
         <faultstring>Unable to instantiate class for xml schema type: NAServerSolverParams</faultstring>
         <detail/>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>



When I send the following the content in the attached file via SOAP

Do you have any idea or suggestion?

Thank you!
Tags (2)
0 Kudos
1 Reply
JamesBratton
Occasional Contributor
NAServerSolverParams is an abstract type.  When creating an instance of it as SolverParams, you need to specify the type of NAServerSolverParams that you want to use.

Your request starts like this
<soapenv:Body>
      <ns:Solve>
         <SolverParams>

but it should be this instead

<soapenv:Body>
      <ns:Solve>
         <SolverParams xsi:type="NAServerODCostMatrixParams">
0 Kudos