Error when using namespace declaration on xsi:schemaLocation
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Error when using namespace declaration on xsi:schemaLocation




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Error when using namespace declaration on xsi:schemaLocation  
John Anderson (J & A Computers)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-15-04 11: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)





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:05 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register