soap-bin-script

Generate deterministic PHP SOAP bin scripts for Hyper-V operations.

6|Updated Jun 8, 2017
One-click install
npx skills add https://github.com/myadmin-plugins/hyperv-vps --skill soap-bin-script
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: soap-bin-script
Source: https://github.com/myadmin-plugins/hyperv-vps/tree/main/.claude/skills/soap-bin-script
Command: npx skills add https://github.com/myadmin-plugins/hyperv-vps --skill soap-bin-script

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps automation teams rapidly generate boilerplate PHP scripts in bin/ for deterministic Hyper-V SOAP operations, ensuring consistency and reducing repetitive boilerplate work.

Core Features & Use Cases

  • Generates a complete bin/ boilerplate script for a SOAP operation, including the fixed ini_set block, argc checks, get_service_master() integration, SoapClient instantiation, and exception handling.
  • Enforces critical safety and correctness rules from the Step 4 guidelines (no PDO usage, hardcoded Administrator user, and correct result handling based on operation type).
  • Use Case: When you need a new SOAP command like GetVMState or Reboot exposed via the Hyper-V SOAP service, this skill will produce a ready-to-run PHP script following the project conventions.

Quick Start

Create a new SOAP bin script for a Hyper-V method by providing the script name and required parameters.

Frequently Asked Questions about soap-bin-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PHP boilerplate for Hyper-V SOAP operations?

Generating PHP boilerplate for Hyper-V SOAP operations requires a standardized script template that includes fixed ini_set blocks, argc checks, and proper SoapClient instantiation. This enforces deterministic Hyper-V host integration and standardized method calls while reducing repetitive setup code.

What is a SOAP bin script for Hyper-V integration?

A SOAP bin script for Hyper-V integration is a deterministic PHP executable placed in the bin directory that automates host lookup and method calls. It enforces consistent boilerplate, including SoapClient instantiation, parameter mappings, and exception handling for reliable service operations.

Do I need PDO for PHP scripts executing Hyper-V SOAP service commands?

No, you do not need PDO for PHP scripts executing Hyper-V SOAP service commands. The required boilerplate explicitly prohibits PDO usage to ensure safety, relying instead on hardcoded Administrator credentials and correct result handling based on the specific Hyper-V operation type.

How do I add a new SOAP command like GetVMState to a Hyper-V service?

To add a new SOAP command like GetVMState, you create a bin script with the correct method name and required parameters. The automation enforces the fixed ini_set block, integrates get_service_master(), and handles the SoapClient results according to project conventions.

What are the constraints when automating Hyper-V SOAP client instantiation in PHP?

Constraints when automating Hyper-V SOAP client instantiation in PHP include enforcing a fixed ini_set block, performing strict argc checks, and avoiding PDO usage. Scripts must use a hardcoded Administrator user and apply correct parameter mappings for deterministic execution.

Can I use this automation to standardize exception handling for Hyper-V SOAP method calls?

Yes, you can use this automation to standardize exception handling for Hyper-V SOAP method calls. The generated boilerplate script enforces consistent error handling and correct result processing, ensuring standardized and safe execution of operations like Reboot or GetVMState.