Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes Problem generating Stubs using JDeveloper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem generating Stubs using JDeveloper" Watch "Problem generating Stubs using JDeveloper" New topic
Author

Problem generating Stubs using JDeveloper

Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 207
I was facing a problem calling a web service when the client code was generated using wscompile

Complete Problem description : http://www.coderanch.com/t/567579/Web-Services/java/NullPointerException-when-calling-web-service

Someone suggested that I should try generating the code using JDeveloper, but when I tried

I am getting the following exception when I try to generate client code from a given wsdl.

Anyone has any clue?

Error message is as follows:

WSDL Validation failed with the following exception:

Schema Element not found : QName
(http://localhost:8080/CMSPaymentServiceClient/CMSPaymentService/Acknowledgement/, AcknowledgementRoot)
Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 207
The wsdl file that I was using had document and literal




Someone told me that if such is the case, that means wsdl is java 1.5 compatible and your JDEV should support 1.5

The JDEV I was using was 10 R2, but I should have used JDEV 10 R3, which supports 1.5

I am able to generate stubs using JDEV 10 R3.
Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 207
Though I was able to generate stubs using JDEV version 10g R3.

But there were some custom classes which didn't get generated.

During the generation of Client stubs, I was constantly getting a warning message in the log screen of JDeveloper.

WARNING: OWS-00102 Mapped {http://www.abc.com/CMSPaymentService/InitiateRequest/}InitiateRequest to javax.xml.soap.SOAPElement InitiateRequest. Reason for not creating a custom Java type: use of an unimplemented feature.
WARNING: OWS-00102 Mapped {http://www.abc.com/CMSPaymentService/InitiateRequest/}BatchRequest to javax.xml.soap.SOAPElement BatchRequest. Reason for not creating a custom Java type: use of an unimplemented feature.
WARNING: OWS-00102 Mapped {http://www.abc.com/CMSPaymentService/Response/}ResponseDetailType to javax.xml.soap.SOAPElement ResponseDetailType. Reason for not creating a custom Java type: use of an unimplemented feature.

I read on internet, that when there is some unimplemented feature that is used in wsdl/xsd, such message comes and SOAPElement is being used as default.

Can someone please list down the possible features which could be the culprit.

The WSDL file is given on the following link. :

http://www.coderanch.com/t/567579/Web-Services/java/NullPointerException-when-calling-web-service


Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 207
We didnt' get this warning when we created stubs using Oracle 11g JDev.

We used JAX-WS style format for this.
So far we have learned that may be the WSDL that was provided to us did not support JAX-RPC style format.
And Oracle 10g R3 did used JAX-RPC.

That was why it was not able to generate the class files successfully.

So far I believe that my issue has been resolved. Will update this thread as soon as I get more info on this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem generating Stubs using JDeveloper
 
Similar Threads
Problem with webservice
Error while generating Web Services Client using wsdl in Eclipse 3.6
Help with SOAPFaultException
WSDL Validation
Getting MalformedUrlException when invoking Webservice