473,856 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
+ 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 interoperabilit y 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.Seri alization.XmlEl ementAttribute 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.Seri alization.XmlTy peAttribute(Nam espace="urn:Foo ")]
public class transmission {

/// <remarks/>

/*************** * .Net has problems with this declaration
*************** ***/
[System.Xml.Seri alization.XmlEl ementAttribute( Form=System.Xml .Schema.XmlSche maForm.Unqualif ied, 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 2163
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 XmlElementAttri bute 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: AcToHDqalsHFgIF wTZiVyODuNT+JNw ==
X-WBNR-Posting-Host: 212.144.115.118
From: =?Utf-8?B?VGhvbWFz?= <Th****@discuss ions.microsoft. com>
Subject: WSDL problem with .Net mobile
Date: Wed, 22 Dec 2004 03:49:01 -0800
Lines: 29
Message-ID: <07************ *************** *******@microso ft.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.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8261
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi,
I have written a Web Service using Axis C++ Server and a .Net Windows
client. I considered every interoperabilit y 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.Seri alization.XmlEl ementAttribute 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.Seri alization.XmlTy peAttribute(Nam espace="urn:Foo ")]
public class transmission {

/// <remarks/>

/*************** * .Net has problems with this declaration
*************** ***/
[System.Xml.Seri alization.XmlEl ementAttribute( Form=System.Xml .Schema.XmlSche
maForm.Unqualif ied, 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
8715
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 follow. Also, it appears to be more compact. Are IDL and WSDL equally powerful in expressing complex data types, and describing inheritance and association relationships? What would be the most compelling reasons to choose one over the other?
0
1573
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> 2. <SOAP-ENV:Body><Tag2><Tag3>It is also ok</Tag3></Tag2></SOAP-ENV:Body> The question is, if I write the wsdl as below, it defines the
1
9910
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 more operations were skipped. Warnings were encountered. Review generated source comments for more details.
0
2141
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 file which contains multiple formats of send and receive mesages. On reading books on webservice it was says to design an interface (ie design the xsd , wsdl, then run wsdl.exe to generate interface.vb class) Since my xsd is very complex if I have...
0
273
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 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:...
0
1694
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 that if i generate a proxy from the wsdl in websphere, i can't get the databean if refer the proxy's url my tomcat's (i simply recive null). this is my tomcats's wsdl:
6
7214
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, but I am confused how a tcp server will do the same. plzzzzzzzzz reply :((!! thanks:) in advance
1
5055
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 code from WSDL.exe, the "applicationList" object is not a array or "application", which is what it should be, correct? Thanks for the help. <?xml version="1.0" encoding="utf-8" ?> <xs:schema targetNamespace="http://me.com/xml/xsd/AppSec1.xsd"
9
11942
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: CODEGEN: The operation binding 'getAvaluos' from namespace 'urn:m15.AvaluosPortType' was ignored. The combination of style=rpc with use=literal is not supported.
0
9765
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10795
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9536
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7934
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7098
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5962
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4581
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 we have to send another system
2
4177
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.