(apologies if this post is duplicated)

I have a problem because yaws_soap_lib uses a single prefix even when the WSDL specifies multiple namespaces.  My WSDL definitions section contains these lines:

    xmlns:ct="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.02"
    xmlns:psr="urn:iso:std:iso:20022:tech:xsd:pacs.002.001.03">

I import two XSDs thus:

 <types>
   <xsd:schema elementFormDefault="qualified"  targetNamespace="http://www.acme.com/ISO20022Server/schemas">
      <xsd:import namespace="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.02"
                  schemaLocation="../priv/pacs.008.001.02.xsd" />
   </xsd:schema>
   <xsd:schema elementFormDefault="qualified"  targetNamespace="http://www.acme.com/ISO20022Server/schemas">
      <xsd:import namespace="urn:iso:std:iso:20022:tech:xsd:pacs.002.001.03"
                  schemaLocation="../priv/pacs.002.001.03.xsd" />
   </xsd:schema>
 </types>

Unfortunately the XSDs (which are defined by an external organisation, so I can't change them) contain duplicate element names thus:

<xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.02" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.02">
    <xs:element name="Document" type="Document"/>

<xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:pacs.002.001.03" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:pacs.002.001.03">
    <xs:element name="Document" type="Document"/>

This results in duplicate definitions in the WSDL model, which is reflected in the hrl thus:

-record('P:Document', {anyAttribs, 'FIToFICstmrCdtTrf'}).
-record('P:Document', {anyAttribs, 'FIToFIPmtStsRpt'}).

Ideally I would like the prefix to reflect the namespace, so I would get:

-record('ct:Document', {anyAttribs, 'FIToFICstmrCdtTrf'}).
-record('psr:Document', {anyAttribs, 'FIToFIPmtStsRpt'}).

Is there an easy way to achieve this?  Or a clean work-around?

Thanks in advance
Tom.