User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 423,610 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,182 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 1706 | Replies: 1
Reply
Join Date: May 2007
Posts: 1
Reputation: stoffal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
stoffal stoffal is offline Offline
Newbie Poster

Question Who can use this webservice ?

  #1  
May 19th, 2007
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:
<html>
<body>

<?php

//This is the XML data of the sample graph put in one long string
$myCmap = '<?xml version="1.0" encoding="UTF-8"?><cmap xmlns="http://cmap.ihmc.us/xml/cmap/" xmlns:dc="http://purl.org/dc/elements/1.1/"><res-meta><dc:title>Plants</dc:title><dc:description>How do plants grow?</dc:description></res-meta><map><concept-list><concept id="1" label="Plants" /><concept id="2" label="Leaves" /></concept-list><linking-phrase-list><linking-phrase id="3" label="have" /></linking-phrase-list><connection-list><connection from-id="1" to-id="3" /><connection from-id="3" to-id="2" /></connection-list><concept-appearance-list><concept-appearance id="1" x="10" y="10" /><concept-appearance id="2" x="10" y="10" /></concept-appearance-list><linking-phrase-appearance-list><linking-phrase-appearance id="3" x="10" y="10" /></linking-phrase-appearance-list></map></cmap>';


//Here we call the WSDL to use the soap webservice correctly
$client = new SoapClient('http://cmap.ihmc.us/xml/LayoutWebService.wsdl');

//Now we call the function 'layout' of the webservice and hand over the string
$result = $client->layout($myCmap);

//The returned result is displayed
echo $result;

?> 

</body>
</html>



PLEASE HELP! THANK YOU!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 197
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Who can use this webservice ?

  #2  
May 23rd, 2007
impossible to say.
For example you don't say what the errors are that you're getting...
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb RSS, Web Services and SOAP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the RSS, Web Services and SOAP Forum

All times are GMT -4. The time now is 8:42 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC