• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in JDeveloper - Creating Webservice from WSDL (NullPointerException)  RSS feed

 
Zeeshan Zia
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello World,

1. I am following JDeveloper Tutorial here: http://docs.oracle.com/cd/E53569_01/tutorials/tut_web_services/tut_web_services_3.html

2. In Step 1, Creating Webservice from WSDL - I am using following wizard:


3. I am getting NullPointer Expception error on pressing "Next" or "Finish". (Attached)

4. WSDL is pasted below:
=
<?xml version="1.0" standalone="yes"?>
<!-- Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is JAX-WS RI 2.2.11-b150616.1732 svn-revision#a247ba216861f2c0baac9a3657c5690bce0c744d. -->
<definitions targetNamespace="http://wizard/" name="MyWebService1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:tns="http://wizard/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">
  <types>
    <xsd:schema>
      <xsd:import namespace="http://wizard/" schemaLocation="MyWebService1_schema1.xsd"/>
    </xsd:schema>
  </types>
  <message name="sayHello">
    <part name="parameters" element="tns:sayHello"/>
  </message>
  <message name="sayHelloResponse">
    <part name="parameters" element="tns:sayHelloResponse"/>
  </message>
  <portType name="MyWebService1">
    <operation name="sayHello">
      <input wsam:Action="http://wizard/MyWebService1/sayHelloRequest" message="tns:sayHello"/>
      <output wsam:Action="http://wizard/MyWebService1/sayHelloResponse" message="tns:sayHelloResponse"/>
    </operation>
  </portType>
  <binding name="MyWebService1PortBinding" type="tns:MyWebService1">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="sayHello">
      <soap12peration soapAction=""/>
      <input>
        <soap12:body use="literal"/>
      </input>
      <output>
        <soap12:body use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="MyWebService1">
    <port name="MyWebService1Port" binding="tns:MyWebService1PortBinding">
      <soap12:address location="http://localhost:7101/WebService-Wizard-context-root/MyWebService1Port"/>
    </port>
  </service>
</definitions>
=

Thanks & Regards,
Ziash
Null_Pointer_Exception.JPG
[Thumbnail for Null_Pointer_Exception.JPG]
 
Vijitha Kumara
Bartender
Posts: 3992
27
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haven't tried this but you could try with a different wsdl and make sure the error is with IDE or the WSDL first.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!