[kepler-users] Kepler/WSDL multi-dimensional array

Daniel Crawl crawl at sdsc.edu
Mon Jul 12 12:03:27 PDT 2010


Hi Roly,

You could try changing the parameter outputMechanism in WSWithComplexTypes
to "composite".

If that doesn't work, I can try to fix the actor if you send me your
workflow.

Thanks,

   --dan


On 7/12/10 11:38 AM, Roly Poly wrote:
> Hi,
>
> I am a new user of Kepler. We have a set of 2-dimensional data that served
> by a PHP SOAP server. The format of the data is like:
>
> Time   outTemperate  inTemperate
> 123     91.1                71.8
> 124     92.2                72.5
>
> The WSDL's data format is defined as:
> <xsd:complexType name="RecordType">
>      <xsd:sequence>
>          <xsd:element name="values" type="xsd:float" minOccurs="0"
> maxOccurs="unbounded">
>          </xsd:element>
>      </xsd:sequence>
> </xsd:complexType>
>
> <xsd:complexType name="ArrayOfRecords">
>      <xsd:sequence>
>               <xsd:element name="item" minOccurs="0" maxOccurs="unbounded"
> type="tns:RecordType">
>               </xsd:element>
>       </xsd:sequence>
> </xsd:complexType>
>
> A web service function outputs data of the type ArrayOfRecords defined in
> this WSDL.
>
>
> I tried to WsWithComplexType in Kepler. When I directly hook up the output
> the the display, the output is like:
>
> {<?xml version="1.0"?><item xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="ns2:RecordType1"><values
> xsi:type="xsd:float">1277823600</values><values
> xsi:type="xsd:float">86.400002</values><values
> xsi:type="xsd:float">73.800003</values></item>,<?xml version="1.0"?><item
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="ns2:RecordType1"><values
> xsi:type="xsd:float">1277823900</values><values
> xsi:type="xsd:float">86.5</values><values
> xsi:type="xsd:float">74</values></item>, .....}
>
> I can use arrayToSequence actor to split those xml tokens to sequnce. But I
> do not know how to convert them to arrays. I tried xml disassembler  but no
> success.
>
> Could anyone give me a suggestion on how to let WSDL and Kepler handler the
> multi-dimensional arrays?
>
>
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users




More information about the Kepler-users mailing list