Reply to topic
webservice error
restifarian


Joined: 16 Mar 2009
Posts: 4
Reply with quote
I'm using Perl code to query the SOAP webservice, which works fine for the functions that don't require arguments, but fails on the ones that do. Example code

Code:
#!perl -w

use SOAP::Lite;

my $service = SOAP::Lite
   -> service('http://www.theworldsfastestserver.com/webservice/bikedata.cfc?wsdl');
$service->outputxml(1);

print $service->GetAccelForTripXML(114);


The error returned is:
org.xml.sax.SAXException: Deserializing parameter 'TripID': could not find deserializer for type {http://www.w3.org/2001/XMLSchema}anyType


Is this an error on your end or is there some sort of serialization requirement for sending the parameter(doesn't seem like there should be). A REST webservice would be a lot easier to use
douggiles


Joined: 15 Mar 2009
Posts: 1
Reply with quote
Try this:

Code:
print $service->GetAccelForTripXML(SOAP::Data->name( 'TripID' => 114 ));


Hope that helps,

Doug
restifarian


Joined: 16 Mar 2009
Posts: 4
Reply with quote
Awesome, thanks douggiles
Zoran Bojan


Joined: 08 May 2009
Posts: 3
Reply with quote
Did you add it as a webreference, or a regular one? Looking at the error, I suspect you just chose "Add Reference".

Use "Add Web Reference" and, assuming you set up your web service to be a script service (see quick starts at "learn" link above") you'll be able to access the methods there.
webservice error
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic