| John Anderson (J & A Computers) 2004-12-15, 6:27 pm |
| Can you tell me why I get an error making a WebReference to my WebService
when it contains
......
[System.Xml.Serialization.XmlAttributeAttribute
(Namespace="http://www.w3.org/2001/XMLSchema-instance")]
public string schemaLocation = "http://www.opentravel.org/OTA/2003/05
HC_HotelSearchRS(2003A).xsd";
......
If I remove the namespace on the attribute then I don't get the correct
xsi:schemaLocation QName in my output; if I leave it in I get an error "The
target namespace of an attribute declaration, whether local or global, must
not match http://www.w3.org/2001/XMLSchema-instance". Looking at the support
material for XMLSchema-instance it says that schemaLocation and
noNamespaceSchemaLocation are allowed to be declared, along with type and
null.
I need the schemaLocation in there to assist my Validation, the WebService
has been working with this for months, but now I need to use it with BizTalk.
--
John Anderson (J & A Computers)
|