help on restrictions on simpletypes

Hello everybody.

I am trying to call a service using Mindswap API 1.1.0 beta.

When I deploy a service with only strings as input and output everything
works fine.

When I deploy a different version of the same service which uses a complex
type as input and I try to tun it, I have problems passing its values and
defining the complex type in the OWL-S file.


My complex type is only a simple restriction on the simple type string. 
In my WSDL it is:

<simpleType name="myinput">
  <restriction base="xsd:string"> 
    <enumeration value="A600" /> 
    <enumeration value="A500" /> 
  </restriction>
</simpleType>


in the OWL-S file I modifies the lines

<process:Input rdf:ID="myinput">
  <process:parameterType
rdf:datatype="&xsd;#anyURI">http://www.w3.org/2001/XMLSchema#string</process
:parameterType>
	<rdfs:label>mytype</rdfs:label>
</process:Input>

with

<process:Input rdf:ID="myinput">
  <process:parameterType
rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">#mytypeclass</process
:parameterType> 
</process:Input>



and add these lines


 <owl:Class rdf:ID="mytypeclass">
 <owl:oneOf rdf:parseType="Collection">
  <mytypeclass rdf:ID="A600" /> 
  <mytypeclass rdf:ID="A700" /> 
  </owl:oneOf>
  </owl:Class>



When I call the service from the RunService API's method:

values.setValue(process.getInput("myinput"),
kb.getIndividual(URI.create("http://localhost:8080/myowlfile.owl#myinput"))
);

values = exec.execute(process, values);	



it returns this error:

rg.mindswap.exceptions.ExecutionException: org.xml.sax.SAXException:
Deserializing parameter 'myinput':  could not find deserializer for type
{http://www.w3.org/2001/XMLSchema}myinput
	at
impl.owls.grounding.WSDLAtomicGroundingImpl.invoke(WSDLAtomicGroundingImpl.j
ava:162)


Is this the right way to make in OWL-S a restriction on a simple type? I
looked at the various examples, and found different complex types but never
a restriction on a simple type.


Thank you very much,

Bye, 
Paolo Coletti

----------------------------------------------------------------------------
-
Paolo Coletti - www.paolocoletti.it  
Centro per la Ricerca Scientifica e Tecnologica  +39 0461 314337
www.itc.it/irst

Received on Sunday, 10 July 2005 10:04:53 UTC