This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
<wsdl:message name="GetAddressRequest"> <wsdl art name="name" type="xsd:string"/> </wsdl:message> <wsdl:message name="GetAddressResponse"> <wsdl art name="address" type="listing4:Address"/> </wsdl:message>
<wsdl:message name="GetPhoneRequest"> <wsdl art name="name" type="xsd:string"/> </wsdl:message> <wsdl:message name="GetPhoneResponse"> <wsdl art name="phone" type="listing5 hone"/> </wsdl:message>
</wsdl efinitions>
However, if I import just either one of the wsdls(either listing4wsdl or listing5wsdl) and just use their types, it works fine.
Is it alright to import multiple wsdls?
regards Vasim
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
posted
0
Originally posted by Vasim Patel: listing4wsdl ------------ ... <wsdl:import namespace="urn:listing5" location="listing5wsdl"/> ... "The WSDL is not semantically valid: Impossible to compile the schemas referenced by the WSDL"
... <wsdl:import namespace="urn:listing4" location="listing4wsdl"/> <wsdl:import namespace="urn:listing5" location="listing5wsdl"/> ... However, if I import just either one of the wsdls(either listing4wsdl or listing5wsdl) and just use their types, it works fine.
Is it alright to import multiple wsdls?
Yes, you can import multiple WSDLs - however my guess is that importing "listing5" causes the problem because "listing4" already imports "listing5". Try getting it to work by just importing "listing4". [ February 08, 2006: Message edited by: Peer Reynders ]
I used XMLSpy and no error when I did "validate file".
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
posted
0
Originally posted by wise owen: I used XMLSpy and no error when I did "validate file".
Would "validating" the file actually perform the import to detect the "duplicate" import in the imported definition?
Anyway I didn't say it was illegal - it may be or it may not be - I don't know. Many tools have allowed illegal syntax before and croaked on perfectly legal syntax - we still have to work with them.
Vasim Patel
Ranch Hand
Joined: Apr 29, 2004
Posts: 87
posted
0
Thanks Peer, Wise,
As Peer suggested, i tried importing only urn:listing4, which in turn imports urn:listing5. It works fine now.