Results 1 to 1 of 1
- 02-26-2010, 10:59 AM #1
Null pointer exception while creating stubs from WSDL
Hi to everyone,
I'm trying to create a webservice client app using Eclipse. I followed this tutorial and everything went successfully until phase 9. When clicking on "finish" an error occurred:

What could be the cause?
This is the WSDL I'm using:
Thanks in advanceXML Code:<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://wsdls.datastream.net/MP0024_GetWorkOrder_001" xmlns:tns="http://wsdls.datastream.net/MP0024_GetWorkOrder_001" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:rqst0="http://schemas.datastream.net/MP_functions/MP0024_001" xmlns:resp0="http://schemas.datastream.net/MP_results/MP0024_001" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:hdr="http://schemas.datastream.net/MP_functions" xmlns:wssi="http://schemas.xmlsoap.org/ws/2002/04/secext" xmlns="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:import namespace="http://schemas.datastream.net/MP_functions" schemaLocation="../../schemas/headers.xsd"/><xsd:import namespace="http://schemas.xmlsoap.org/ws/2002/04/secext" schemaLocation="../../schemas/secext.xsd"/><xsd:import namespace="http://schemas.datastream.net/MP_functions/MP0024_001" schemaLocation="../../schemas/Work/MP0024_GetWorkOrder_001.xsd"/><xsd:import namespace="http://schemas.datastream.net/MP_results/MP0024_001" schemaLocation="../../schemas/Work/MP0024_GetWorkOrder_001_Result.xsd"/></xsd:schema> </wsdl:types> <wsdl:message name="GetWorkOrderResponseMsg"> <wsdl:part name="GetWorkOrderResponseMsg" element="resp0:MP0024_GetWorkOrder_001_Result"/> </wsdl:message> <wsdl:message name="sessionHeader"> <wsdl:part name="sessionHeader" element="hdr:Session"/> </wsdl:message> <wsdl:message name="GetWorkOrderRequestMsg"> <wsdl:part name="GetWorkOrderRequestMsg" element="rqst0:MP0024_GetWorkOrder_001"/> </wsdl:message> <wsdl:message name="messageConfigHeader"> <wsdl:part name="messageConfigHeader" element="hdr:MessageConfig"/> </wsdl:message> <wsdl:message name="sessionScenarioHeader"> <wsdl:part name="sessionScenarioHeader" element="hdr:SessionScenario"/> </wsdl:message> <wsdl:message name="securityHeader"> <wsdl:part name="securityHeader" element="wssi:Security"/> </wsdl:message> <wsdl:message name="organizationHeader"> <wsdl:part name="organizationHeader" element="hdr:Organization"/> </wsdl:message> <wsdl:portType name="GetWorkOrderPT"> <wsdl:operation name="GetWorkOrderOp"> <wsdl:input name="GetWorkOrderRequestMsg" message="tns:GetWorkOrderRequestMsg"/> <wsdl:output name="GetWorkOrderResponseMsg" message="tns:GetWorkOrderResponseMsg"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="GetWorkOrderSoapBinding" type="tns:GetWorkOrderPT"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="GetWorkOrderOp"> <wsdlsoap:operation soapAction="http://someURI"/> <wsdl:input name="GetWorkOrderRequestMsg"> <wsdlsoap:header message="tns:organizationHeader" part="organizationHeader" use="literal"> </wsdlsoap:header> <wsdlsoap:header message="tns:securityHeader" part="securityHeader" use="literal"> </wsdlsoap:header> <wsdlsoap:header message="tns:sessionScenarioHeader" part="sessionScenarioHeader" use="literal"> </wsdlsoap:header> <wsdlsoap:header message="tns:sessionHeader" part="sessionHeader" use="literal"> </wsdlsoap:header> <wsdlsoap:header message="tns:messageConfigHeader" part="messageConfigHeader" use="literal"> </wsdlsoap:header> <wsdlsoap:body parts="GetWorkOrderRequestMsg" use="literal"/> </wsdl:input> <wsdl:output name="GetWorkOrderResponseMsg"> <wsdlsoap:header message="tns:sessionHeader" part="sessionHeader" use="literal"> </wsdlsoap:header> <wsdlsoap:body parts="GetWorkOrderResponseMsg" use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="GetWorkOrderService"> <wsdl:port name="GetWorkOrderSoapBinding" binding="tns:GetWorkOrderSoapBinding"> <wsdlsoap:address location="http://localhost/axis/services/EWSConnector"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
--
MarKco
Similar Threads
-
Null pointer Exception
By peiceonly in forum New To JavaReplies: 8Last Post: 09-05-2010, 06:48 PM -
Null pointer exception when creating image button!
By iansu in forum AWT / SwingReplies: 6Last Post: 09-03-2009, 11:40 AM -
Null Pointer Exception
By Jacinth in forum New To JavaReplies: 4Last Post: 01-22-2009, 01:47 PM -
getting a null pointer exception
By Rjava in forum XMLReplies: 4Last Post: 07-16-2008, 05:56 AM -
Null pointer exception after creating RCP plugin
By bhanu in forum EclipseReplies: 1Last Post: 06-23-2008, 05:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks