Hi all,
I have a wsdl which defines the following message element:
    <wsdl:message name="UnknownQueryExpressionDialectFault">
        <wsdl:part name="UnknownQueryExpressionDialectFault"
element="wsrf-rp:UnknownQueryExpressionDialectFault"/>
    </wsdl:message>
 
I don't have an operations which use this message.  But, Muse2.1.0 is
giving me the following error:
 
java.lang.RuntimeException: [ID = 'PropertyNotFound'] The schema has no
property with the name
'{http://docs.oasis-open.org/wsrf/rp-2}QueryExpressionDialect'. Use the
hasProperty method to determine if a property exists.
 at
org.apache.muse.ws.resource.properties.schema.impl.SimpleResourcePropert
iesSchema.getProperty(SimpleResourcePropertiesSchema.java:233)
 at
org.apache.muse.ws.resource.properties.schema.impl.SimpleResourcePropert
iesSchema.setCapability(SimpleResourcePropertiesSchema.java:271)
 at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCollec
tion.addCapability(SimpleResourcePropertyCollection.java:123)
 at
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability.initialize
(AbstractWsResourceCapability.java:299)
 at
org.apache.muse.ws.resource.properties.query.impl.SimpleQueryCapability.
initialize(SimpleQueryCapability.java:107)
 at
org.apache.muse.core.SimpleResource.initializeCapabilities(SimpleResourc
e.java:296)
...
 
I can make the error message go away in two ways:
1) Remove the unused message element, or
2) Add the wsrf-rp:QueryExpressionDialect property to the resource
properties.
 
Out of curiousity, why does Muse require that all message properties be
explicitly defined, even if the message elements aren't used in any
operation?  It's as if Muse does wsdl validation forwards (i.e. message
to operations) instead of backwards (ie. operations to messages).
-Vinh
 

Reply via email to