• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL error mytype is referenced but not defined  RSS feed

 
Phoebe Song
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.


 
Rob Spoor
Sheriff
Posts: 21116
85
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!