473,666 Members | 2,225 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strong Typed Dataset

I currently have a method with the following declaration:

[WebMethod()]
public NGApiStatus CreateItems
(
NGItems items,
string strBatchName,
bool bCreateBatch,
bool bFailifBatchExi sts,
string strCategPath
)

Where NGItems is a strong typed dataset. I am attempting to add a Java safe
equivalent method that looks like this:

[WebMethod()]
public NGApiStatus CreateItemsJ
(
string items,
string strBatchName,
bool bCreateBatch,
bool bFailifBatchExi sts,
string strCategPath
)

Where items is the xml that conforms to the xsd of NGItems. Is there a way
to get items to generate wsdl that enforces the xsd of NGItems for the string
parameter items? CreateItems does so however as anybody who has done interop
knows the dataset doesn't serialize over as the xsd data it serializes over
in a diffgram format.

The reason I'm asking is that on the Java side the client proxy generating
tool generates JAXB wrapper classes for the datasets and it would be nice to
still use that object in this case. I just don't know how to get the .NET
web services to still generate wsdl that looks like this for the parameter:

<s:element name="CreateIte ms">
<s:complexTyp e>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="items">
<s:complexTyp e>
<s:sequence>
<s:any namespace="http ://convergencedata .net/NGItems.xsd" />
</s:sequence>
</s:complexType>
</s:element>
<s:element minOccurs="0" maxOccurs="1" name="strBatchN ame"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="bCreateBa tch"
type="s:boolean " />
<s:element minOccurs="1" maxOccurs="1" name="bFailifBa tchExists"
type="s:boolean " />
<s:element minOccurs="0" maxOccurs="1" name="strCategP ath"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
Feb 2 '07 #1
0 1216

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

Similar topics

0
1367
by: Nathan Ernst | last post by:
I have a pretty simple XSD schema: ******************************************** * XSD SCHEMA ******************************************** <?xml version="1.0" encoding="utf-8" ?> <xs:schema id="PageHitStatistics" targetNamespace="urn:PageHitStatistics" elementFormDefault="qualified" xmlns="urn:PageHitStatistics"
3
1854
by: paul.phillips | last post by:
Hi I have the following table (*=Primary Key): tblNews: fldID (Indentity) fldSite int * fldPageID int * fldSection int * fldContent
3
2433
by: Chris Thunell | last post by:
I have 2 forms, on 1 form i use the wizards to create a strong typed dataset with tables from an SQL database... and from that i can do stuff like: me.daEmployee.fill(me.dataset11.tblEmployee) plus some 3rd party controls can see it the datatables etc etc. Is there anyway when i open the second form that this information that has already been loaded into my in-memory dataset be available on all my other forms... and still be strong...
3
1249
by: Steve Amey | last post by:
Hi all I have created a strong DataSet using Visual Studio. I have been in to the DataSet's vb file to have a look at the code and see if I can add things to it. What I'm after is to create a new method on every DataTable in the DataSet, this method will be called SelectToTable, as I have the need to select rows in a current table into another table, and the Select method only returns an array of data rows. However, any changes that I...
2
959
by: Nijazi Halimaji | last post by:
Hi How can I create (and use) a strong typed dataset? Thanks for every help! Nijazi Halimaji
3
2750
by: Freeon | last post by:
Hi, I am looking for a way to sort a strong typed dataset. It would seem the most straightforward way is to use a dataview. The only problem is when I use the dataview I seem to loose the strong typed properties from my original dataset Anyone that can point me to an example of how to sort my dataset and maintain the use of my typed properties would be greatly appreciated Thank, Freeon
1
2419
by: Steve | last post by:
I have a windows CE application, talking to a C# WebService. In the WebService project I have created a dataset (dsJobList), and there is a web method in there which returns a fully loaded dsJobList dataset to the client, which in this case is a windows CE device. In the code for my application on the WinCE device, I have added a Web Reference to this WebService. Once I have added it I can see the .disco, the ..wsdl and a dsJobList.xsd...
3
3848
by: Robert Bravery | last post by:
HI all, I have an xml file, I need to be able to read the data into strong typed dataset for further use in my application Can someone point me to documentation as to how I can do this. I have absolutley no idea where to start. Robert
1
960
by: fsx | last post by:
I have a class that accepts objects via an add method and then stores them in a list of objects: public class tagBuilder private _store as Dictionary(Of String, Object) public sub Add(tagName as string, tagValue as object) _store.add(tagName, tagValue) end sub
0
8356
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
8550
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
8639
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...
0
7385
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
6192
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
5663
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();...
1
2769
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
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1772
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.