473,795 Members | 3,481 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 2157
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
8703
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
1570
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
9906
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
2133
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
1692
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
7211
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
5053
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
11938
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
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10437
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10214
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10164
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
10001
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7538
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
6780
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
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.