3013Re: How do I create an optional string?
- Sep 18, 2003Thanks for the quick reply.
Actually, I'm looking for a solution that doesn't involve a "wrapper"
element, i.e. your solution would change my original call into
where 'aFullname' is of type Fullname.
I want to have a call like:
where both params are strings, but the WSDL file will define the
input message as having an optional 2nd param.
Is this possible? Is it necessary? i.e. can I call this method w/o
the firstname and not get an error?
--- In firstname.lastname@example.org, Byrne Reese <byrne@m...> wrote:
> <xsd:complexType name="Fullname">
> <xsd:element maxOccurs="1" minOccurs="0" name="firstname"
> <xsd:element maxOccurs="1" minOccurs="0" name="lastname"
> You were on the right track in a previous method where you defined a
> data type. That is one way anyway...
> On Wed, 2003-09-17 at 22:46, gnawed wrote:
> > If I have a method that takes two strings, but only the first one
> > required:
> > setName(lastname, firstname)
> > How do I convey that in the WSDL file? Do I need to create a new
> > type? Or can I use minOccurs/maxOccurs in the <message><part>...
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> > click here
> > To unsubscribe from this group, send an email to:
> > email@example.com
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Byrne Reese <byrne@m...>
- << Previous post in topic