Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

WSDL problem with .Net mobile

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas - 22 Dec 2004 11:48 GMT
Hi,
I have written a Web Service using Axis C++ Server and a .Net Windows
client. I considered every interoperability issue between Axis and .Net(
Doc/Literal ...)
The .Net Windows client can communicate with Axis without any problems. Now
I want to use my Web Service on a windows CE pocket pc  but the problem is
that .Net don't create a client stub that can be compiled. If I try to
compile in .Net the following errors occur:
System.Xml.Serialization.XmlElementAttribute has no definition for 'Form'

This error never occured in my Windows Application. Could it be that .Net
Mobile use a thinner Web Services library?

The wsdl generated client stub:
--------------------------
[System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:Foo")]
   public class transmission {
       
       /// <remarks/>

/**************** .Net has problems with this declaration
******************/        
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]

       public string String_1;
   }

I tried to delete the phrase with Form=System.Xml... and the now .Net
compiled my Client but the fields in a Structure were NULL.
Dan Rogers - 22 Dec 2004 20:39 GMT
Hi Thomas,

I'd recommend you change the service so that is uses fully qualified
element names.  This would fix the issue you're having with empty data
coming back.  

When you use the unqualified form, all elements are placed into the
non-namespace.  While it is a valid thing to do from an XML perspective,
what it does is make for interop problems.  The default form is "qualified"
- so if you just make your XML qualified (e.g. includes the use of
namespaces) you get full compatibility on the compact framework.

The compact framework is not an exact port of the .NET framework.  You can
use the following link to get the docs that let you complare, class by
class.

http://msdn.microsoft.com/library/en-us/dv_evtuv/html/etconcomparisonswithne
tframework.asp

For the XmlElementAttribute class, the Form property only exists on the
full class library implementation.

I hope this helps

Dan Rogers
Microsoft Corporation

--------------------
Thread-Topic: WSDL problem with .Net mobile
thread-index: AcToHDqalsHFgIFwTZiVyODuNT+JNw==
X-WBNR-Posting-Host: 212.144.115.118
From: =?Utf-8?B?VGhvbWFz?= <Thomas@discussions.microsoft.com>
Subject: WSDL problem with .Net mobile
Date: Wed, 22 Dec 2004 03:49:01 -0800
Lines: 29
Message-ID: <071F2B0F-B5A8-4076-AED5-E2E06417A637@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
    charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8261
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi,
I have written a Web Service using Axis C++ Server and a .Net Windows
client. I considered every interoperability issue between Axis and .Net(
Doc/Literal ...)
The .Net Windows client can communicate with Axis without any problems. Now
I want to use my Web Service on a windows CE pocket pc  but the problem is
that .Net don't create a client stub that can be compiled. If I try to
compile in .Net the following errors occur:
System.Xml.Serialization.XmlElementAttribute has no definition for 'Form'

This error never occured in my Windows Application. Could it be that .Net
Mobile use a thinner Web Services library?

The wsdl generated client stub:
--------------------------
[System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:Foo")]
   public class transmission {
       
       /// <remarks/>

/**************** .Net has problems with this declaration
******************/        
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSche
maForm.Unqualified, IsNullable=true)]

       public string String_1;
   }

I tried to delete the phrase with Form=System.Xml... and the now .Net
compiled my Client but the fields in a Structure were NULL.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.