here is the original wsdl fiel:
--------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:s="http://www.w3.org/2001/XMLSchema";
xmlns:s0="http://www.henry_lu.com/HelloWorld/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
targetNamespace="http://www.henry_lu.com/HelloWorld/";
xmlns="http://schemas.xmlsoap.org/wsdl/";>
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.henry_lu.com/HelloWorld/";>
<s:element name="HelloWorld">
<s:complexType />
</s:element>
<s:element name="HelloWorldResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getIPforHostname">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="strHostname" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getIPforHostnameResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="getIPforHostnameResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
<message name="HelloWorldSoapIn">
<part name="parameters" element="s0:HelloWorld" />
</message>
<message name="HelloWorldSoapOut">
<part name="parameters" element="s0:HelloWorldResponse" />
</message>
<message name="getIPforHostnameSoapIn">
<part name="parameters" element="s0:getIPforHostname" />
</message>
<message name="getIPforHostnameSoapOut">
<part name="parameters" element="s0:getIPforHostnameResponse" />
</message>
<portType name="HelloWorldServiceSoap">
<operation name="HelloWorld">
<input message="s0:HelloWorldSoapIn" />
<output message="s0:HelloWorldSoapOut" />
</operation>
<operation name="getIPforHostname">
<input message="s0:getIPforHostnameSoapIn" />
<output message="s0:getIPforHostnameSoapOut" />
</operation>
</portType>
<binding name="HelloWorldServiceSoap" type="s0:HelloWorldServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document" />
<operation name="HelloWorld">
<soap:operation soapAction="http://www.henry_lu.com/HelloWorld/HelloWorld"; style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="getIPforHostname">
<soap:operation soapAction="http://www.henry_lu.com/HelloWorld/getIPforHostname"; style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="HelloWorldService">
<documentation>&lt;b&gt;A web service which performs Domain Name Lookups.&lt;/b&gt;</documentation>
<port name="HelloWorldServiceSoap" binding="s0:HelloWorldServiceSoap">
<soap:address location="http://localhost/HelloWorldService/HelloWorldService.asmx"; />
</port>
</service>
</definitions>
------------------------------------------------------------------------------------------------------------------------------------------------



From: Stephen Gordon <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: wsdl file
Date: Fri, 24 Oct 2003 10:21:13 +1000

Please attach the WSDL in question.

stephen

Henry lu wrote:

I got a wsdl file generated by IE from a WS written in C#. I got the following errors when i tried
wsdl2java program:


java.lang.NullPointerException
at org.apache.axis.wsdl.toJava.JavaWriter.writeComment(JavaWriter.java:2
44)
at org.apache.axis.wsdl.toJava.JavaServiceIfaceWriter.writeFileBody(Java
ServiceIfaceWriter.java:110)
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:148)
at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWri
ter.java:98)
at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(Jav
aGeneratorFactory.java:284)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:328)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:82)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246)
at java.lang.Thread.run(Unknown Source)


Could anyone tell me why and how to fix?

_________________________________________________________________
See when your friends are online with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com







_________________________________________________________________
Concerned that messages may bounce because your Hotmail account has exceeded its 2MB storage limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es




Reply via email to