Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Mapping of type string in WSDL

Reply
Thread Tools

Mapping of type string in WSDL

 
 
oliver.wulff@zurich.ch
Guest
Posts: n/a
 
      05-06-2004
Hi

I've got the following webmethod:

[WebMethod]
public string Hello( string name)
{
return "Hello " + name;
}

This webmethod is mapped to the following element definition:
<s:element name="Hello">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:string"
/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="HelloResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloResult"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>

I've got a problem with the minOccurs and maxOccurs. That looks like an
array with one element.

How can I influence the WSDL generation to have the following element
definition:
<s:element name="Hello">
<s:complexType>
<s:sequence>
<s:element name="name" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="HelloResponse">
<s:complexType>
<s:sequence>
<s:element name="HelloResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>

I hope that this is possible. Thanks for any help!

Oliver
 
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
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57