473,396 Members | 1,866 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,396 software developers and data experts.

Strong Typed Dataset

I currently have a method with the following declaration:

[WebMethod()]
public NGApiStatus CreateItems
(
NGItems items,
string strBatchName,
bool bCreateBatch,
bool bFailifBatchExists,
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 bFailifBatchExists,
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="CreateItems">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="items">
<s:complexType>
<s:sequence>
<s:any namespace="http://convergencedata.net/NGItems.xsd" />
</s:sequence>
</s:complexType>
</s:element>
<s:element minOccurs="0" maxOccurs="1" name="strBatchName"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="bCreateBatch"
type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="bFailifBatchExists"
type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="strCategPath"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
Feb 2 '07 #1
0 1204

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

Similar topics

0
by: Nathan Ernst | last post by:
I have a pretty simple XSD schema: ******************************************** * XSD SCHEMA ******************************************** <?xml version="1.0" encoding="utf-8" ?> <xs:schema...
3
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
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) ...
3
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...
2
by: Nijazi Halimaji | last post by:
Hi How can I create (and use) a strong typed dataset? Thanks for every help! Nijazi Halimaji
3
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...
1
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...
3
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...
1
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...
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: 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
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
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
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
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...
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...

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.