473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2124
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.