IS 480 need for testing the Cobra SOAP services

0 views
Skip to first unread message

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

unread,
Mar 29, 2006, 5:30:44 PM3/29/06
to BYU-Idaho Information Systems Majors
I have started to implement the cobra soap service on the box in the
closet.
I need someone to test the add Post method.

The WSDL is at http://cobra:8080/webservice/thorss?wdsl
The end point is at http://cobra:8080/webservice/thorss

When I tried testing using the access libraries I got the following
error:

java.lang.NumberFormatException: For input string: "" and then it lists
a buch of lines in files that I have no control over. But that doesn't
matter because I checked out the SOAP message that is going over the
wire

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:AddPost
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:ActionWebService">
<authorName xsi:type="xsd:string">John Martinson</authorName>
<categoryId href="#id0"/>
<title xsi:type="xsd:string">new Cobra Functionality</title>
<description xsi:type="xsd:string">There are new methods that
have been added to the THorss server</description>
<pubDate
xsi:type="xsd:dateTime">2006-03-29T22:05:14.358Z</pubDate>
<link xsi:type="xsd:string" xsi:nil="true"/>
</ns1:AddPost>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="xsd:int"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">4</multiRef>
</soapenv:Body></soapenv:Envelope>

I used Axis and I have successfully used, getAllCategories,
AuthorExists and Add Category.

when I try to use AddPost I use the following code:

GregorianCalendar postTime = new GregorianCalendar();
postTime.setTimeInMillis(System.currentTimeMillis());

stub.addPost("John Martinson", 4, "new funtionality", "new methods have
been added", postTime, "http://cobra.byui.edu");

>From what I can tell there is a slight problem in the Axis libraries,
so it would be helpfull if someone could use a different lib. to test
this. In the mean time I will continue to add the rest of the
functionality.

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

unread,
Apr 3, 2006, 10:33:23 AM4/3/06
to BYU-Idaho Information Systems Majors
Sorry, I accendentally killed the service. I'll get it back as soon as
possible
Reply all
Reply to author
Forward
0 new messages