public string createPartyRegistration(string requestID, string registrationID, string venID, oadrProfileType profileType,
                                              oadrTransportType transportType, string oadrTransportAddress, bool oadrReportOnly, bool oadrXmlSignature, string oadrVenName, bool oadrHttpPullModel)

        {
            request = new oadrCreatePartyRegistrationType();

            request.schemaVersion = "2.0b";

            request.requestID = requestID;

            if (registrationID != null && registrationID != "")
            {
                request.registrationID = registrationID;
            }

            if (venID != null && venID != "")
            {
                request.venID = venID;
            }

            request.oadrProfileName      = profileType;
            request.oadrTransportName    = transportType;
            request.oadrTransportAddress = oadrTransportAddress;
            request.oadrReportOnly       = oadrReportOnly;
            request.oadrXmlSignature     = oadrXmlSignature;
            request.oadrVenName          = oadrVenName;
            request.oadrHttpPullModel    = oadrHttpPullModel;

            request.oadrHttpPullModelSpecified = true;

            return(serializeObject((object)request));
        }
Example #2
0
        /**********************************************************/

        public CreatePartyRegistration createPartyRegistration(string requestID, oadrProfileType profileType, oadrTransportType transportType, string oadrTransportAddress, bool oadrReportOnly, bool oadrXmlSignature, bool oadrHttpPullModel)
        {
            CreatePartyRegistration request = new CreatePartyRegistration();

            string requestBody = request.createPartyRegistration(requestID, m_registrationId, VENID, profileType, transportType, oadrTransportAddress,
                                                                 oadrReportOnly, oadrXmlSignature, VENName, oadrHttpPullModel);

            if ((request.response = (oadrCreatedPartyRegistrationType)postRequest(requestBody, "/EiRegisterParty", request)) != null)
            {
                setVENID(request.response.venID);
                m_registrationId = request.response.registrationID;
                m_vtnID          = request.response.vtnID;

                request.setEiResponse(request.response.eiResponse);
            }



            return(request);
        }