# Webservice send to simpletype and enumeration

**URL:** <https://forum.kirupa.com/t/webservice-send-to-simpletype-and-enumeration/206520>\
**Category:** flash\
**Created:** [November 9, 2006, 12:13am UTC](https://forum.kirupa.com/t/webservice-send-to-simpletype-and-enumeration/206520 "2006-11-09T00:13:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sttuffy](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sttuffy](https://forum.kirupa.com/u/sttuffy)\
**Post date:** [November 9, 2006, 12:13am UTC](https://forum.kirupa.com/t/webservice-send-to-simpletype-and-enumeration/206520/1 "2006-11-09T00:13:49Z")

</div>

I have a problem that I hope has a simple answer, but I cannot for the life of me figure it out, hopefully someone out there can help me!

I am accessing the following section of a wsdl:

```auto
<s:element name="Login">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="sUserName" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="sUserPassword" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="enIdentifier" type="tns:EnLoginIdentifiers"/>
</s:sequence>
</s:complexType>
</s:element>
<s:simpleType name="EnLoginIdentifiers">
<s:restriction base="s:string">
<s:enumeration value="User"/>
<s:enumeration value="Manager"/>
</s:restriction>
</s:simpleType>

```

So I make the call with:

```auto
myWS.Login("userIDgoeshere","passwordgoeshere", ???)

```

I am at a loss for what to put for ???, if it were a complex data type, I could use a dto to send the correct value over, but with this setup I am stumped. (And no, I can’t just change the WSDL, it’s out of my hands, unfortunately)

If anyone could give an example how to make this work I would be very grateful, and if there is any other information I can give to clarify my issue, please let me know!

Thanks in advance for any help!:flower:
