python OA:将OpenAir WSDL解析为JSON
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python OA:将OpenAir WSDL解析为JSON相关的知识,希望对你有一定的参考价值。
{
"Viewfilterrule": [
"condition",
"created",
"field",
"id",
"required",
"type",
"updated",
"value",
"viewfilterid"
],
"Category_3": [
"active",
"code",
"created",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"updated"
],
"SlipProjection": [
"acct_date",
"agreementid",
"billing_contactid",
"booking_typeid",
"categoryid",
"city",
"cost",
"cost_centerid",
"created",
"currency",
"customerid",
"customerpoid",
"date",
"decimal_hours",
"description",
"hour",
"id",
"invoiceid",
"itemid",
"job_codeid",
"minute",
"notes",
"payment_typeid",
"productid",
"project_billing_ruleid",
"projectid",
"projecttask_typeid",
"projecttaskid",
"quantity",
"rate",
"shipping_contactid",
"slip_projection_type",
"slip_stageid",
"sold_to_contactid",
"timer_start",
"timetypeid",
"total",
"transactionid",
"type",
"unitm",
"updated",
"userid"
],
"BudgetAllocation": [
"allocation",
"budgetactivity_id",
"budgetcategory_id",
"budgetid",
"created",
"currency",
"customerid",
"date",
"id",
"projectid",
"total",
"updated",
"userid"
],
"Role": [
"admin_role",
"created",
"default_role",
"deleted",
"id",
"name",
"notes",
"permissions",
"updated"
],
"Projectbillingtransaction": [
"agreementid",
"categoryid",
"cost",
"cost_centerid",
"created",
"customerid",
"customerpoid",
"date",
"description",
"hour",
"id",
"itemid",
"job_codeid",
"minute",
"notes",
"payroll_typeid",
"project_billing_ruleid",
"project_taskid",
"projectid",
"quantity",
"rate",
"slip_stage_id",
"slipid",
"taskid",
"ticketid",
"timetypeid",
"total",
"type",
"um",
"updated",
"userid"
],
"ItemToUserLocation": [
"created",
"id",
"itemid",
"tax_locationid",
"updated",
"user_locationid"
],
"FieldAttribute": [
"name",
"value"
],
"Projecttaskassign": [
"allocation",
"bookingid",
"closed_for_envelope",
"closed_for_timesheet",
"created",
"deleted",
"externalid",
"id",
"job_codeid",
"pending_bookingid",
"planned_hours",
"project_assignment_profileid",
"project_groupid",
"projectid",
"projecttaskid",
"updated",
"userid"
],
"Paymentterms": [
"active",
"created",
"default_terms",
"id",
"name",
"notes",
"updated"
],
"Resourceprofile": [
"attributeid",
"comment",
"created",
"externalid",
"id",
"name",
"resourceprofile_typeid",
"type",
"updated",
"userid"
],
"Workspacelink": [
"created",
"description",
"external",
"id",
"recordid",
"table_name",
"updated",
"url",
"workspaceid"
],
"Actualcost": [
"cost",
"cost_typeid",
"created",
"currency",
"date",
"externalid",
"id",
"is_accrual",
"name",
"notes",
"period",
"updated",
"userid"
],
"Estimatemarkup": [
"as_percentage",
"created",
"estimateid",
"id",
"percent",
"phaseid",
"total",
"updated"
],
"Company": [
"VAT_registration_number",
"addr_addr1",
"addr_addr2",
"addr_addr3",
"addr_addr4",
"addr_city",
"addr_contact_id",
"addr_country",
"addr_email",
"addr_fax",
"addr_first",
"addr_id",
"addr_last",
"addr_middle",
"addr_mobile",
"addr_phone",
"addr_salutation",
"addr_state",
"addr_zip",
"base_currency",
"businesstype",
"company",
"created",
"currencies",
"flags",
"hide_rate",
"id",
"is_multicurrency",
"nickname",
"rate_from",
"updated",
"workscheduleid"
],
"Timesheet": [
"acct_date",
"approved",
"approved_by",
"created",
"default_categoryid",
"default_customerid",
"default_payrolltypeid",
"default_per_row",
"default_projectid",
"default_projecttaskid",
"default_timetypeid",
"duration",
"ends",
"history",
"id",
"name",
"notes",
"starts",
"status",
"submitted",
"thin_client_id",
"total",
"updated",
"userid"
],
"Base": [],
"Projectassign": [
"allocation",
"created",
"customer_id",
"deleted",
"id",
"job_codeid",
"project_groupid",
"project_id",
"updated",
"user_id"
],
"TagGroup": [
"active",
"created",
"entity_type",
"externalid",
"id",
"name",
"searchable",
"updated"
],
"Estimate": [
"created",
"customerid",
"dealid",
"hide_expense",
"id",
"name",
"notes",
"updated"
],
"History": [
"action",
"created",
"date",
"envelopeid",
"id",
"notes",
"projectid",
"timesheetid",
"userid"
],
"HierarchyNode": [
"created",
"externalid",
"hierarchyid",
"id",
"isalevel",
"isanode",
"levelid",
"name",
"notes",
"parentid",
"recordid",
"updated"
],
"Timecard": [
"break_end",
"break_start",
"created",
"date",
"hours",
"id",
"notes",
"time_end",
"time_start",
"timesheetid",
"updated",
"userid"
],
"Task": [
"acct_date",
"category_1id",
"category_2id",
"category_3id",
"category_4id",
"category_5id",
"categoryid",
"cost_centerid",
"created",
"customerid",
"date",
"decimal_hours",
"description",
"hours",
"id",
"job_codeid",
"loaded_cost",
"loaded_cost_2",
"loaded_cost_3",
"minutes",
"notes",
"payroll_typeid",
"project_loaded_cost",
"project_loaded_cost_2",
"project_loaded_cost_3",
"projectid",
"projecttask_typeid",
"projecttaskid",
"slipid",
"thin_client_id",
"timesheetid",
"timetypeid",
"updated",
"userid"
],
"Project": [
"active",
"attachmentid",
"auto_bill",
"auto_bill_cap",
"auto_bill_cap_value",
"auto_bill_override",
"az_approvalprocess",
"az_approver",
"billing_code",
"billing_contactid",
"br_approvalprocess",
"br_approver",
"budget",
"budget_time",
"category_filter",
"code",
"copy_approvers",
"copy_custom_fields",
"copy_dashboard_settings",
"copy_invoice_layout_settings",
"copy_issues",
"copy_loaded_cost",
"copy_notification_settings",
"copy_project_billing_auto_settings",
"copy_project_billing_rules",
"copy_project_pricing",
"copy_revenue_recognition_auto_settings",
"copy_revenue_recognition_rules",
"copy_revenuerecognition_auto_settings",
"cost_centerid",
"create_workspace",
"created",
"currency",
"current_dr",
"current_wip",
"customer_name",
"customerid",
"exported_dr",
"exported_wip",
"externalid",
"filtersetids",
"finish_date",
"hierarchy_node_ids",
"id",
"invoice_layoutid",
"invoice_text",
"is_portfolio_project",
"locationid",
"main_contactid",
"message",
"msp_link_type",
"name",
"no_dirty",
"notes",
"notify_assignees",
"notify_issue_assigned_to",
"notify_issue_closed_assigned_to",
"notify_issue_closed_customer_owner",
"notify_issue_closed_project_owner",
"notify_issue_created_customer_owner",
"notify_issue_created_project_owner",
"notify_owner",
"notify_sr_submitted_project_owner",
"only_owner_can_edit",
"payroll_type_filter",
"picklist_label",
"pm_approver_1",
"pm_approver_2",
"pm_approver_3",
"po_approvalprocess",
"po_approver",
"portfolio_projectid",
"pr_approvalprocess",
"pr_approver",
"project_locationid",
"project_stageid",
"rate",
"rate_cardid",
"rm_approvalprocess",
"rm_approver",
"rv_approvalprocess",
"rv_approver",
"sga_labor",
"shipping_contact_id",
"sold_to_contact_id",
"start_date",
"sync_workspace",
"ta_approvalprocess",
"ta_approver",
"ta_include",
"tax_location_name",
"tax_locationid",
"tb_approvalprocess",
"tb_approver",
"te_allowance_approvalprocess",
"te_allowance_approver",
"te_approvalprocess",
"te_approver",
"te_include",
"template_project_id",
"timetype_filter",
"updated",
"user_filter",
"userid"
],
"SummaryView": [
"en_approved",
"en_open",
"en_rejected",
"en_submitted",
"en_waiting",
"tm_approved",
"tm_open",
"tm_rejected",
"tm_submitted",
"tm_waiting"
],
"TaskTimecard": [
"category_1id",
"category_2id",
"category_3id",
"category_4id",
"category_5id",
"categoryid",
"cost_centerid",
"created",
"customerid",
"date",
"decimal_hours",
"description",
"hours",
"id",
"minutes",
"notes",
"payroll_typeid",
"project_phaseid",
"projectid",
"projecttask_typeid",
"projecttaskid",
"slipid",
"time_cardid",
"timesheetid",
"timetypeid",
"updated",
"userid"
],
"ResourceRequestQueue": [
"created",
"customerid",
"date_end",
"date_start",
"external_id",
"id",
"name",
"notes",
"number",
"percent_fulfilled",
"projectid",
"resource_request_id",
"resourcesearch_id",
"slots",
"status",
"updated"
],
"Booking_request": [
"approval_status",
"as_percentage",
"attachment_id",
"booking_type_id",
"created",
"customer_id",
"date_approved",
"date_submitted",
"description",
"enddate",
"external_id",
"hours",
"id",
"job_code_id",
"name",
"notes",
"notify_owner",
"number",
"owner_id",
"percentage",
"prefix",
"project_id",
"project_task_id",
"repeat_id",
"startdate",
"updated",
"user_id"
],
"Leave_accrual_transaction": [
"amount",
"created",
"date",
"from_run",
"id",
"leave_accrual_ruleid",
"notes",
"taskid",
"type",
"updated",
"userid"
],
"Ticket": [
"acct_date",
"attachmentid",
"categoryid",
"city",
"cost",
"cost_centerid",
"created",
"currency",
"currency_cost",
"currency_exchange_intolerance",
"currency_rate",
"currency_symbol",
"currency_total_tax_paid",
"customerid",
"date",
"description",
"envelopeid",
"externalid",
"id",
"itemid",
"missing_receipt",
"non_billable",
"notes",
"payment_typeid",
"paymethod",
"project_taskid",
"projectid",
"projecttask_typeid",
"quantity",
"reference_number",
"slipid",
"status",
"tax_location_id",
"tax_location_name",
"tax_rateid",
"thin_client_id",
"total",
"total_no_tax",
"total_tax_paid",
"unitm",
"updated",
"use_server_currency_rate",
"user_locationid",
"userid",
"vendorid"
],
"Agreement_to_project": [
"active",
"agreementid",
"created",
"customerid",
"id",
"projectid",
"updated"
],
"ProjectBudgetTransaction": [
"category",
"categoryid",
"created",
"currency",
"customerid",
"date",
"id",
"itemid",
"job_codeid",
"productid",
"project_budget_groupid",
"project_budget_ruleid",
"project_taskid",
"projectid",
"quantity",
"quantity_best",
"quantity_most_likely",
"quantity_worst",
"total",
"total_best",
"total_most_likely",
"total_worst",
"updated"
],
"Payment": [
"bulk_paymentid",
"created",
"currency",
"customerid",
"date",
"externalid",
"id",
"invoice_number",
"invoiceid",
"notes",
"total",
"updated"
],
"TargetUtilization": [
"created",
"end_date",
"id",
"percentage",
"start_date",
"updated",
"user_id"
],
"Fulfillment": [
"acct_date",
"carrier_id",
"created",
"date",
"id",
"notes",
"purchase_item_id",
"purchaseorder_id",
"purchaserequest_id",
"quantity",
"request_item_id",
"slip_id",
"updated",
"waybill_number"
],
"Currencyrate": [
"cname",
"crate",
"csymbol",
"date",
"type"
],
"Estimatelabor": [
"amount",
"amount_type",
"billing_rate",
"created",
"description",
"end_date",
"estimateid",
"id",
"loaded_cost",
"phaseid",
"start_date",
"updated",
"userid"
],
"Event": [
"contactid",
"created",
"customerid",
"dealid",
"id",
"name",
"notes",
"occurred",
"updated",
"userid"
],
"Revenue_recognition_rule": [
"accounting_period_id",
"acct_code",
"acct_date",
"acct_date_how",
"active",
"agreementid",
"amount",
"asb_exclude_slip_type",
"asb_which_slips",
"assigned_user",
"break_by_user",
"category_1id",
"category_2id",
"category_3id",
"category_4id",
"category_5id",
"categoryid",
"cost_center_id",
"created",
"currency",
"customerid",
"customerpo_id",
"end_date",
"end_milestone",
"expense_how",
"extra_data",
"id",
"item_filter",
"marked_as_ready",
"name",
"notes",
"percent",
"percent_complete",
"percent_how",
"percent_trigger",
"phase",
"product_filter",
"project_billing_rule_filter",
"project_task_filter",
"projectid",
"purchase_how",
"recognition_type",
"repeatid",
"slip_stage_filter",
"start_date",
"start_milestone",
"timetype_filter",
"type",
"updated",
"user_filter"
],
"Resourceprofile_type": [
"active",
"attribute_set_id",
"created",
"externalid",
"id",
"name",
"related_table",
"relatedid",
"type",
"updated"
],
"Scheduleexception": [
"created",
"enddate",
"exception_type",
"id",
"name",
"schedule_request_itemid",
"startdate",
"timetypeid",
"updated",
"userid",
"workhours",
"workscheduleid"
],
"Department": [
"created",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"updated",
"userid"
],
"Schedulerequest_item": [
"categoryid",
"created",
"customerid",
"date",
"externalid",
"hours",
"id",
"name",
"project_taskid",
"projectid",
"request_reference_number",
"schedule_requestid",
"timetypeid",
"updated",
"userid"
],
"RevenueProjection": [
"acct_date",
"agreement_id",
"booking_type_id",
"category_1_id",
"category_2_id",
"category_3_id",
"category_4_id",
"category_5_id",
"category_id",
"city",
"cost",
"cost_center_id",
"cost_includes_tax",
"created",
"currency",
"customer_id",
"customerpo_id",
"date",
"description",
"exported",
"hour",
"id",
"incomplete",
"invoice_id",
"item_id",
"job_code_id",
"minute",
"name",
"notes",
"originating_id",
"payment_type_id",
"payroll_type_id",
"portfolio_project_id",
"product_id",
"project_billing_rule_id",
"project_id",
"project_task_id",
"projecttask_type_id",
"quantity",
"rate",
"ref_slip_id",
"repeat_id",
"revenue_projection_type",
"revenue_recognition_rule_id",
"revenue_stage_id",
"slip_projection_id",
"slip_projection_type",
"slip_stage_id",
"slip_type_id",
"timer_start",
"timetype_id",
"total",
"total_hp",
"total_tax_paid",
"transaction_id",
"type",
"um",
"updated",
"user_id",
"vehicle_id"
],
"Filterset": [
"active",
"all_access",
"created",
"default_filter_set",
"externalid",
"id",
"name",
"notes",
"updated"
],
"TaxRate": [
"created",
"currency",
"date",
"federal",
"gst",
"hst",
"id",
"manual",
"notes",
"pst",
"purchase_itemid",
"slipid",
"state",
"tax_locationid",
"ticketid",
"updated"
],
"ProjectBudgetRule": [
"category",
"categoryid",
"created",
"currency",
"customerid",
"date",
"end_date",
"id",
"imported",
"itemid",
"job_codeid",
"notes",
"period",
"productid",
"profitability",
"project_budget_groupid",
"project_taskid",
"projectid",
"quantity",
"quantity_best",
"quantity_most_likely",
"quantity_worst",
"rate",
"start_date",
"total",
"total_best",
"total_most_likely",
"total_worst",
"updated"
],
"Vendor": [
"active",
"addr_addr1",
"addr_addr2",
"addr_addr3",
"addr_addr4",
"addr_city",
"addr_contact_id",
"addr_country",
"addr_email",
"addr_fax",
"addr_first",
"addr_id",
"addr_last",
"addr_middle",
"addr_mobile",
"addr_phone",
"addr_salutation",
"addr_state",
"addr_zip",
"attention",
"code",
"created",
"currency",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"purchaseorder_email_text",
"purchaseorder_text",
"tax_locationid",
"terms",
"updated",
"web"
],
"Revenue_recognition_rule_amount": [
"acct_code",
"agreement_id",
"amount",
"category_1id",
"category_2id",
"category_3id",
"category_4id",
"category_5id",
"category_id",
"cost_center_id",
"created",
"currency",
"customerpo_id",
"id",
"recognition_type",
"revenue_recognition_rule_id",
"updated"
],
"Jobcode": [
"active",
"code",
"created",
"currency",
"externalid",
"id",
"loaded_cost",
"name",
"notes",
"updated",
"userid_fte"
],
"Agreement": [
"acct_date",
"active",
"code",
"created",
"currency",
"customerid",
"date",
"externalid",
"id",
"name",
"notes",
"number",
"picklist_label",
"total",
"updated"
],
"Revenue_recognition_transaction": [
"acct_code",
"acct_date",
"agreementid",
"category_1id",
"category_2id",
"category_3id",
"category_4id",
"category_5id",
"categoryid",
"cost_center_id",
"created",
"currency",
"customerid",
"customerpo_id",
"date",
"decimal_hours",
"hour",
"id",
"is_from_open_stage",
"job_codeid",
"minute",
"notes",
"offsetsid",
"originatingid",
"percent_complete",
"portfolio_projectid",
"project_billing_ruleid",
"project_taskid",
"projectid",
"rate",
"recognition_type",
"revenue_containerid",
"revenue_recognition_ruleid",
"revenue_stageid",
"slipid",
"taskid",
"ticketid",
"total",
"type",
"updated",
"userid"
],
"Schedulebyday": [
"base_hours",
"created",
"date",
"hours",
"id",
"target_base_hours",
"target_hours",
"updated",
"user_id"
],
"Purchaseorder": [
"accounts_payableid",
"approval_status",
"attachmentid",
"auto_track_payable_with_fulfilled",
"carrierid",
"created",
"currency",
"date",
"date_approved",
"date_expected",
"date_fulfilled",
"date_order_placed",
"date_required",
"date_shipped",
"date_submitted",
"description",
"id",
"locationid",
"name",
"notes",
"number",
"prefix",
"purchase_items_fulfilled",
"quantity_fulfilled",
"receivingid",
"ship_complete_only",
"shipping_cost",
"shipping_termsid",
"terms",
"total",
"total_purchase_items",
"total_quantity",
"updated",
"userid",
"vendorid"
],
"Costcenter": [
"active",
"code",
"created",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"updated"
],
"Report": [
"created",
"date_created",
"email_report",
"id",
"name",
"relatedid",
"thin_client_context",
"type",
"updated",
"userid"
],
"RevenueContainer": [
"acct_date",
"approval_status",
"balancing_type",
"created",
"currency",
"customerid",
"date",
"date_approved",
"date_submitted",
"exported",
"externalid",
"id",
"name",
"notes",
"number",
"prefix",
"projectid",
"total_accrued",
"total_deferred",
"total_invoiced",
"total_posted",
"total_recognized",
"updated"
],
"Reimbursement": [
"audit",
"created",
"currency",
"date",
"envelope_number",
"envelopeid",
"externalid",
"id",
"notes",
"total",
"updated",
"userid"
],
"Term": [
"display",
"name"
],
"Slipstage": [
"created",
"enable_slip_tab",
"exclude_from_invoicing",
"id",
"name",
"notes",
"position",
"updated"
],
"Entitytag": [
"created",
"customerid",
"default_for_entity",
"end_date",
"externalid",
"id",
"projectid",
"start_date",
"tag_group_attribute_name",
"tag_group_attributeid",
"tag_group_id",
"updated",
"userid"
],
"Budget": [
"budgetcategory_id",
"categoryid",
"created",
"currency",
"customerid",
"date",
"id",
"name",
"notes",
"projectid",
"total",
"updated"
],
"Schedulerequest": [
"approval_status",
"attachmentid",
"categoryid",
"created",
"customerid",
"date",
"date_approved",
"date_submitted",
"description",
"enddate",
"externalid",
"id",
"name",
"notes",
"number",
"prefix",
"project_taskid",
"projectid",
"startdate",
"timetype",
"timetypeid",
"updated",
"userid"
],
"Contact": [
"active",
"addr_addr1",
"addr_addr2",
"addr_addr3",
"addr_addr4",
"addr_city",
"addr_contact_id",
"addr_country",
"addr_email",
"addr_fax",
"addr_first",
"addr_id",
"addr_last",
"addr_middle",
"addr_mobile",
"addr_phone",
"addr_salutation",
"addr_state",
"addr_zip",
"can_bill_to",
"can_ship_to",
"can_sold_to",
"code",
"created",
"customer_company",
"customerid",
"deleted",
"exported",
"externalid",
"id",
"job_title",
"name",
"notes",
"picklist_label",
"updated"
],
"Estimateadjustment": [
"adjustment_type",
"amount",
"amount_type",
"created",
"estimateid",
"id",
"name",
"updated"
],
"RevenueStage": [
"created",
"id",
"name",
"revenue_stage_type",
"updated"
],
"Approvalprocess": [
"created",
"externalid",
"id",
"name",
"updated"
],
"UserWorkschedule": [
"account_workscheduleid",
"created",
"id",
"name",
"updated",
"use_this_schedule",
"userid",
"workdays",
"workhours"
],
"Projectlocation": [
"active",
"created",
"id",
"name",
"notes",
"updated"
],
"BookingByDay": [
"booking_id",
"booking_type_id",
"created",
"customer_id",
"date",
"hours",
"id",
"job_code_id",
"project_id",
"project_task_id",
"updated",
"userid"
],
"Deal": [
"active",
"closed",
"created",
"customerid",
"exported",
"id",
"name",
"notes",
"opened",
"rating",
"stage",
"status",
"territoryid",
"updated",
"userid"
],
"Costtype": [
"active",
"cost_categoryid",
"created",
"externalid",
"id",
"name",
"notes",
"updated"
],
"Hierarchy": [
"active",
"available_as_column",
"created",
"externalid",
"id",
"name",
"notes",
"primary_dropdown_filter",
"primary_user_filterset",
"required",
"requireonform",
"type",
"updated"
],
"Purchase_item": [
"acct_date",
"allow_vendor_substitution",
"approved_cost",
"attachmentid",
"cost",
"created",
"currency",
"customerid",
"date",
"date_fulfilled",
"id",
"manufacturer_part",
"manufacturerid",
"name",
"non_po",
"notes",
"order_reference_number",
"productid",
"projectid",
"purchaseorderid",
"purchaserequestid",
"purchaserid",
"quantity",
"quantity_fulfilled",
"quantity_payable",
"request_itemid",
"tax_location_name",
"total",
"total_with_tax",
"um",
"updated",
"userid",
"vendor_quote_number",
"vendor_sku",
"vendorid"
],
"Attributeset": [
"created",
"id",
"name",
"notes",
"updated"
],
"Currency": [
"created",
"rate",
"symbol",
"updated"
],
"Timetype": [
"active",
"code",
"cost_centerid",
"created",
"externalid",
"id",
"name",
"notes",
"payroll_code",
"picklist_label",
"updated"
],
"HistoryNotes": [
"action",
"date",
"id",
"notes",
"parentid",
"type"
],
"Todo": [
"contactid",
"created",
"createdbyid",
"customerid",
"dealid",
"due",
"finished",
"id",
"name",
"notes",
"priority",
"start",
"status",
"updated",
"userid"
],
"BillingSplit": [
"created",
"id",
"project_billing_transactionid",
"slipid",
"taskid",
"updated"
],
"Category": [
"active",
"code",
"cost_centerid",
"cost_rate",
"created",
"currency",
"externalid",
"fixed_fee",
"id",
"name",
"notes",
"other_rate",
"other_rate_type",
"picklist_label",
"rate",
"taxable",
"updated"
],
"RateCardItem": [
"created",
"currency",
"current",
"end",
"id",
"job_code_id",
"rate",
"rate_card_id",
"start",
"updated"
],
"Workspace": [
"allow_guests",
"created",
"date",
"description",
"global",
"global_access",
"id",
"name",
"notes",
"open",
"updated",
"userid"
],
"Projecttask": [
"all_can_assign",
"assign_user_names",
"calculated_finishes",
"calculated_starts",
"classification",
"closed",
"cost_centerid",
"created",
"currency",
"customer_name",
"customerid",
"default_category",
"default_category_1",
"default_category_2",
"default_category_3",
"default_category_4",
"default_category_5",
"deleted",
"early_finish",
"early_start",
"estimated_hours",
"externalid",
"fnlt_date",
"id",
"id_number",
"is_a_phase",
"manual_task_budget",
"name",
"non_billable",
"notes",
"parentid",
"percent_complete",
"planned_hours",
"predecessors",
"predecessors_lag",
"predecessors_type",
"priority",
"project_name",
"projectid",
"projecttask_typeid",
"seq",
"starts",
"task_budget_cost",
"task_budget_revenue",
"timetype_filter",
"updated",
"use_project_assignment"
],
"TaxLocation": [
"acct_code_federal",
"acct_code_gst",
"acct_code_hst",
"acct_code_pst",
"acct_code_state",
"active",
"created",
"federal_rate",
"gst_rate",
"hst_rate",
"id",
"name",
"notes",
"pst_rate",
"state_rate",
"tax_method",
"updated"
],
"Ccrate": [
"categoryid",
"created",
"currency",
"customerid",
"id",
"notes",
"rate",
"updated"
],
"TaskAdjustment": [
"created",
"id",
"new_taskid",
"new_timesheetid",
"old_taskid",
"old_timesheetid",
"updated"
],
"Attachment": [
"attachmentid",
"base64_data",
"created",
"file_name",
"hash_name",
"id",
"is_a_folder",
"locked_by",
"name",
"notes",
"owner_type",
"ownerid",
"parentid",
"updated",
"workspaceid"
],
"Projectgroup": [
"active",
"assigned_users",
"created",
"id",
"name",
"notes",
"updated"
],
"Viewfilter": [
"action",
"created",
"fields",
"id",
"label",
"match_all",
"name",
"updated",
"userid"
],
"Customerpo": [
"acct_date",
"active",
"code",
"created",
"currency",
"customerid",
"date",
"externalid",
"id",
"name",
"notes",
"number",
"picklist_label",
"total",
"updated"
],
"Repeat": [
"created",
"end",
"every",
"exclude_dow",
"frequency",
"how_end",
"id",
"occur_number",
"updated"
],
"IssueStage": [
"considered_closed",
"created",
"default_for_new",
"id",
"name",
"notes",
"position",
"updated"
],
"IssueCategory": [
"active",
"created",
"id",
"name",
"notes",
"updated"
],
"TagGroupAttribute": [
"active",
"created",
"externalid",
"id",
"name",
"tag_groupid",
"updated"
],
"User": [
"account_workscheduleid",
"acct_code",
"active",
"addr_addr1",
"addr_addr2",
"addr_addr3",
"addr_addr4",
"addr_city",
"addr_contact_id",
"addr_country",
"addr_email",
"addr_fax",
"addr_first",
"addr_id",
"addr_last",
"addr_middle",
"addr_mobile",
"addr_phone",
"addr_salutation",
"addr_state",
"addr_zip",
"az_approvalprocess",
"az_approver",
"book_assign_stamp",
"br_approvalprocess",
"br_approver",
"code",
"cost",
"cost_centerid",
"cost_currency",
"cost_end_date",
"cost_lc_level",
"cost_start_date",
"created",
"currency",
"departmentid",
"dr_approvalprocess",
"dr_approver",
"external_id",
"externalid",
"filterset_ids",
"filterset_stamp",
"flags",
"generic",
"hierarchy_node_ids",
"hint",
"id",
"is_user_schedule",
"job_codeid",
"km_filter_set",
"line_managerid",
"locked",
"logintime",
"ma_filter_set",
"name",
"nickname",
"om_filter_set",
"password",
"password_forced_change",
"payroll_code",
"pb_approvalprocess",
"pb_approver",
"picklist_label",
"pm_filter_set",
"po_approvalprocess",
"po_approver",
"po_filter_set",
"pr_approvalprocess",
"pr_approver",
"primary_filter_set",
"project_access_nodes",
"rate",
"report_filter_set",
"rm_approvalprocess",
"rm_approver",
"rm_filter_set",
"role_id",
"sr_approvalprocess",
"sr_approver",
"ssn",
"ta_approvalprocess",
"ta_approver",
"ta_filter_set",
"tag_end_date",
"tag_group_attribute_id",
"tag_group_id",
"tag_start_date",
"tb_filter_set",
"te_allowance_approvalprocess",
"te_allowance_approver",
"te_approvalprocess",
"te_approver",
"te_filter_set",
"timezone",
"type",
"update_cost",
"update_tag",
"update_workschedule",
"updated",
"user_locationid",
"week_starts",
"workschedule_workdays",
"workschedule_workhours",
"workscheduleid"
],
"Date": [
"day",
"hour",
"minute",
"month",
"second",
"year"
],
"Approval": [
"cc",
"notes"
],
"ProjectPricing": [
"created",
"customerid",
"discount_rate_cardid",
"id",
"projectid",
"standard_rate_cardid",
"updated"
],
"Projectstage": [
"created",
"enable_analysis",
"enable_billing",
"enable_phase_and_task",
"enable_pricing",
"enable_project_assignments",
"enable_recognition",
"enable_team",
"enable_utilization",
"id",
"name",
"notes",
"picklist_label",
"position",
"updated"
],
"Dealcontact": [
"contactid",
"created",
"dealid",
"id",
"updated"
],
"PendingBooking": [
"approval_status",
"as_percentage",
"booking_typeid",
"created",
"customerid",
"date_approved",
"date_submitted",
"dirty",
"enddate",
"endtime",
"externalid",
"hours",
"id",
"job_codeid",
"locationid",
"notes",
"notify_owner",
"ownerid",
"percentage",
"project_assignment_profileid",
"project_taskid",
"projectid",
"repeatid",
"resource_request_queue_id",
"startdate",
"starttime",
"updated",
"userid"
],
"Paymenttype": [
"active",
"created",
"default_payment_type",
"default_status",
"id",
"name",
"notes",
"updated"
],
"Switch": [
"name",
"setting"
],
"Error": [
"code",
"comment",
"text"
],
"Proposalblock": [
"categoryid",
"content",
"cost",
"created",
"description",
"hour",
"id",
"itemid",
"minute",
"name",
"proposalid",
"quantity",
"rate",
"seq",
"slipid",
"templateid",
"total",
"type",
"um",
"updated"
],
"ProjectAssignmentProfile": [
"created",
"customerid",
"id",
"name",
"projectid",
"updated",
"user_filter"
],
"Purchaser": [
"accounts_payableid",
"active",
"carrierid",
"created",
"exported",
"id",
"name",
"notes",
"receivingid",
"ship_complete_only",
"updated",
"userid"
],
"Payrolltype": [
"active",
"created",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"updated"
],
"Attribute": [
"attribute_setid",
"created",
"id",
"name",
"notes",
"updated"
],
"RateLimit": [
"remain_24h_error"
],
"FormPermissionField": [
"default_value",
"field_name",
"form_name",
"hidden",
"readonly",
"required",
"save_and_create"
],
"Invoice": [
"access_log",
"accounting",
"acct_date",
"approval_status",
"approved",
"attachmentid",
"balance",
"contactid",
"created",
"credit",
"credit_reason",
"credit_rebill_status",
"currency",
"customerid",
"date",
"draw",
"draw_date",
"emailed",
"externalid",
"id",
"invoice_layoutid",
"notes",
"number",
"original_invoiceid",
"paperrequest",
"papersend",
"shipping_contactid",
"status",
"submitted",
"tax",
"tax_federal",
"tax_gst",
"tax_hst",
"tax_pst",
"tax_state",
"terms",
"total",
"updated"
],
"CustomField": [
"id",
"name",
"type",
"value"
],
"IssueSeverity": [
"active",
"created",
"id",
"name",
"notes",
"updated"
],
"ProjectBudgetGroup": [
"approval_status",
"budget_by",
"calculated_total",
"cf_opt",
"cf_pes",
"created",
"currency",
"customerid",
"date",
"date_approved",
"date_archived",
"date_submitted",
"funding_total",
"id",
"internal_total",
"labor_subcategory",
"name",
"notes",
"parentid",
"profitability",
"projectid",
"setting",
"total",
"total_calculated_billing",
"total_calculated_cost",
"total_expected_billing",
"total_expected_cost",
"total_from_funding",
"unassigned_task",
"updated",
"userid",
"version"
],
"UserLocation": [
"acct_code",
"active",
"created",
"external_id",
"id",
"name",
"notes",
"updated"
],
"Estimatephase": [
"created",
"estimateid",
"id",
"name",
"updated"
],
"Leave_accrual_rule": [
"active",
"amount",
"cap",
"category_filter",
"created",
"draw_down_when",
"grace_days",
"id",
"lose_how",
"name",
"notes",
"period",
"project_filter",
"project_task_filter",
"timetype_filter",
"timing",
"updated"
],
"Costcategory": [
"active",
"created",
"externalid",
"id",
"name",
"notes",
"updated"
],
"Proposal": [
"access_log",
"approved",
"approved_by",
"attachmentid",
"created",
"created_by",
"customerid",
"description",
"expires",
"id",
"name",
"notes",
"number",
"projectid",
"responded",
"response",
"sent",
"status",
"submitted",
"total",
"updated",
"userid",
"viewed"
],
"Issue": [
"attachment_id",
"created",
"customer_id",
"date",
"date_resolution_expected",
"date_resolution_required",
"date_resolved",
"description",
"id",
"issue_category_id",
"issue_notes",
"issue_severity_id",
"issue_source_id",
"issue_stage_id",
"issue_status_id",
"name",
"number",
"owner_id",
"prefix",
"priority",
"project_id",
"project_task_id",
"resolution_notes",
"updated",
"user_id"
],
"Booking": [
"approval_status",
"as_percentage",
"booking_typeid",
"created",
"customerid",
"date_approved",
"date_submitted",
"enddate",
"endtime",
"externalid",
"hours",
"id",
"job_codeid",
"locationid",
"notes",
"notify_owner",
"ownerid",
"percentage",
"project_assignment_profileid",
"project_taskid",
"projectid",
"repeatid",
"resource_request_queue_id",
"source_booking_id",
"startdate",
"starttime",
"updated",
"userid"
],
"Product": [
"active",
"code",
"created",
"currency",
"externalid",
"id",
"manufacturer_part",
"manufacturerid",
"name",
"notes",
"standard_cost",
"taxable",
"um",
"updated",
"vendor_sku",
"vendorid"
],
"Uprate": [
"categoryid",
"created",
"currency",
"customerid",
"duration",
"id",
"job_codeid",
"notes",
"project_billing_ruleid",
"projectid",
"rate",
"updated",
"userid"
],
"Category_5": [
"active",
"code",
"created",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"updated"
],
"Category_4": [
"active",
"code",
"created",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"updated"
],
"Envelope": [
"acct_date",
"advance",
"approved",
"approver",
"attachmentid",
"balance",
"created",
"currency",
"currency_exchange_intolerance",
"customerid",
"date",
"date_end",
"date_start",
"externalid",
"id",
"is_overlapping",
"name",
"notes",
"number",
"projectid",
"status",
"submitted",
"tax_locationid",
"thin_client_id",
"total",
"totreimburse",
"tottickets",
"trip_reason",
"updated",
"userid"
],
"Category_2": [
"active",
"code",
"created",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"updated"
],
"Category_1": [
"active",
"code",
"created",
"externalid",
"id",
"name",
"notes",
"picklist_label",
"updated"
],
"IssueSource": [
"active",
"created",
"id",
"name",
"notes",
"updated"
],
"Workspaceuser": [
"access",
"created",
"id",
"projectgroupid",
"updated",
"userid",
"workspaceid"
],
"Preference": [
"created",
"group_name",
"id",
"name",
"setting",
"updated",
"userid"
],
"Resourcesearch": [
"as_percentage",
"availability_search",
"consecutive_availability",
"created",
"enddate",
"excluding",
"external_id",
"hours",
"id",
"include_generic_resources",
"include_inactive_resources",
"include_regular_resources",
"name",
"percentage",
"preferred",
"required",
"resource_request_queue_id",
"startdate",
"updated"
],
"Address": [
"addr1",
"addr2",
"addr3",
"addr4",
"city",
"contact_id",
"country",
"email",
"fax",
"first",
"id",
"last",
"middle",
"mobile",
"phone",
"salutation",
"state",
"zip"
],
"BookingType": [
"active",
"approval_status",
"created",
"default_for_approval_status",
"id",
"name",
"notes",
"picklist_label",
"priority",
"updated"
],
"Leave_accrual_rule_to_user": [
"created",
"end_date",
"id",
"leave_accrual_ruleid",
"start_date",
"transfer_balance_to",
"updated",
"userid"
],
"Estimateexpense": [
"created",
"date",
"description",
"estimateid",
"id",
"itemid",
"markup",
"markup_type",
"phaseid",
"price",
"quantity",
"updated"
],
"InvoiceLayout": [
"created",
"id",
"name",
"updated"
],
"Customer": [
"active",
"addr_addr1",
"addr_addr2",
"addr_addr3",
"addr_addr4",
"addr_city",
"addr_contact_id",
"addr_country",
"addr_email",
"addr_fax",
"addr_first",
"addr_id",
"addr_last",
"addr_middle",
"addr_mobile",
"addr_phone",
"addr_salutation",
"addr_state",
"addr_zip",
"billing_addr_addr1",
"billing_addr_addr2",
"billing_addr_addr3",
"billing_addr_addr4",
"billing_addr_city",
"billing_addr_contact_id",
"billing_addr_country",
"billing_addr_email",
"billing_addr_fax",
"billing_addr_first",
"billing_addr_id",
"billing_addr_last",
"billing_addr_middle",
"billing_addr_mobile",
"billing_addr_phone",
"billing_addr_salutation",
"billing_addr_state",
"billing_addr_zip",
"billing_code",
"billing_contact_id",
"bus_typeid",
"code",
"company",
"company_sizeid",
"contact_addr_addr1",
"contact_addr_addr2",
"contact_addr_addr3",
"contact_addr_addr4",
"contact_addr_city",
"contact_addr_contact_id",
"contact_addr_country",
"contact_addr_email",
"contact_addr_fax",
"contact_addr_first",
"contact_addr_id",
"contact_addr_last",
"contact_addr_middle",
"contact_addr_mobile",
"contact_addr_phone",
"contact_addr_salutation",
"contact_addr_state",
"contact_addr_zip",
"cost_centerid",
"created",
"createtime",
"currency",
"customer_locationid",
"externalid",
"filterset_ids",
"hear_aboutid",
"hierarchy_node_ids",
"id",
"invoice_layoutid",
"invoice_prefix",
"invoice_text",
"name",
"notes",
"picklist_label",
"primary_contactid",
"rate",
"shipping_contactid",
"sold_to_contactid",
"statements",
"ta_include",
"tb_approvalprocess",
"tb_approver",
"te_include",
"terms",
"territoryid",
"type",
"updated",
"updatetime",
"userid",
"web"
],
"IssueStatus": [
"active",
"created",
"id",
"name",
"updated"
],
"Slip": [
"acct_date",
"agreementid",
"billing_contactid",
"category_1id",
"category_2id",
"category_3id",
"category_4id",
"category_5id",
"categoryid",
"city",
"cost",
"cost_centerid",
"created",
"currency",
"customerid",
"customerpoid",
"date",
"decimal_hours",
"description",
"gl_code",
"hour",
"id",
"invoiceid",
"itemid",
"job_code_id",
"minute",
"notes",
"originating_id",
"payment_typeid",
"payroll_typeid",
"portfolio_projectid",
"productid",
"project_billing_ruleid",
"projectid",
"projecttask_typeid",
"projecttaskid",
"quantity",
"rate",
"ref_slipid",
"shipping_contactid",
"skip_recognition",
"slip_stageid",
"sold_to_contactid",
"tax_location_name",
"tax_rateid",
"timer_start",
"timetypeid",
"total",
"total_tax",
"total_with_tax",
"type",
"unitm",
"updated",
"userid"
],
"Customerpo_to_project": [
"active",
"created",
"customerid",
"customerpoid",
"externalid",
"id",
"projectid",
"updated"
],
"ForexInput": [
"base",
"created",
"enddate",
"future",
"past",
"rate",
"startdate",
"symbol",
"updated"
],
"Projecttask_type": [
"active",
"created",
"id",
"name",
"notes",
"picklist_label",
"suppress_notification",
"updated"
],
"Ratecard": [
"active",
"created",
"id",
"name",
"notes",
"updated"
],
"Item": [
"active",
"code",
"cost",
"cost_centerid",
"cost_is_fixed",
"created",
"currency",
"externalid",
"id",
"name",
"picklist_label",
"tax_location_id",
"taxable",
"tp_comp",
"tp_cost",
"tp_notes_required",
"tp_unit_or_total",
"type",
"unitm",
"updated"
],
"ServerStatus": [
"comment",
"count",
"created",
"date",
"id",
"updated"
],
"Projectbillingrule": [
"accounting_period_id",
"acct_date",
"acct_date_how",
"active",
"adjust_if_capped",
"agreementid",
"amount",
"assigned_user",
"backout_gst",
"cap",
"cap_hours",
"category_1id",
"category_2id",
"category_3id",
"category_4id",
"category_5id",
"category_filter",
"category_when",
"categoryid",
"cost_center_id",
"created",
"currency",
"customerid",
"customerpoid",
"daily_cap_hours",
"daily_cap_is_per_user",
"daily_cap_period",
"daily_rate_multiplier",
"daily_roll_to_next",
"description",
"end_date",
"end_milestone",
"exclude_archived_ts",
"exclude_non_billable",
"exclude_non_billable_task",
"exclude_non_reimbursable",
"id",
"item_filter",
"job_code_filter",
"markup",
"markup_category",
"markup_type",
"name",
"notes",
"percent",
"percent_how",
"position",
"product_filter",
"project_task_filter",
"projectid",
"rate_cardid",
"rate_from",
"rate_multiplier",
"repeatid",
"round_rules",
"slip_stageid",
"start_date",
"start_milestone",
"stop_if_capped",
"ticket_maximums",
"timetype_filter",
"type",
"updated",
"user_filter"
],
"LoadedCost": [
"cost",
"created",
"currency",
"current",
"customerid",
"end",
"externalid",
"id",
"lc_level",
"project_taskid",
"projectid",
"start",
"updated",
"userid"
],
"Dealschedule": [
"amount",
"created",
"date",
"dealid",
"id",
"updated"
],
"ResourceRequest": [
"booking_type_id",
"created",
"customerid",
"date_end",
"date_finalized",
"date_start",
"date_start_expected",
"external_id",
"id",
"name",
"notes",
"number",
"ownerid",
"percent_fulfilled",
"projectid",
"status",
"updated"
],
"ImportExport": [
"application",
"exported",
"externalid",
"id",
"imported",
"type"
],
"Request_item": [
"allow_vendor_substitution",
"attachmentid",
"cost",
"created",
"currency",
"customerid",
"date",
"date_fulfilled",
"exported",
"id",
"manufacturer_part",
"manufacturerid",
"name",
"notes",
"productid",
"projectid",
"purchase_itemid",
"purchaseorderid",
"purchaserequestid",
"quantity",
"quantity_fulfilled",
"request_reference_number",
"total",
"um",
"updated",
"userid",
"vendor_quote_number",
"vendor_sku",
"vendorid"
],
"Module": [
"abbr",
"enabled"
],
"Purchaserequest": [
"approval_status",
"attachmentid",
"created",
"currency",
"customerid",
"date",
"date_approved",
"date_fulfilled",
"date_required",
"date_submitted",
"description",
"exported",
"id",
"name",
"notes",
"number",
"ordered_request_items",
"prefix",
"projectid",
"quantity_fulfilled",
"request_items_fulfilled",
"total",
"total_quantity",
"total_request_items",
"updated",
"userid"
],
"CustField": [
"active",
"association",
"checked",
"created",
"decpos",
"defnow",
"description",
"divider",
"divider_text",
"force_unique",
"hidden_data_entry",
"hint",
"id",
"maxlength",
"mover",
"name",
"never_copy",
"next_seq",
"pick_source",
"picker",
"required",
"rows",
"seq",
"size",
"title",
"updated",
"url",
"userid",
"valuelist"
]
}
import urllib2
try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
try:
import simplejson as json
except ImportError:
import json
xs = '{http://www.w3.org/2001/XMLSchema}'
wsdl_url = 'http://www.openair.com/wsdl.pl?wsdl'
req = urllib2.Request(wsdl_url)
res = urllib2.urlopen(req)
tree = ET.parse(res)
root = tree.getroot()
library = {}
for complextype in root.iter(xs + 'complexType'):
complexname = complextype.get('name')
if complexname[:2] == 'oa':
fields = []
for element in complextype.iter(xs + 'element'):
field = element.get('name')
if not field == 'attributes':
fields.append(field)
fields.sort()
library[complexname[2:]] = fields
json_data = json.dumps(library, indent=2, sort_keys=True)
with open('openair_wsdl.json', 'wb') as f:
json.dump(library, f)
以上是关于python OA:将OpenAir WSDL解析为JSON的主要内容,如果未能解决你的问题,请参考以下文章
无法使用jaxb2-maven-plugin将WSDL解析为不同的包