469,898 Members | 1,537 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Can you use this webservice ?

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
0 922

Post your reply

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

Similar topics

6 posts views Thread by Davie | last post: by
1 post views Thread by Nalaka | last post: by
5 posts views Thread by AliR | last post: by
4 posts views Thread by =?Utf-8?B?QmlsbEF0V29yaw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.