|
From: Stenlund O. <Oll...@vt...> - 2010-02-23 13:59:17
|
Hello, I think the class that should be serialized is called token, which is returned by Bimserver's createAnonymousToken (or login) web service. But the token class (also UserException referred in the error message) is already declared in the reference.cs file, which is autogenerated when the web service reference is created in Visual studio. So I'm not sure if I should edit the autogenerated code. Also there is already used XmlSchemaProviderAttribute for UserException. Then it could be that I'm not using the web service correctly. This is what I simply call in my application: BimServiceReference.token bimToken = bim.createAnonymousToken(); Olli ________________________________ From: Helm, P.W. (Pim) van den [mailto:pim...@tn...] Sent: 19. helmikuuta 2010 10:29 To: Stenlund Olli Cc: bim...@li... Subject: RE: [Bimserver-users] Bimserver web services Hi Olli, The problem you run into is not an issue related to the BimServer itself, but the C# xml-serializer (I presume you are using to create the xml messages). If seems to me your have not set an xml-schema before you attempt to create or receive a message. If you have set the xml-schema and the error occurs after the request, I supect the xml-schema is not valid for received messages. If you have not set the xml-schema, google-ing the error message gave me some links addressing similar issues. They might help you further. Otherwize I would advice you to ask the same question on a C# serializer forum. Kind regards, Pim ---------- Forwarded message ---------- From: Stenlund Olli <Oll...@vt...<mailto:Oll...@vt...>> Date: Thu, Feb 18, 2010 at 12:24 PM Subject: [Bimserver-users] Bimserver web services To: "bim...@li...<mailto:bim...@li...>" <bim...@li...<mailto:bim...@li...>> Hello, I tried to call the createAnonymousToken and login web services from my C# application, but I get this exception: "Only XmlRoot attribute may be specified for the type BimServiceReference.UserException. Please use XmlSchemaProviderAttribute to specify schema type." Does anyone know how to solve this problem? I use Visual Studio 2008 and have created a service reference to my Bimserver. Olli ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Bimserver-users mailing list Bim...@li...<mailto:Bim...@li...> https://lists.sourceforge.net/lists/listinfo/bimserver-users This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html |