By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,375 Members | 3,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,375 IT Pros & Developers. It's quick & easy.

Can you use this webservice ?

P: 2
Hi!

I would like to use a webservice which offers to layout a graph structure automatically. Regarding the WSDL description it looks pretty simple:
http://cmap.ihmc.us/xml/LayoutWebService.html

You input the graph data, and you recieve back graph data including the optimal x/y coordinates. Please note that this webservice requires the data in a special XML type (called CMAP), you can find an example here:
http://cmap.ihmc.us/xml/PlantsSimple.cxl

Ok, could anyone help me using this webservice? I tried it in PHP, however I get error messages:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body>
  3.  
  4. <?php
  5.  
  6. //This is the XML data of the sample graph put in one long string
  7. $myCmap = '<?xml version="1.0" encoding="UTF-8"?>  ...  ((put here the whole xml code of the sample mentioned above)) ... ';
  8.  
  9.  
  10. //Here we call the WSDL to use the soap webservice correctly
  11. $client = new SoapClient('http://cmap.ihmc.us/xml/LayoutWebService.wsdl');
  12.  
  13. //Now we call the function 'layout' of the webservice and hand over the string
  14. $result = $client->layout($myCmap);
  15.  
  16. //The returned result is displayed
  17. echo $result;
  18.  
  19. ?>
  20.  
  21. </body>
  22. </html>

PLEASE HELP! THANK YOU!
May 19 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.