none
Instrumenting ProvisioningRequest in WES RRS feed

  • Question

  • Hi:

    I am writing a WES sync method with ProvisioningRequest and ProvisioningResponse as input/output messages. I'd like to extend the default ProvisioningRequest as the following schema:

    <xs:element name="ProvisioningRequest">

        <xs:complexType>

            <xsTongue Tiedequence>

                <xs:element name="Action" type="xsTongue Tiedtring" minOccurs="0" />

                <xs:element name="Parameters" minOccurs="0" />

                    <xs:complexType>

                        <xsTongue Tiedequence>

                            <xs:any minOccurs="0" maxOccurs="0" namespace="##any"

                                processContents="skip" />

                        </xsTongue Tiedequence>

                    </xs:complexType>

                </xs:element>

            </xsTongue Tiedequence>

        </xs:complexType>

    </xs:element>



    A sample request may look like the followings:

    <ProvisioningRequest xmlns="http://...">

        <Action>TestOperation</Action>

        <Parameters>

            <TestOperationRequest>

                <UserId>jim</UserId>

                <varId>123</varId>

                 

                 <properties>

                      <email>jim@nortel.com</email>

                        <address>123</address>

                 </properties>

            </TestOperationRequest>

        </Parameters>

    </ProvisioningRequest>

    How would I instrument the WES ProvisioningRequest.cs to get the request message in the above schema? I tried the following approach but the WSDL did not turn out to be like the schema. Particularly the "TestOperation" complex type is not showing up in the WSDL.

    public partial class ProvisioningRequest
    {
        // required fields

        private string action;
        private Parameters parameters;

        public string Action
        {
            get
            {
                return this.action;
            }
            set
            {
                this.action = value;
            }
        }

        public Parameters Parameters
        {
            get
            {
                return this.parameters;
            }
            set
            {
                this.parameters = value;
            }
        }
    }

    public class Parameters
    {
    }

    public class TestOperationMsg : Parameters
    {
        private string userid;
        private string varId;
       ...  // get set for userid and varId
    }


    Any help?

    Thanks,
    Ying


    Monday, July 30, 2007 5:44 PM