if ( hasProperties( ) )
{
if ( !m_implementedResourceDefs.containsKey( org.apache.ws.resource.properties.v2004_11.porttype.GetResourcePropertyPortType.NAME )
&& !m_implementedResourceDefs.containsKey( org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType.NAME ) )
{
throw new InvalidWsrfWsdlException( "PortType " + m_portType.getQName( )
+ " defines a wsrp:ResourceProperties attribute but does not implement the WSRF-RP GetResourceProperty portType." );
}
}
else
{
Iterator resourceDefNames = m_implementedResourceDefs.keySet( ).iterator( );
while ( resourceDefNames.hasNext( ) )
{
QName resourceDefName = (QName) resourceDefNames.next( );
if ( resourceDefName.getNamespaceURI( ).equals( org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants.NSURI_WSRP_WSDL )
|| resourceDefName.getNamespaceURI( ).equals( org.apache.ws.resource.properties.v2004_06.ResourcePropertiesConstants.NSURI_WSRP_WSDL ) )
{
throw new InvalidWsrfWsdlException( "PortType " + m_portType.getQName( )
+ " does not define a wsrp:ResourceProperties attribute but implements one or more WSRF-RP portTypes." );
}
}
}
}