Dear all,
I'm trying to generate and deploy GT tutorial web service (a.k.a. the Math
service) on GT 4.2.0 in order to test migration process for own my web
services before touching them.
I used this document [
http://www.globus.org/toolkit/docs/4.2/4.2.0/common/javawscore/mig/javawscore-migrating-GT4.html]
to change namespaces, and the resulted WSDL file is attached, but
unfortunately I faced the following error while executing
globus-build-service.sh script.
================
generateBinding:
[echo] Generating bindings for Math_flattened.wsdl
[java] Error generating WSDL binding: Failed to add operation to
binding
BUILD FAILED
/home/shahand/workspace/sample/build.xml:253: The following error occurred
while executing this line:
/state/partition1/shahand/globus-4.2.0.1/share/globus_wsrf_tools/build-stubs.xml:197:
Java returned:2
===============
I really appreciate if you could help me finding the problem. Please let me
know if you need any more information. Thanks in advance.
Regards,
Shayan
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="MathService"
targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsrp="http://docs.oasis-open.org/wsrf/rp-2/"
xmlns:wsrpw="http://docs.oasis-open.org/wsrf/rpw-2/"
xmlns:wsdlpp="http://www.globus.org/namespaces/2004/10/WSDLPreprocessor/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema/">
<wsdl:import
namespace="http://docs.oasis-open.org/wsrf/rpw-2/"
location="../../wsrf/properties/rpw-2.wsdl" />
<!--============================================================
T Y P E S
============================================================-->
<types>
<xsd:schema targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance"
xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema/">
<!-- REQUESTS AND RESPONSES -->
<xsd:element name="add" type="xsd:int"/>
<xsd:element name="addResponse">
<xsd:complexType/>
</xsd:element>
<xsd:element name="subtract" type="xsd:int"/>
<xsd:element name="subtractResponse">
<xsd:complexType/>
</xsd:element>
<xsd:element name="getValueRP">
<xsd:complexType/>
</xsd:element>
<xsd:element name="getValueRPResponse" type="xsd:int"/>
<!-- RESOURCE PROPERTIES -->
<xsd:element name="Value" type="xsd:int"/>
<xsd:element name="LastOp" type="xsd:string"/>
<xsd:element name="MathResourceProperties">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tns:Value" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="tns:LastOp" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</types>
<!--============================================================
M E S S A G E S
============================================================-->
<message name="AddInputMessage">
<part name="parameters" element="tns:add"/>
</message>
<message name="AddOutputMessage">
<part name="parameters" element="tns:addResponse"/>
</message>
<message name="SubtractInputMessage">
<part name="parameters" element="tns:subtract"/>
</message>
<message name="SubtractOutputMessage">
<part name="parameters" element="tns:subtractResponse"/>
</message>
<message name="GetValueRPInputMessage">
<part name="parameters" element="tns:getValueRP"/>
</message>
<message name="GetValueRPOutputMessage">
<part name="parameters" element="tns:getValueRPResponse"/>
</message>
<!--============================================================
P O R T T Y P E
============================================================-->
<portType name="MathPortType"
wsdlpp:extends="wsrpw:GetResourceProperty"
wsrp:ResourceProperties="tns:MathResourceProperties">
<operation name="add">
<input message="tns:AddInputMessage"/>
<output message="tns:AddOutputMessage"/>
</operation>
<operation name="subtract">
<input message="tns:SubtractInputMessage"/>
<output message="tns:SubtractOutputMessage"/>
</operation>
<operation name="getValueRP">
<input message="tns:GetValueRPInputMessage"/>
<output message="tns:GetValueRPOutputMessage"/>
</operation>
</portType>
</definitions>