Hi Chris,

I've modified the WsResource's definition file in wrsf example to add a new
complex property, but get the following warning information after running
wsdl2java:

WARNING: [ID = 'NoWSRPSchema'] No WS-RP schema found.

Also, there is no capability generated for the new property.

I've renamed the WsResource to WsrServerMBean. The content of
WsrServerMBean.wsdl where the new property is added is as following:

......
                <xsd:schema 
                        elementFormDefault="qualified"
                        
targetNamespace="http://www.30wish.com/muse/ManagementService";>
                        
                        <xsd:element name="WsrServerMBeanProperty">
                                <xsd:complexType>
                                        <xsd:sequence>
                                                        <xsd:element 
name="InShutdown"  type="xsd:boolean" />
                                                        <xsd:element 
name="BuildID"  type="xsd:string" />
                                                        
                                        </xsd:sequence>
                                </xsd:complexType>
                        </xsd:element>  
                        
                        <xsd:element name="WsrServerMBeanProperties">
                                <xsd:complexType>
                                        <xsd:sequence>
                                                <xsd:element 
ref="wsrf-rl:CurrentTime" />
                                                <xsd:element 
ref="wsrf-rl:TerminationTime" />
                                                <xsd:element 
ref="wsrf-rp:QueryExpressionDialect" minOccurs="0"
maxOccurs="unbounded"/>
                                                <xsd:element 
ref="tns:WsrServerMBeanProperty" minOccurs="0"
maxOccurs="unbounded"/>
                                        </xsd:sequence>
                                </xsd:complexType>
                        </xsd:element>
                </xsd:schema>

......

        <wsdl:portType 
                name="WsrServerMBeanPortType" 
            wsrf-rp:ResourceProperties="tns:WsrServerMBeanProperties" 
            wsrmd:Descriptor="WsrServerMBeanMetadata" 
            wsrmd:DescriptorLocation="WsrServerMBean.rmd" >
......

The content of WsrServerMBean.rmd is as following:


        <MetadataDescriptor xmlns:wsrl="http://docs.oasis-open.org/wsrf/rl-2"; 
                       
xmlns:myns="http://www.30wish.com/muse/ManagementService";
name="WsrServerMBeanMetadata" 
                            interface="myns:WsrServerMBeanPortType" 
                           
wsdlLocation="http://www.30wish.com/muse/ManagementService
WsrServerMBean.wsdl" >
                            
                <Property name="wsrl:CurrentTime" modifiability="read-only"
mutability="mutable" />
                
                <Property name="wsrl:TerminationTime" modifiability="read-only"
mutability="mutable" />
                
                <Property name="myns:WsrServerMBeanProperty" 
modifiability="read-write"
mutability="mutable"/>

                                
        </MetadataDescriptor>
Could you tell me what's wrong?

Thanks.

Sara
-- 
View this message in context: 
http://www.nabble.com/How-to-decalre-new-properties-in-service-definition-file-tp23440889p23440889.html
Sent from the Muse - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to