I´m consuming a SOAP web service, that it has namespace, some similar to:
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="http://www.company.com/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:company="http://www.company.com/"
xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://www.company.com/" version="0.1"
xmlns:cmp="http://www.company.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Number" type="cmp:NumberType" />
My problem is when .net serialize the object it does not include prefix cmp in xml. It renders <Number
.... instead of <cmp:Number
...
What can i solve it?