This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

WSDL error mytype is referenced but not defined  RSS feed

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am in a very challenging situation,  long story short, 2 methods(createNewSystem and updateSystem)  have the same datatype, but updateSystem needs sys_id filed in this datatype, but createNewSystem can't have sys_id, so my solution is to create a new datatype for this. I am new to wsdl, I'd appreciate your help. I have 2 questions:
1. Can a wsdl file have 2 datatypes with the same name? maybe in different target namespace and namespace?
2. Below is the modified wsdl file, I got an error says
"Error in generating Java from WSDL:  java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}mytype is referenced but not defined.
    java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}mytype is referenced but not defined."
what I did wrong? Thank you for your help.


 
Sheriff
Posts: 21453
96
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Line 269 references to s:mytype:

However, s is http://www.w3.org/2001/XMLSchema. I'm positive that there is no mytype in that namespace. You probably want to use s1, s2 or s3.

That said, your namespace prefixes are quite bad. Use meaningful names to remove any confusion like you had now. Use xs or xsd instead of s, and also find better values for s1, s2 and s3.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!