Note that there are some explanatory texts on larger screens.

plurals
  1. POBPEL output strings
    primarykey
    data
    text
    <p>I am new to BPEL and web services. I have a webservice returning an array of strings. In BPEL I invoke this webservice and deploy the webservice in Apache ODE. I am using the BPEL designer tool in Eclipse.</p> <p>The result I get from the BPEL service is the first element in the array, in the console I can see that the whole array is being passed. How can I set the output as array? The type of my output variable is String, I can not find a type such as list, array or list of strings.</p> <p>This list of strings:</p> <pre><code>&lt;xs:element name="getAvailableBungalowsResponse"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="xs:string"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; </code></pre> <p>should go in this one:</p> <pre><code>&lt;complexType name="Bungalow"&gt; &lt;sequence maxOccurs="unbounded" minOccurs="0"&gt; &lt;element name="bungalowInfo" type="string"&gt;&lt;/element&gt; &lt;/sequence&gt; &lt;/complexType&gt; </code></pre> <p>Bpel from-to looks like this:</p> <pre><code>&lt;bpel:copy&gt; &lt;bpel:from part="parameters" variable="HolidayVillageServiceLinkResponse"&gt; &lt;/bpel:from&gt; &lt;bpel:to part="bungalows" variable="output"&gt; &lt;/bpel:to&gt; &lt;/bpel:copy&gt; </code></pre> <p>Error I get in the BPEL designer is the following:</p> <pre><code>The from-spec of "&lt;xs:complexType&gt;" is not compatible with to-spec of "&lt;complexType "Bungalow"&gt;" - Element &lt;ns:return&gt; in platform:/resource/HolidayVillage/bpelContent/HollidayVillage.wsdl differs from &lt;tns:bungalowInfo&gt; in platform:/resource/HolidayVillage/bpelContent/HolidayVillageReservationArtifacts.wsdl - different QNames: ns:return vs tns:bungalowInfo HolidayVillageReservation.bpel /HolidayVillage/bpelContent line 98 BPEL Validation Marker </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload