469,950 Members | 2,361 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

SOAP/WSDL: Can you access 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
1 1612
Dököll
2,364 Expert 2GB
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!
Here's a wonderful site I think will give you some information: http://www.w3schools.com/soap/soap_example.asp

If not helpful, take a step back, read the tutorial.

Looks like you also need help here:

WSDL

http://www.w3schools.com/wsdl/default.asp

PHP

http://www.w3schools.com/php/default.asp


Good luck and welcome!
Jul 4 '07 #2

Post your reply

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

Similar topics

15 posts views Thread by MR | last post: by
7 posts views Thread by Q. John Chen | last post: by
3 posts views Thread by parrot toes | last post: by
4 posts views Thread by Henrik | last post: by
16 posts views Thread by MR | last post: by
reply views Thread by Samuel Zallocco | last post: by
2 posts views Thread by Dave | last post: by
3 posts views Thread by Siva | last post: by
6 posts views Thread by Peter van der veen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.