IS480: Soap Service (using Ruby on Rails)

4 views
Skip to first unread message

Clint Checketts

unread,
Mar 24, 2006, 5:21:30 PM3/24/06
to BYU-Idaho-Informat...@googlegroups.com
The ThoRss web service WSDL has been updated to have more meaningful parameter names and the addition of the requested author_exists() method.

You can grab the WSDL here: http://thorss.checkettsweb.com/soap/wsdl
or here: http://thorss.checkettsweb.com/soap/service.wsdl

You can play with the soap services here: http://thorss.checkettsweb.com/soap/invoke

Feel free to play with it to your heart's content.

Methods that work now:
getAllCategories()
getPost()
addCategory()


I'll email when I get the other three working as expected.

-Clint

Clint Checketts

unread,
Apr 4, 2006, 12:53:05 PM4/4/06
to BYU-Idaho-Informat...@googlegroups.com
All of the 1st iteration sop methods exist and are functioning

I'll take another stab at the iteration 2/admin soap methods later. We had a good list of them on the board but they were accidentally erased by a Professor before I had typed them up.

Email me if the WSDL or any of the services misbehave. I'll finish writting my unit and functional test later today.

-Clint

john.g.m...@gmail.com

unread,
Apr 4, 2006, 4:01:31 PM4/4/06
to BYU-Idaho Information Systems Majors
what is the endpoint URI?

john.g.m...@gmail.com

unread,
Apr 4, 2006, 5:20:13 PM4/4/06
to BYU-Idaho Information Systems Majors
I am trying to use this service and I have used it before to test it in
Eclipse using the
AXIS libraries.

But now when I call getAllCategories() method using the Axis Libraries
I get an error as follows

AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (500)POST not supported
faultActor:
faultNode:
faultDetail:
{}:return code: 500
POST not supported
{http://xml.apache.org/axis/}HttpErrorCode:500

(500)POST not supported
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)The thorss
server is not responding

at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at
ActionWebService.SoapSoapBindingStub.getAllCategories(SoapSoapBindingStub.java:267)
at thorss.thorssInterfacer.<init>(thorssInterfacer.java:45)
at edu.byui.thorMail.Main.go(Main.java:50)
at edu.byui.thorMail.Main.main(Main.java:38)

I looked up the error and found that the 500 is a code for an internal
server error. Is this an error with the Ruby server or is it an error
on my part?

Clint Checketts

unread,
Apr 4, 2006, 6:18:45 PM4/4/06
to BYU-Idaho-Informat...@googlegroups.com

John Martinson

unread,
Apr 4, 2006, 6:21:36 PM4/4/06
to BYU-Idaho-Informat...@googlegroups.com
I have been able to get it to test on the server by directly accessing http://thorss.checkettsweb.com/soap/invoke via firefox, but when trying to dynamically call it from a java program I get the above error.  Has the WSDL been changed and not updated or something?

chad cox

unread,
Apr 11, 2006, 1:05:16 PM4/11/06
to BYU-Idaho-Informat...@googlegroups.com
Ok guys our soap client appears to be working now, I just need some verification that posts are actually being added. Here are the values that I passed in my last post:

$author = "Chad";
$category = "test1";
$title = "test1";
$description = "I guess this is the body of the test";
$pubDate = "";
$link = "";

If someone could check for this post that would be great, if it doesn't exist then i'm at a loss for whats wrong, because i'm not getting any sort of error now with the client, so I have to assume it's making it's way to server. Thanks

Chad

Clint Checketts

unread,
Apr 11, 2006, 4:06:33 PM4/11/06
to BYU-Idaho-Informat...@googlegroups.com
Nope, its not in the database. The $category = "test1" should be just an integer: "1"  That might be the problem.

If that doesn't work: Try calling the 'getCategories' method. That way you can see if the DB is responding to your SOAP calls.  Once that works try the 'getPost' method and pass in an ID of '1' that way we can be sure that you can pass in variables to the parameter.  If both of those work, the we just need to double check your params for the addPost method.

-Clint

chad cox

unread,
Apr 11, 2006, 4:09:55 PM4/11/06
to BYU-Idaho-Informat...@googlegroups.com
Ok I just ran it again with $category = 1. Lets see if that worked.

Clint Checketts

unread,
Apr 11, 2006, 4:14:56 PM4/11/06
to BYU-Idaho-Informat...@googlegroups.com
Still no go.

I'm going to go check the log file to view the recent activity.

Ok, I'm back. :)

I looks like it can't type-cast '' to a date. Try changing it to '2006-04-11'

-Clint

William Dalton

unread,
Apr 11, 2006, 4:16:35 PM4/11/06
to BYU-Idaho-Informat...@googlegroups.com
Guys there's this wonderful thing called google talk, we should all try to be on it then we could chat back and forth during our projects.
 
Love,
Chuck
 

Clint Checketts

unread,
Apr 11, 2006, 4:18:03 PM4/11/06
to BYU-Idaho-Informat...@googlegroups.com
By the way: if you have a log file open and you know data will be appended to it on Linux (or OSX) you can use the 'tail' command with the -f flag like so:

tail -f development.log

It updates live.

-Clint
PS- Chad the type cast didn't work again. Let me play with it a bit.

Clint Checketts

unread,
Apr 11, 2006, 4:19:56 PM4/11/06
to BYU-Idaho-Informat...@googlegroups.com
Chad, try:
2006-04-11T13:18:05-07:00



It must need the time.

-Clint

chad cox

unread,
Apr 12, 2006, 5:35:45 PM4/12/06
to BYU-Idaho-Informat...@googlegroups.com
Just an update for everyone, the PHP client is now fully functional (including the pubDate which took some interesting string work). I believe Chuck is still working on making it look pretty for our presentation but for now we will throw what we have up on the server for people to check out.
 
Chad
 
On 4/11/06, Clint Checketts <chec...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages