Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Change WSDL

Reply
Thread Tools

Change WSDL

 
 
huohaodian@gmail.com
Guest
Posts: n/a
 
      07-26-2008
Hi,

I have a sample web method return a custom UserInfo object something
like

[WebMethod]

public UserInfo GetUsers()

{ }

The UserInfo is a class like

public class UserInfo
{
private int mID = 0;
private string mLName = string.Empty;

public int ID
{
get { return mID; }
set { mID = value; }
}

public string LastName
{
get { return mLName; }
set
{ mLName = value; }
}

}

When I run the web service the asp.net automatically create wsdl
file with types for UserInfo has something like
- <s:complexType name="UserInfo">
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="ID" type="s:int" /

<s:element minOccurs="0" maxOccurs="1" name="LastName"
type="s:string" />
</s:sequence>
</s:complexType>

Is it possible to configure or to set element minOccurs ="1" for the
last name also with some other restrictions, fg max length = 12 etc ?

Any ways to setting up and use a manually created WSDL file for
a asp.net web service?

Thanks in advance.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
webservices, wsdl & xsd (schema-2-wsdl) Dark Java 1 11-14-2008 07:58 PM
wsdl.exe fails with WebMethods generated wsdl file mrnu ASP .Net Web Services 0 06-07-2004 04:51 PM
WSDL file produces useless class when imported with WSDL.exe RH ASP .Net Web Services 1 05-27-2004 09:40 PM
is the w3c's schema for wsdl and wsdl/soap binding possibly buggy ? _clb_ Chris Bedford XML 0 08-20-2003 11:52 PM
WSDL.EXE: WSDL Import Directive Stephen Edgecombe ASP .Net Web Services 0 08-13-2003 06:38 AM



Advertisments