You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ktzanet <kt...@gmail.com> on 2007/09/20 12:57:33 UTC

Problem in WSDL2java with eclipse code generator

Hi,
I am trying to create java code with eclipse code generator. I first created
the wsdl file with java2wsdl using the same plugin. When I click finish
though, I get the following message:

An error occured while completing process -java.lang.InterruptedException:
There are no parts for fault message:
{http://service.netmode.ntua.gr}Exception

Can someone help me?
Thank you

This is my wsdl:

<wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://service.netmode.ntua.gr/xsd"
xmlns:ns="http://service.netmode.ntua.gr"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://service.netmode.ntua.gr"><wsdl:types><xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://service.netmode.ntua.gr/xsd">
<xs:element name="ExceptionFault">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="Exception" nillable="true" type="xs:anyType" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
<xs:element name="getLocation">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="id" nillable="true" type="xs:int" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
<xs:element name="getLocationResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="return" nillable="true" type="xs:string" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
</xs:schema></wsdl:types><wsdl:message name="getLocationMessage"><wsdl:part
name="part1" element="xsd:getLocation" /></wsdl:message><wsdl:message
name="getLocationResponseMessage"><wsdl:part name="part1"
element="xsd:getLocationResponse" /></wsdl:message><wsdl:portType
name="TopologyServicePortType"><wsdl:operation
name="getLocation"><wsdl:input
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
wsaw:Action="urn:getLocation" message="ns:getLocationMessage" /><wsdl:output
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
message="ns:getLocationResponseMessage" wsaw:Action="urn:getLocation"
/><wsdl:fault message="ns:Exception" name="Exception"
/></wsdl:operation></wsdl:portType><wsdl:binding
name="TopologyServiceSOAP11Binding"
type="ns:TopologyServicePortType"><soap:binding
transport="http://schemas.xmlsoap.org/soap/http" style="document"
/><wsdl:operation name="getLocation"><soap:operation
soapAction="urn:getLocation" style="document" /><wsdl:input><soap:body
use="literal" /></wsdl:input><wsdl:output><soap:body use="literal"
/></wsdl:output><wsdl:fault name="Exception"><soap:body use="literal"
/></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:binding
name="TopologyServiceSOAP12Binding"
type="ns:TopologyServicePortType"><soap12:binding
transport="http://schemas.xmlsoap.org/soap/http" style="document"
/><wsdl:operation name="getLocation"><soap12:operation
soapAction="urn:getLocation" style="document" /><wsdl:input><soap12:body
use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal"
/></wsdl:output><wsdl:fault name="Exception"><soap12:body use="literal"
/></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:service
name="TopologyService"><wsdl:port name="TopologyServiceSOAP11port"
binding="ns:TopologyServiceSOAP11Binding"><soap:address
location="http://localhost:8080/axis2/services/TopologyService"
/></wsdl:port><wsdl:port name="TopologyServiceSOAP12port"
binding="ns:TopologyServiceSOAP12Binding"><soap12:address
location="http://localhost:8080/axis2/services/TopologyService"
/></wsdl:port></wsdl:service></wsdl:definitions>
-- 
View this message in context: http://www.nabble.com/Problem-in-WSDL2java-with-eclipse-code-generator-tf4486812.html#a12794863
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Problem in WSDL2java with eclipse code generator

Posted by ktzanet <kt...@gmail.com>.
Can you please explain this to me because I don't understand.
Thank u



The log will be append to the eclipse .log file located at the
<eclipse_worksapace>/.metadata
Please attach the stack trace there.
thanks
Lahiru

-- 
View this message in context: http://www.nabble.com/Problem-in-WSDL2java-with-eclipse-code-generator-tf4486812.html#a12815037
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Problem in WSDL2java with eclipse code generator

Posted by Lahiru Sandakith <sa...@gmail.com>.
The log will be append to the eclipse .log file located at the
<eclipse_worksapace>/.metadata
Please attach the stack trace there.
thanks
Lahiru

On 9/20/07, ktzanet <kt...@gmail.com> wrote:
>
>
> Hi,
> I am trying to create java code with eclipse code generator. I first
> created
> the wsdl file with java2wsdl using the same plugin. When I click finish
> though, I get the following message:
>
> An error occured while completing process -java.lang.InterruptedException:
> There are no parts for fault message:
> {http://service.netmode.ntua.gr}Exception
>
> Can someone help me?
> Thank you
>
> This is my wsdl:
>
> <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:xsd="http://service.netmode.ntua.gr/xsd"
> xmlns:ns="http://service.netmode.ntua.gr"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> targetNamespace="http://service.netmode.ntua.gr"><wsdl:types><xs:schema
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> attributeFormDefault="qualified"
> elementFormDefault="qualified"
> targetNamespace="http://service.netmode.ntua.gr/xsd">
> <xs:element name="ExceptionFault">
>         <xs:complexType>
>                 <xs:sequence>
>                         <xs:element name="Exception" nillable="true"
> type="xs:anyType" />
>                 </xs:sequence>
>         </xs:complexType>
> </xs:element>
> <xs:element name="getLocation">
>         <xs:complexType>
>                 <xs:sequence>
>                         <xs:element name="id" nillable="true"
> type="xs:int" />
>                 </xs:sequence>
>         </xs:complexType>
> </xs:element>
> <xs:element name="getLocationResponse">
>         <xs:complexType>
>                 <xs:sequence>
>                         <xs:element name="return" nillable="true"
> type="xs:string" />
>                 </xs:sequence>
>         </xs:complexType>
> </xs:element>
> </xs:schema></wsdl:types><wsdl:message
> name="getLocationMessage"><wsdl:part
> name="part1" element="xsd:getLocation" /></wsdl:message><wsdl:message
> name="getLocationResponseMessage"><wsdl:part name="part1"
> element="xsd:getLocationResponse" /></wsdl:message><wsdl:portType
> name="TopologyServicePortType"><wsdl:operation
> name="getLocation"><wsdl:input
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
> wsaw:Action="urn:getLocation" message="ns:getLocationMessage"
> /><wsdl:output
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
> message="ns:getLocationResponseMessage" wsaw:Action="urn:getLocation"
> /><wsdl:fault message="ns:Exception" name="Exception"
> /></wsdl:operation></wsdl:portType><wsdl:binding
> name="TopologyServiceSOAP11Binding"
> type="ns:TopologyServicePortType"><soap:binding
> transport="http://schemas.xmlsoap.org/soap/http" style="document"
> /><wsdl:operation name="getLocation"><soap:operation
> soapAction="urn:getLocation" style="document" /><wsdl:input><soap:body
> use="literal" /></wsdl:input><wsdl:output><soap:body use="literal"
> /></wsdl:output><wsdl:fault name="Exception"><soap:body use="literal"
> /></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:binding
> name="TopologyServiceSOAP12Binding"
> type="ns:TopologyServicePortType"><soap12:binding
> transport="http://schemas.xmlsoap.org/soap/http" style="document"
> /><wsdl:operation name="getLocation"><soap12:operation
> soapAction="urn:getLocation" style="document" /><wsdl:input><soap12:body
> use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal"
> /></wsdl:output><wsdl:fault name="Exception"><soap12:body use="literal"
> /></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:service
> name="TopologyService"><wsdl:port name="TopologyServiceSOAP11port"
> binding="ns:TopologyServiceSOAP11Binding"><soap:address
> location="http://localhost:8080/axis2/services/TopologyService"
> /></wsdl:port><wsdl:port name="TopologyServiceSOAP12port"
> binding="ns:TopologyServiceSOAP12Binding"><soap12:address
> location="http://localhost:8080/axis2/services/TopologyService"
> /></wsdl:port></wsdl:service></wsdl:definitions>
> --
> View this message in context:
> http://www.nabble.com/Problem-in-WSDL2java-with-eclipse-code-generator-tf4486812.html#a12794863
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F