• 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

Import Schmea vs elements in wsdl

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've seen two ways of doing this. You can import schema's and not have any element tags defined directly in the wsdl or you can define all your element tages between the schema tags. My questions is, do these cause different behaviors when the wsdl is used to build a cosuming client? In other words, if I have an operation called createForm defined in my wsdl, so I want an operation in the generated code to produce an operation method with a footprint like: createForm(String, String, String) Name, Address, Phone

To clairfy the two choices of wsdl construction, this is
<element name="resolveIncident">
<complexType>
<sequence>
<element name="name" type="xsd:String"/>
<element name="address" type="xsd:String"/>
<element name="phone" nillable="true" type="xsd:string"/>
</complexType>
</element>

or

<xsd:schema>
<!xsd:import namespace="http://www.forms.com" schemaLocation="http://10.1.1.1:80/formsweb/schema/service/NEWFORMService.xsd"/>
</xsd:schema>

where the schema would contain the elements above.

 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Extracting the type definitions to a separate XML schema document would be considered refactoring, as far as I know.
It should have no impact on the users of the WSDL document, as far as generation of client artifacts (code and interfaces etc) is concerned.
Best wishes!
 
We're all out of roofs. But we still have tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic