[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Looking for an example of importing an xsd into a wsdl

  • From: "Bret Foreman" <bret@s...>
  • To: <xml-dev@l...>
  • Date: Fri, 9 Feb 2007 14:35:14 -0800

Looking for an example of importing an xsd into a wsdl
I'm looking for an example of importing an xsd schema into a wsdl. My
current attempt is failing WS-I validation with a namespace error. This is
my first attempt to import an xsd so I may be making a basic syntax error
somewhere. Can anyone point out what is probably a really basic error?
Here's what I'm doing:

xsd file:

<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns="http://www.example.org"
            targetNamespace="http://www.example.org"
            elementFormDefault="qualified">
  <xsd:complexType name="sigRequestMessage">
    <xsd:sequence>
      <xsd:element name="publicKey" type="string"/>
      <xsd:element name="privateKey" type="string"/>
    </xsd:sequence>
  </xsd:complexType>
  <xsd:complexType name="complexType1">
    <xsd:sequence>
      <xsd:element name="Signature" type="string"/>
      <xsd:element name="expiration" type="timeDate"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>

import section of wsdl:

  <types>
    <xsd:schema>
      <xsd:import id="Messages.xsd"
                  schemaLocation="../../XSDDocument/Messages.xsd"
                  namespace="messages"/>
    </xsd:schema>
  </types>
  <message name="ReturnSignature">
    <part name="SigAndExp" type="messages:SigReplyMessage"/>
  </message>
  <message name="RequestSignature">
    <part name="Keys" type="messages:SigRequestMessage"/>
  </message>

The WS-I test failes with a message:

Unable to determine namespace of 'messages:SigReplyMessage'

Thanks,
Bret


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.