473,394 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1734
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

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

Similar topics

15
by: MR | last post by:
i need to develop a SOAP client, Since I have never personally done one I would like to make sure that I am going about it correctly. The client is a Windows (probably 2k3) application that...
7
by: Q. John Chen | last post by:
All, I have a WebService created in .NET. I have VB6 Client consume the WebService (using Soap ToolKit 3.0) But I have couple user who got error accessing the WebServer with error message...
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
4
by: Henrik | last post by:
Hi all,, I'm trying to make a program, that calls a webservice, and then does somthing about the data, that i recive.. But i don't know what to do with this data??.. i tried to load into an...
16
by: MR | last post by:
my soap messages to a remote site are failing. as far as i can tell the only differences between what my SOAP message looks liek and what they want are in the SOAP envelope SInce they don't have a...
0
by: Samuel Zallocco | last post by:
Hi all, I've a problem with PHP5 + PEAR::SOAP. I Have the following 2 script that implements a simple web service: The Server Code running on WinXP + PHP5 + Apache 2.x:...
2
by: Dave | last post by:
Hi all, I very much hope you can help - i am sure there is a very simple solution, but after days of scouring the net, i have come up blank. Basically i am trying to access a web service...
3
by: Siva | last post by:
Hi all, I want to Convert a WSDL to a SOAP message. Is there any way to do this. I am using .NET 2.0 Thanks in Advance Siva
6
by: Peter van der veen | last post by:
Hi I have the following problem. I'm calling a webservice from within a VB.net 2005 Windows program. For this i got a WSDL file and loaded that in VB. Until now i just call the webservice and...
2
by: goyalak | last post by:
Hi All, I am new to PHP and am facing some problems. I am trying to access the http://ops.espacenet.com/. Its a SOAP based service. I am trying to access it via PHP (PEAR) from Apache web...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.