I want to call a .NET Web service from my Java client developed in JWSDP during the building with ANT and I received the following error:
error: model error: invalid entity name: "schema" (in namespace "https://www.w3.org/2001/XMLSchema")
What should I do to remove this error?
I can't definitively answer this question without taking a look at your WSDL file, but I'll take a guess. Are you, by chance, using the
I recommend that you change your .NET service interface. As an interoperability best practice, you should never expose a language-specific collection class, such as a .NET dataset or a Java hashmap through your WSDL interface. Instead you should flatten the collection into an array.
If you have no option to change the .NET service interface, then you will not be able to use the JWSDP tools to generate your client code. You could try modifying the element definition to type="anyType", and then write a custom deserializer that includes a schema processor that can parse the schema and interpret the contents of the dataset, or you can interface with the message using SAAJ. Or you might try using one of the other Java Web services platforms that specialize in .NET interoperability. I've had best luck using Systinet Server (formerly known as WASP) and webMethods Glue.
Dig Deeper on Topics Archive
Related Q&A from Anne Thomas Manes
Anne Thomas Manes explains the differences between open source clients and open source implementations. Continue Reading
Anne Thomas Manes discusses the best way to go about creating an enterprise data dictionary and why the systems works well. Continue Reading
Anne Thomas Manes explains the difference between 'hard' real time and 'live' real time systems. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.