Re: [oXygen-user] Problem Debugging WSDL

Hello Matthew, Things should be pretty simple. Let's say the target namespace of the schema in which the simple type is defined is : "http://test". Then, in the wsdl file in the "types" section you should have something like this: "<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://test"> <include schemaLocation="a.xsd"/> </schema>" The type will then be used like: " <message name="someMessage"> <part name="from" type="test:guidtype"/> </message>" Of course you need to add the attribute ' xmlns:test="http://test" ' to the "definitions" tag. There are other ways to use the types defined in the schema but this seems to me the easiest one. If you are looking for something else maybe some more details about what you are trying to achieve and the way in which you try to include/import the schema file in the wsdl may be useful. Also maybe some code snippets from the wsdl file would be useful. Regards, Radu. Matthew Riches wrote:
Thanks, that's solved a lot of banging heads on keyboards...
Another quick question if I may?
I have a type defined in an xsd such that [code] <xs:simpleType name="guidtype"> <xs:restriction base="xs:string" > <xs:length value="34" /> </xs:restriction> </xs:simpleType>
And the file is imported into my wsdl (I have checked all the case this time)
But no matter what, I get an error message saying that it cannot solve type guidtype from namespace <the namespace> to a local definition.
I am certain that this is not a capitalisation issue, so any more hints on how to deal with this message would be appreciated. Matt
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
participants (1)
-
Radu Coravu