ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error while importing WSDL's or XSD's

Post new topic  Reply to topic
 Error while importing WSDL's or XSD's « View previous topic :: View next topic » 
Author Message
Vgowda
PostPosted: Fri Jan 13, 2012 5:11 am    Post subject: Error while importing WSDL's or XSD's Reply with quote

Acolyte

Joined: 11 Dec 2007
Posts: 61
Location: Bengaluru

Hi,
I am using WMB Toolkit V 6.1.0.3, trying to create MF using Start from WSDL and/or XSD's. In that after importing WSDL's, the required XSD's are converted to MXSD files, but i got few errors in mxsd's as mentioned below.

Quote:
Type restriction error 'http://www.abc.com/abc/1#CustKeys_Type' (content type incompatible with the content type of the baseType): element declaration 'CustId (Identifier_Type)' does not exist in the base type.


Any will be appreciated.
_________________
Regards
Vinay
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jan 13, 2012 5:18 am    Post subject: Re: Error while importing WSDL's or XSD's Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Vgowda wrote:
Any will be appreciated.


Apply some maintenance to your Toolkit.

Make sure that the declaration in question is accessable.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 13, 2012 5:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

sounds like you're missing an import or include. or the path is not correct.
Back to top
View user's profile Send private message
Vgowda
PostPosted: Fri Jan 13, 2012 5:28 am    Post subject: Reply with quote

Acolyte

Joined: 11 Dec 2007
Posts: 61
Location: Bengaluru

right now i am downloading FP 8 for the same. The declaration is accessable, it has created the include for the same.
_________________
Regards
Vinay
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jan 13, 2012 5:31 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Vgowda wrote:
it has created the include for the same.


What it has created the include?

Never mind if there's an import or an include in the XSD / WSDL, is it accessable as my most worthy associate has intimated?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Jan 13, 2012 6:12 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Check that the paths of any include or import xsd's do actually exist.

If find that it is sometimes easier to put everything in the one directory then I don't have to worry about relative path names being wrong.
They will get mangled when broker imports them anyway (the mangled paths depend upon the namespace) so it really does not matter that much to edit them befire importing them.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Jan 13, 2012 6:24 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
the required XSD's are converted to MXSD files


Maybe the WSDL is still referring to XSDs while toolkit converted them to MXSDs.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kimbert
PostPosted: Fri Jan 13, 2012 8:17 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Type restriction error 'http://www.abc.com/abc/1#CustKeys_Type' (content type incompatible with the content type of the baseType): element declaration 'CustId (Identifier_Type)' does not exist in the base type.
Previous comments see to be assuming that this is a problem with an xs:include or xs:import. I don't think it is.

To properly understand this error, you need to understand what an XML Schema type restriction is, and what the relevant rules are.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 13, 2012 8:22 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

kimbert wrote:
Quote:
Type restriction error 'http://www.abc.com/abc/1#CustKeys_Type' (content type incompatible with the content type of the baseType): element declaration 'CustId (Identifier_Type)' does not exist in the base type.
Previous comments see to be assuming that this is a problem with an xs:include or xs:import. I don't think it is.

I was assuming that the WSDL and XSDs being imported were already valid according to the XML Standard, and that any type restriction errors were a result of the import process rather than an inherent flaw.
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jan 13, 2012 8:27 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

mqjeff: Not an unreasonable assumption, but there seem to be quite a lot of xsds out there that break the rules.

Vgowda: I would need to see the actual type definitions to understand the error properly.
Back to top
View user's profile Send private message
Vgowda
PostPosted: Sun Jan 15, 2012 9:49 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Dec 2007
Posts: 61
Location: Bengaluru

Vitor :Applying FP 8 din't work, its the same error.

kimbert: The XSD's and WSDL's are successfully validated in ALTOVA XML Spy before it is imported into WMB. After Importing the Files into toolkit, all the XSD's are converted into mxsd's and files are placed in the same folder.

All the paths are appropriate and WSDL's are updated to refer MXSD's only.
_________________
Regards
Vinay
Back to top
View user's profile Send private message
Vgowda
PostPosted: Sun Jan 15, 2012 10:45 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Dec 2007
Posts: 61
Location: Bengaluru

I deleted and re-created the complex type using Message Set editor, now i dont have any errors.

Weird but it solved the issue.
_________________
Regards
Vinay
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error while importing WSDL's or XSD's
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.