• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem generating Stubs using JDeveloper

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was facing a problem calling a web service when the client code was generated using wscompile

Complete Problem description : https://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
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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. :

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


 
Yogesh Gandhi
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic