Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've been using Network Analyst in ArcGIS desktop (10.1), and using succesfully some SOAP API operations (findAddressCandidates, GetNALAyerNames, GetSolverParameters, GetSolverParameters2)

But now want to get OD Cost Matrix (Network Analyst) using SOAP API.

I've been following the steps: http://resources.arcgis.com/en/help/soap/10.1/#/Overview/01vp0000001p000000/

Basically, I call getSolverParameters2 to get parameters and content of NAClasses for the OD Cost Matrix Layer.

Debugging the code, I can see data returned by getSolverParameters2.

When I call solve operation (defined in WSDL)

I get and HTTP 400 Error (Bad request) and the following message:

"The request sent by the client was syntactically incorrect ()"

NAServerODCostMatrixParams params = (NAServerODCostMatrixParams) port.getSolverParameters2("OD Cost Matrix", "", true); NAServerSolverResults results = port.solve(params);

(Also, I've been trying fill NAServerODCostMatrix 'by hand', unsuccesfuly )

I trace the SOAP request message and I can see the content. The same results I get when I follow this steps using SOAP UI.

Do you have any idea about this problem and/or to solve it? or what can I try?

Regards, Hernan

share|improve this question
    
What happens when you try GetSolverParameters instead? Maybe use the code sample there to make sure NALayerName is spelled correctly. –  Kirk Kuykendall Jun 26 '13 at 22:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.