How to decalre new properties in service definition file

View: New views
1 Messages — Rating Filter:   Alert me  

How to decalre new properties in service definition file

by SARA1232007 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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