• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to define SSN format in WSDL

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic