Thank you for your help Junaid, but I still think that we have found a bug. You're right, specifying elementFormDefault="qualified" gives me the output I want. However, I think the SOAP generated when elementFormDefault="unqualified" (or is unspecified) is wrong. I think that specifying xmlns="" is different than leaving out an XML namespace altogether. I think if elementFormDefault="unqualified" then the SOAP should be as shown below
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <capability> <controlNum>104-41022207</controlNum> <!-- other attributes here --> <poc> <emailAddress>[EMAIL PROTECTED]</emailAddress> <!-- other attributes here --> </poc> </capability> </soapenv:Body> </soapenv:Envelope> Can an XML Schema expert weigh in here? Thanks, Matt
