aspose file tools
The moose likes Web Services and the fly likes how to define SSN format in WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "how to define SSN format in WSDL" Watch "how to define SSN format in WSDL" New topic
Author

how to define SSN format in WSDL

grace smith
Greenhorn

Joined: Jun 14, 2005
Posts: 23
Hello,

I am using Websphere java to wsdl tool generate the wsdl for a webservice.
I am wondering where and how should I define the element part constraits - say the SSN should be in format of 9 digit number without any '-'.

Should the WSDL schema define this or should WSDL define some fault part if client passed in wrong format SSN?

here is my part of my WSDL, how should I define the constraints for SSN?

<element name="findBySSN">
<complexType>
<sequence>
<element name="SSN" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to define SSN format in WSDL
 
Similar Threads
Inhertiting complex type in XML Schema
web service function parameter format limitation and validatioin question
what is the good/standard way to inform client the parameter restriction/fomat
question on client side soap binding stub on wsdl complext type element
Defining Header type in WSDL