FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to receive a string[][] in a BPEL Process ?

 
Post new topic   Reply to topic    NetBeans Forums -> SOA Users
View previous topic :: View next topic  
Author Message
RudyWI



Joined: 06 May 2009
Posts: 12

PostPosted: Mon Jun 29, 2009 10:03 am    Post subject: How to receive a string[][] in a BPEL Process ? Reply with quote

Hi,

I have created a Web Service to communicate with a Database.
This Web Service have an operation "execSQL" which send a SQL request to the database. And then, with the result of the request, the Web Service build a String[][] which is returned to the client.

Now, I have a BPEL process which invokes this Web Service.
How to have just a part of the response of my Web Service ?

Example : If my Web Service send a response in a String[10][10].
In BPEL, how to have the String[3][4] data, of this response ?

Thanks.
Back to top
View user's profile Send private message
RudyWI



Joined: 06 May 2009
Posts: 12

PostPosted: Tue Jun 30, 2009 7:59 am    Post subject: Reply with quote

When I use the Web Service, it replies something like that :
Code:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <execSelectResponse xmlns="http://dbControl/me/org/xsd">
         <item0 xmlns="">val1</item0>
         <item0 xmlns="">val2</item0>
         <item0 xmlns="">val3</item0>
         <item0 xmlns="">val4</item0>
         <item1 xmlns="">val5</item1>
         <item1 xmlns="">val6</item1>
         <item1 xmlns="">val7</item1>
         <item1 xmlns="">val8</item1>
         <item2 xmlns="">val9</item2>
         <item2 xmlns="">val10</item2>
         <item2 xmlns="">val11</item2>
         <item2 xmlns="">val12</item2>
         <item3 xmlns="">val13</item3>
         <item3 xmlns="">val14</item3>
         <item3 xmlns="">val15</item3>
         <item3 xmlns="">val16</item3>
         <item4 xmlns="">val17</item4>
         <item4 xmlns="">val18</item4>
         <item4 xmlns="">val19</item4>
         <item4 xmlns="">val20</item4>
      </execSelectResponse>
   </soapenv:Body>
</soapenv:Envelope>


In the BPEL Process, I have declared this variable for the of the Web Service :
Code:

<variable name="ExecSelectOut" xmlns:axis2="http://dbControl/me/org/" messageType="axis2:execSelectResponse"/

            <xs:element name="execSelectResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>


All is right ?

And now how to have only one value of the response ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> SOA Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB