Forum Discussion

rpattnaik's avatar
12 years ago

Create a default Content button behaviour

Hi,

I was using the create default button to generate a sample xml from referred xsd in SOAP UI 4.5.1 free version
I noticed that if i refer to an xsd with namespaces it work.But if i refer to the xsd EnrollRequest.xsd placed inside loyalty folder it does not work.The button is disabled.
As i the interface didnt allow me to attach xsd i am giving the content below.

<grammars>
<include href="./loyalty/EnrollRequest.xsd"/>
</grammars>

<request>
<representation mediaType="application/xml" element="EnrollRequest"/>
</request>

Content of EnrollRequest.xsd

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="EnrollRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="Header">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="locale"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="HHonorsEnroll">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="Title"/>
<xs:element type="xs:string" name="FirstName"/>
<xs:element type="xs:string" name="LastName"/>
<xs:element type="xs:string" name="Gender"/>
<xs:element type="xs:string" name="PhoneType"/>
<xs:element type="xs:long" name="PhoneNumber"/>
<xs:element type="xs:string" name="EmailAddress"/>
<xs:element type="xs:string" name="EmailType"/>
<xs:element name="GuestAddress">
<xs:complexType>
<xs:sequence>
<xs:element name="AddressHeader">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="AddressType"/>
<xs:element type="xs:string" name="AddressPreferredFlag"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="xs:string" name="AddressLine1"/>
<xs:element type="xs:string" name="AddressLine2"/>
<xs:element type="xs:string" name="City"/>
<xs:element type="xs:string" name="Region"/>
<xs:element type="xs:short" name="PostalCode"/>
<xs:element type="xs:string" name="CountryCode"/>
<xs:element type="xs:string" name="AddressType"/>
<xs:element type="xs:string" name="AddressPreferredFlag"/>
<xs:element type="xs:string" name="Company"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="xs:string" name="PreferredLanguage"/>
<xs:element type="xs:string" name="AgreeOver18YearsFlag"/>
<xs:element type="xs:string" name="AgreeOver20YearsFlag"/>
<xs:element type="xs:string" name="AgreeTermsAndConditionsFlag"/>
<xs:element type="xs:string" name="AgreeSeparateTermsAndConditionsFlag"/>
<xs:element type="xs:string" name="AgreeSeparateExpirationPolicyFlag"/>
<xs:element type="xs:string" name="AgreeSeparatePrivacyPolicyFlag"/>
<xs:element type="xs:string" name="AgreeMarketingOptInFlag"/>
<xs:element type="xs:string" name="AgreeGermanyOptInFlag"/>
<xs:element type="xs:string" name="AgreeItaly3rdPartiesOptInFlag"/>
<xs:element type="xs:string" name="AgreeGermany3rdPartiesOptInFlag"/>
<xs:element type="xs:string" name="AgreeSelect3rdPartiesOptOutFlag"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>


Any help on this is appreciated
Thanks,
Rosalin
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    Sorry, Would you please be clear what your are look for? What do you mean by
    "Create a default Content button behaviour"