Hi,

Still could not figure out what the problem is, I'm attaching the flattened
WSDL file.
However, sounds like when the Gar builder reports "Generate Bindings" it
does not actually generate binding becuase the Math_binding.wsdl is empty.
What's your opinion about it?
Is there any tested example web service for GT 4.2.0?
Thanks in advance

Regards,
Shayan

2008/9/25 Shayan Shahand <[EMAIL PROTECTED]>

> 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"?>
<wsdl:definitions name="MathService" targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance"; xmlns:wsrp="http://docs.oasis-open.org/wsrf/rp-2/"; xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance/"; 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/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns="http://schemas.xmlsoap.org/wsdl/";>
  <wsdl:import namespace="http://docs.oasis-open.org/wsrf/rpw-2/"; location="../../wsrf/properties/rpw-2.wsdl"/>
  <wsdl: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 maxOccurs="1" minOccurs="1" ref="tns:Value"/>
			<xsd:element maxOccurs="1" minOccurs="1" ref="tns:LastOp"/>
		</xsd:sequence>
	</xsd:complexType>
	</xsd:element>
        
</xsd:schema>
  </wsdl:types>
  <wsdl:message name="SubtractOutputMessage">
    <wsdl:part name="parameters" element="tns:subtractResponse"/>
  </wsdl:message>
  <wsdl:message name="GetValueRPInputMessage">
    <wsdl:part name="parameters" element="tns:getValueRP"/>
  </wsdl:message>
  <wsdl:message name="SubtractInputMessage">
    <wsdl:part name="parameters" element="tns:subtract"/>
  </wsdl:message>
  <wsdl:message name="AddInputMessage">
    <wsdl:part name="parameters" element="tns:add"/>
  </wsdl:message>
  <wsdl:message name="AddOutputMessage">
    <wsdl:part name="parameters" element="tns:addResponse"/>
  </wsdl:message>
  <wsdl:message name="GetValueRPOutputMessage">
    <wsdl:part name="parameters" element="tns:getValueRPResponse"/>
  </wsdl:message>
  <wsdl:portType name="MathPortType" wsrp:ResourceProperties="tns:MathResourceProperties" wsdlpp:extends="wsrpw:GetResourceProperty">
    <wsdl:operation name="add">
      <wsdl:input message="tns:AddInputMessage"/>
      <wsdl:output message="tns:AddOutputMessage"/>
    </wsdl:operation>
    <wsdl:operation name="subtract">
      <wsdl:input message="tns:SubtractInputMessage"/>
      <wsdl:output message="tns:SubtractOutputMessage"/>
    </wsdl:operation>
    <wsdl:operation name="getValueRP">
      <wsdl:input message="tns:GetValueRPInputMessage"/>
      <wsdl:output message="tns:GetValueRPOutputMessage"/>
    </wsdl:operation>
  </wsdl:portType>
</wsdl:definitions>

Reply via email to