如何基于WSDL自动分配XML数据

I am currently working on a framework regarding SOAP webservices in php, and im looking to make a system which automatically tries to create and assign the XML given a WSDL document. I am using the native php library for the soap services.

The webservices which I work with all have many of the same XML fields, but with different names.(Email/e-mail, password/pw, etc) My code today looks like this:

$data = array(
    "Person" => array(
        "pw" => "123",
        "username" => "foo",
        "email" => "foo@foo.com"
    )
)

I would like to replace this code with a regex based wsdl parser type of function that would search the wsdl for all the "standard" fields, and then automatically fill them for me, and return the half completed data array which I then later manually fill out. The idea behind this is to save time every time a new webservice function is added, and to prevent errors whenever an existing webservice-partner in our system changes their data-variables from forexample email to e-mail. It happens more than you would believe.

Now, would this idea be stupid with to much overhead regarding the regex function, and then in the end actually prove to be more work than to simply map every single xml namespace manually? And does there exist any functions for what im thinking of already? Like DoesThisVariableFitSomewhereInThisXML(value, namespace, wsdl)?