473,473 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

WSDL problem with .Net mobile

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(Namespac e="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.
Nov 23 '05 #1
1 2126
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...parisonswithne
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?= <Th****@discussions.microsoft.com>
Subject: WSDL problem with .Net mobile
Date: Wed, 22 Dec 2004 03:49:01 -0800
Lines: 29
Message-ID: <07**********************************@microsoft.co m>
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(Namespac e="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.

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Generic Usenet Account | last post by:
Does anyone have an opinion on how IDL and WSDL compare to each other? Are they equally powerful in their "expressive power"? Sometimes it appears to me that IDL is a little easier for humans to...
0
by: Sonna Nach | last post by:
Hi All, I am writing a doc/lit web services, in which the elements under SOAPBody is unknown. That is, these two message are acceptable. 1. <SOAP-ENV:Body><Tag1>It is ok</Tag1></SOAP-ENV:Body>...
1
by: ffhansix | last post by:
Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file command i recieve an error: Warning: one or...
0
by: saish | last post by:
Hello I am new to vb.net webservice. My requirement is to design a VB.net web service which will send and receive xml documents. The xml document send and received would be a very complex .xsd...
0
by: Thomas | last post by:
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...
0
by: Elhanan | last post by:
hi.. i have a small Web Service which is consumed by dotnet application the webservice is located in 2 places. the first is my local tomcat, and the second is in websphere server. problems is...
6
by: Naveed Anwar | last post by:
how a tcp server running on given uri like "soap:tcp://localhost:8080/MyReceiver" will return wsdl. In normal web service case which runs on http returns wsdl by simply appending '?wsdl' in url,...
1
by: Mike Logan | last post by:
I have a schema that defines my messages and objects. I then have a WSDL that defines the web services. I have my sample XSD, sample WSDL, and the code generated from WSDL.exe. In the generated...
9
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: ...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.