Problem that you are seeing might not be related to unused message
elements in wsdl.

If you have added any capabilitiy classes implemented by muse as part of
a WS-resource in muse.xml there are certain minimum set of properties
required to be part of that WS-Resource's ResourceProperty document.



If you add QueryExpressionDialect property as part of the resource
property document of your WS-Resource this error might go away.

--Baseer



-----Original Message-----
From: Vinh Nguyen (vinguye2) 
Sent: Thursday, January 25, 2007 11:39 PM
To: [email protected]
Subject: unused messege elements

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
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to