Hello List,
 
I'm still experiencing some problems with array types in my GS. I've posted
that some days ago.  Now I explain thath with some details:
 
I extend Math Example (at Borja's) to work with a 5x5 matrix as main Value.
 
My wsdl file:
--------------------------------------------------------------------------------------
       New array of integers type
 
       <xsd:complexType name="ArrayOfString">                
<xsd:complexContent>                        <xsd:restriction 
base="soapenc:Array">                                <xsd:attribute 
ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>                        
</xsd:restriction>              </xsd:complexContent>        </xsd:complexType>
The Value is now an array of strings
 
<xsd:element name="getValueRP">        <xsd:complexType>                
<xsd:sequence>                        <xsd:element name="valor" 
type="tns:ArrayOfString"/>                </xsd:sequence>        
</xsd:complexType></xsd:element><xsd:element name="getValueRPResponse">        
<xsd:complexType>                <xsd:sequence>                        
<xsd:element name="valor" type="tns:ArrayOfString"/>                
</xsd:sequence>        </xsd:complexType></xsd:element>
--------------------------------------------------------------------------------------
 
 
 
 
In my MathService.java
---------------------------------------------------------------------------------------
        public String[] getARP(GetARP params) throws RemoteException {
                return a;   //a is float[5][5]  attribute
        }
 
 
 
 
In my Client.java
-----------------------------------------------------------------------------------
                        EndpointReferenceType endpoint = new 
EndpointReferenceType();                        endpoint.setAddress(new 
Address(serviceURI));                        MathPortType matrices = 
locator.getMatricesPortTypePort(endpoint);
                        math = locator.getMatricesPortTypePort(endpoint);
 
String a = new String();a =  (String)math.getARP( new GetARP() );
 
1.   Service builds and deploy
2.   stubs are generated and build successfully.
3.   when compile Client.java obtain the following error:
 
  globus/gridservicios/clientes/MathService_instance/Client.java:34: 
inconvertible types  found   : ...MathService_instance.GetARPResponse  
required: java.lang.String  a =  (String[])math.getARP( new GetARP() );  1 error
 
Could you help me ?
 
Thanks in advanced.   Carlo.
 
_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

Reply via email to