The moose likes Web Services and the fly likes error in wsdl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "error in wsdl" Watch "error in wsdl" New topic
Author

error in wsdl

ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83

Hello,


I have created wsdl file and imported xsd int it,
I am getting an error inside the wsdl file,Please let me know,Its giving as invalid value getLogin element declaration must define valid value in schema,

Please reply,




//WSDL

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
You had the following errors in your WSDL:
1. One "/" too much at the end of xmlns:tns="http://www.example.org/userlogin"
2. Failed to declare a namespace prefix for the target namespace.
Note that the target namespaces of the XML schema and the WSDL are different.
3. Wrong namespace prefix at several places.

The corrected WSDL looks like this:


Finally, please use code tags the next time when posting XML schemas, WSDL documents or code!
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hi,

Thanks for the reply,

But It would be better if you check xsd file and wsdl file once, also as I am getting errors in wsdl for xsd "referenced file contains an error" My requirement is I have to pass userobject as a parameter in wsdl and return will be validation sucess kind of string message,


I have validated the xsd in eclipse as project->validate and there its not getting any error but in the import statement


Please help,

Thanks,
Ujwwala
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hi,

As corrected the wsdl I tried with it but still I am getting the errors in wsdl,

Please Reply,

Thanks,
Ujwwala
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hi,

The problem is solved some namespace conflict was there,
Thanks,
Ujwwala
 
wood burning stoves
 
subject: error in wsdl