vb.net 2005 web service asp.net
The hierarchy of the generated wsdl (xml) has too many elements. Here is the code I started with...
which generates xml like...Code:Public Class SalesID_Role Public SALESID As String Public VALID_ROLES() As String End Class
What I want is something like...HTML Code:<SALESID>123456</SALESID> <VALID_ROLES> <string>AM</string> <string>MM</string> </VALID_ROLES>
----------------------------------------------------------------HTML Code:<SALESID>123456</SALESID> <VALID_ROLES> <ROLE_TYPE>AM</ROLE_TYPE> <ROLE_TYPE>MM</ROLE_TYPE> </VALID_ROLES>
So, I do this...
and end up with xml in this format...Code:Public Class SalesID_Role_Office Public SALESID As String Public VALID_ROLES() As ROLE_TYPES End Class Public Class ROLE_TYPES Public ROLE_TYPE As String End Class
I don't want the <ROLE_TYPES> elements. It is harder to read.HTML Code:<SALESID>123456</SALESID> <VALID_ROLES> <ROLE_TYPES> <ROLE_TYPE>AM</ROLE_TYPE> </ROLE_TYPES> <ROLE_TYPES> <ROLE_TYPE>MM</ROLE_TYPE> </ROLE_TYPES> </VALID_ROLES>
Any ideas? I have searched everywhere for what I would think would be a simple solution ...thanks in advance.
Sorry about all the extra white space. I had trouble formatting this this post.


LinkBack URL
About LinkBacks




Reply With Quote


Bookmarks