Piers,

Please log a bug in JIRA and upload the wsdl so that we can track this
bug and fix it.

thanks,
dims

On 12/8/06, Coleman, Piers <[EMAIL PROTECTED]> wrote:

The WSDL successfully validated with the latest of XML Spy. Here is the
WSDL. Nothing too complex here I don't think:

<definitions xmlns:tns="urn:wsbc.com:webportal:services:pocservice"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:import1="urn:wsbc.com:webportal:messages"
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns="http://schemas.xmlsoap.org/wsdl/"; name="PocService"
targetNamespace="urn:wsbc.com:webportal:services:pocservice">
        <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
        <types>
                <xsd:schema>
                        <xsd:import
schemaLocation="EmployerInfoResponse.xsd"
namespace="urn:wsbc.com:webportal:messages"/>
                        <xsd:import
schemaLocation="EmployerInfoException.xsd"
namespace="urn:wsbc.com:webportal:messages"/>
                        <xsd:import
schemaLocation="EmployerInfoRequest.xsd"
namespace="urn:wsbc.com:webportal:messages"/>
                </xsd:schema>
        </types>
        <message name="getEmployerInfoIn">
                <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
                <part name="messagePart"
element="import1:GetEmployerInfo"/>
        </message>
        <message name="getEmployerInfoOut">
                <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
                <part name="messagePart"
element="import1:GetEmployerInfoResponse"/>
        </message>
        <message name="employerInfoProcessingFaultIn">
                <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
                <part name="messagePart"
element="import1:EmployerInfoProcessingFault"/>
        </message>
        <portType name="PocServiceInterface">
                <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
                <operation name="GetEmployerInfo">
                        <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
                        <input message="tns:getEmployerInfoIn"/>
                        <output message="tns:getEmployerInfoOut"/>
                        <fault name="EmployerInfoProcessingException"
message="tns:employerInfoProcessingFaultIn"/>
                </operation>
        </portType>
        <binding name="PocService" type="tns:PocServiceInterface">
                <soap:binding
transport="http://schemas.xmlsoap.org/soap/http"/>
                <operation name="GetEmployerInfo">
                        <soap:operation
soapAction="urn:wsbc.com:webportal:services:pocservice:getEmployerInfoIn
" style="document"/>
                        <input>
                                <soap:body use="literal"/>
                        </input>
                        <output>
                                <soap:body use="literal"/>
                        </output>
                        <fault name="EmployerInfoProcessingException">
                                <soap:fault
name="EmployerInfoProcessingException" use="literal"/>
                        </fault>
                </operation>
        </binding>
        <service name="PocServicePort">
                <port name="PocServicePort" binding="tns:PocService">
                        <soap:address
location="http://localhost:9080/axis2/pocwebservice"/>
                </port>
        </service>
</definitions>

-----Original Message-----
From: Coleman, Piers [mailto:[EMAIL PROTECTED]
Sent: Friday, December 08, 2006 9:53 AM
To: [email protected]
Subject: RE: Null pointer exception when using the WSDL2Java tool

I validated it using the interoperability tool from WS-I:
http://www.ws-i.org/deliverables/workinggroup.aspx?wg=testingtools. I
plugged this tool into SoapUI and everything passed ok.

I'm trying to use the Eclipse WTP that you suggested. It looks
promising, but I'm getting the following error when I try and validate
the WSDL. I'm currently googling to see if I can find anything.

WS-I: A problem occured while running the WS-I WSDL conformance check:
org.eclipse.wst.wsi.internal.analyzer.WSIAnalyzerException: The WS-I
Test Assertion Document (TAD)document was either not found or could not
be processed.The WSDLAnalyzer was unable to validate the given WSDL
File.   Poc/Types       PocService.wsdl line 1  1165599589677   1

-----Original Message-----
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: Friday, December 08, 2006 4:23 AM
To: [email protected]
Subject: Re: Null pointer exception when using the WSDL2Java tool

Have you validated the WSDL ? If it validates using Eclipses WTP,
xmlspy or the like, post the wsdl and maybe we can help.

Robert

On 12/7/06, Coleman, Piers <[EMAIL PROTECTED]> wrote:
>
>
>
> This is my first post, so here goes.
>
> I'm new to the Java world for creating Web services and I'm trying to
use
> the WSDL2Java tool to generate my server-side skeleton code. The
results are
> below. The WSDL file imports the XSD files that it uses.
>
> Could someone provide me with a few pointers on how to investigate
this
> further? I could post the WSDL as well.
>
> Thanks in advance.
>
> C:\WCA\PocWebService\Types>WSDL2Java.bat -uri PocService.wsdl -ss -sd
-d
> xmlbean
> s -o ..\out -p services.pocservice
> Using AXIS2_HOME:   C:\axis2-1.1
> Using JAVA_HOME:    C:\j2sdk1.4.2_13
> Retrieving schema at 'EmployerInfoResponse.xsd', relative to
> 'file:/C:/WCA/PocWe
> bService/Types/'.
> Retrieving schema at 'ContactTypes.xsd', relative to
> 'file:/C:/WCA/PocWebService
> /Types/EmployerInfoResponse.xsd'.
> Retrieving schema at 'EmployerInfoException.xsd', relative to
> 'file:/C:/WCA/PocW
> ebService/Types/'.
> Retrieving schema at 'EmployerInfoRequest.xsd', relative to
> 'file:/C:/WCA/PocWeb
> Service/Types/'.
> Dec 7, 2006 5:01:50 PM
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder p
> opulateService
> SEVERE: java.lang.NullPointerException
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : Error parsing WSDL
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
> ionEngine.java:112)
>         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: null; nested exception is:
>         java.lang.NullPointerException
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:250)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
> ionEngine.java:103)
>         ... 2 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:235)
>         ... 3 more
> Find out about young workers' safety needs at www.demandsafety.ca
>
>
>
> CONFIDENTIALITY DISCLAIMER
>
> The information contained in this transmission may contain privileged
and
> confidential information of WorkSafeBC - the Workers' Compensation
Board. It
> is intended for review only by the person(s) named above.
Dissemination,
> distribution or duplication of this communication is strictly
prohibited by
> all recipients unless expressly authorized otherwise. If you are not
the
> intended recipient, please contact the sender by reply email and
destroy all
> copies of the original message. Thank you.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Find out about young workers' safety needs at www.demandsafety.ca



CONFIDENTIALITY DISCLAIMER

The information contained in this transmission may contain privileged
and confidential information of WorkSafeBC - the Workers' Compensation
Board. It is intended for review only by the person(s) named above.
Dissemination, distribution or duplication of this communication is
strictly prohibited by all recipients unless expressly authorized
otherwise. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message.
Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Find out about young workers' safety needs at www.demandsafety.ca



CONFIDENTIALITY DISCLAIMER

The information contained in this transmission may contain privileged and 
confidential information of WorkSafeBC - the Workers' Compensation Board. It is 
intended for review only by the person(s) named above. Dissemination, 
distribution or duplication of this communication is strictly prohibited by all 
recipients unless expressly authorized otherwise. If you are not the intended 
recipient, please contact the sender by reply email and destroy all copies of 
the original message. Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to