I think I know what is happening. I recently updated the sawsdl
document for that particular service and I must have forgot to include
some attributes.
I will let you know when I fix it (give me an hour or so).
Thanks,
Eddie
Thanks,
Jim
--
Jim McCusker
Programmer Analyst
Krauthammer Lab, Pathology Informatics
Yale School of Medicine
james.m...@yale.edu | (203) 785-6330
http://krauthammerlab.med.yale.edu
PhD Student
Tetherless World Constellation
Rensselaer Polytechnic Institute
mcc...@cs.rpi.edu
http://tw.rpi.edu
The example SAWSDL doc for that service was missing an xml namespace
declaration. I have added it and committed it to google code.
If you svn update, you can verify that the example service works properly.
Thanks,
Eddie
No documentation on that topic just yet, but I will try to get some
generated quickly.
Thanks,
Eddie
> Thanks a lot for your help.
> After updating the code, now the output is:
> <rdf:RDF
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
> <rdf:Description rdf:about="http://lsrn.org/KEGG_PATHWAY:hsa04730">
> <rdfs:isDefinedBy rdf:resource="http://localhost:8080/
> SAWSDL2SADIServlet/getKeggDrugsByPathway?poll=1"/>
> </rdf:Description>
> <rdf:Description rdf:about="http://lsrn.org/KEGG_PATHWAY:map07025">
> <rdfs:isDefinedBy rdf:resource="http://localhost:8080/
> SAWSDL2SADIServlet/getKeggDrugsByPathway?poll=1"/>
> </rdf:Description>
> </rdf:RDF>
>
> Is that correct? I think the output should be something like
> KeggDrugs.
This looks like the output from an asynchronous service (as described at http://sadiframework.org/content/how-sadi-works/asynchronous-sadi-services/) So the actual output was probably contained at http://localhost:8080/
SAWSDL2SADIServlet/getKeggDrugsByPathway?poll=1.
> BTW, when I register the SADI service "http://192.168.10.88:8080/
> SAWSDL2SADIServlet/getKeggDrugsByPathway" at "http://sadiframework.org/
> registry/validate/", the reply is:
> error reading RDF model from
> http://192.168.10.88:8080/SAWSDL2SADIServlet/getKeggDrugsByPathway:
> java.net.ConnectException: Connection timed out
> (192.168.10.88 is my IP address)
This is an internal IP address and it is not valid outside of your local network. See http://en.wikipedia.org/wiki/Reserved_IP_addresses .
Cheers,
Luke
The generator doesnt yet handle WSDL documents that specify overly
complicated datatypes.Currently, it supports primitives
(string/integers/etc) and array of primitives. Your WSDL had datatype
schemas that nested their datatypes. Sorry.
You can still generate a SADI service with services described in your
WSDL, but it will require a bit more work on your part. You will have
to write the code that calls the underlying web service yourself. Once
that bit is written, take a look at
http://sadiframework.org/content/getting-involved/ for information on
using other tools that simplify the creation of SADI services.
Eddie
BUILD SUCCESS means the maven task finished . In this particular case, the build task was generating the service skeleton, so that part is done. You can move on to the next step of the tutorial ("Adding business logic").
Cheers,
Luke
> I have already added business logic. The above code is about the last
> step “test your service”.
Ah, sorry, I should have read more carefully. I should know better by know than to respond that early in the morning.
> I have a little doubt that why need to point the expected output,
> i.e.,
> -Doutput=http://sadiframework.org/test/hello-output
> In my understanding, to test the generated SADI service, we should
> give the input and get the output, and check whether the output is
> correct. In this example, I’m not sure where to find the output.
The service tester plugin does exactly this. It calls your service with the specified input and compares it to the specified expected output If they did not match (specifically: if the two RDF graphs are not isomorphic), there would be an error with a detailed explanation. You could try downloading the expected output document from http://sadiframework.org/test/hello-output and editing it before re-running the service tester plugin (the value of the output parameter can be a local file as well as a remote one...)
> BTW, is there a more detailed document on how to design input/output
> OWL classes and input/output RDF documents according to the WSDL
> service?
I don't think so. Eddie might have more information, though.
Cheers,
Luke