BizTalk Server Orchestration - Error when using namespace declaration on xsi:schemaLocation

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > December 2004 > Error when using namespace declaration on xsi:schemaLocation





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Error when using namespace declaration on xsi:schemaLocation
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)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com