Thorsten Brückner
2006-Sep-11 11:47 UTC
Webservice with PHP4 (and nusoap) as Client doesn’t work
Hello,
i’v created a webservice (server) in Rails 1.1.4 (direct dispatching),
which writes some Data into an MS SQL Server Database. With an Rails WS
Client this is no Problem: The Data arrives in the Database. The WS
Server seems to be ok.
With an PHP client, using nusoap, and this code:
include "nusoap.php";
$client = new soapclient("http://localhost:3000/Callback/api");
$calltime = strftime("%m-%d-%Y %H:%M:%S");
$params = array(
"tel" => "8888",
"calltime" => $calltime,
"salution" => "hello",
"firstname" => "John",
"lastname" => "Doe",
"remark" => "hello"
);
$result = $client->call("insertData tel, calltime, salutation,
firstname, lastname, remark");
I always see an error in my mongrel_logfile
REXML::ParseException (malformed XML: missing tag start
Line:
Position:
Last 80 unconsumed characters:
<ns1:insertData tel, calltime, salutation, firstname, lastname, remark
xm):
C:/backup/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:338:in
`pull''
C:/backup/ruby/lib/ruby/1.8/rexml/parsers/streamparser.rb:16:in
`parse''
Etc etc
What am I doing wrong?
Thank You
Thorsten
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---