incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Riou <matthieu.r...@gmail.com>
Subject Re: big problem with workitem
Date Tue, 23 Aug 2005 11:55:12 GMT
Just letting you know that I didn't forget about your problem, I just
have to find some time to try to reproduce it.

On 8/21/05, Mirco Jeske <mail@mircojeske.de> wrote:
> Hi,
> 
> this is a strange behavior: as soon as I invoke a web service the
> workitem is not defined anylonger.
> You see my bpel code and my wsdl. The process gets a receive, creates a
> work item and then calls a web service which connects to the SAP System
> and returns a single value.
> However, receiving some values and creating the work item is no problem
> until I add the invoke tag to my process. I really do nothing more but
> addig the tag.
> 
> Any help is appreciated, since I need this process to be up an running
> withing the next two days and I have no idea about the problem......
> 
> The engine complains with the following:
> 
> 2005-08-21 02:19:40,968 DEBUG http-8080-Processor21
> org.smcp.twister.client.TwisterWorkList - Got worklist for user admin
> 2005-08-21 02:19:41,125 ERROR Thread-78
> org.smcp.twister.engine.priv.messaging.impl.WSMessageBroker - Could not
> send message to webservice_sap : <?xml version="1.0" encoding="UTF-8"?>
> <ns1:getAvailableDays
> xmlns:ns1="http://mircojeske.diplomarbeit.ndr/testworkitem_wsdl"><PersNummer>17</PersNummer></ns1:getAvailableDays>
> javax.xml.rpc.ServiceException: Error processing WSDL document:
> java.io.IOException: Element
> {http://www.smartcomps.org/twister/types/workitem}workitem is referenced
> but not defined.
>     at org.apache.axis.client.Service.initService(Service.java:262)
>     at org.apache.axis.client.Service.<init>(Service.java:217)
>     at
> org.smcp.twister.engine.priv.messaging.impl.WSMessageBroker.sendMessage(WSMessageBroker.java:299)
>     at
> org.smcp.twister.engine.priv.messaging.impl.WSMessageBroker.syncSend(WSMessageBroker.java:115)
>     at
> org.smcp.twister.engine.priv.messaging.impl.WSMessageBroker.syncSend(WSMessageBroker.java:139)
>     at
> org.smcp.twister.engine.priv.messaging.MessageBroker.syncInvoke(MessageBroker.java:190)
>     at
> org.smcp.twister.engine.priv.core.dynamic.impl.InvokeECImpl.execute(InvokeECImpl.java:57)
>     at
> org.smcp.twister.engine.priv.core.dynamic.impl.SequenceECImpl.executeContextAt(SequenceECImpl.java:66)
>     at
> org.smcp.twister.engine.priv.core.dynamic.impl.SequenceECImpl.notifyTermination(SequenceECImpl.java:52)
>     at
> org.smcp.twister.engine.priv.core.dynamic.impl.ExecutionContextImpl.notifyTerminationToContainer(ExecutionContextImpl.java:157)
>     at
> org.smcp.twister.engine.priv.core.dynamic.impl.ReceiveECImpl.acknowledgeMessage(ReceiveECImpl.java:57)
>     at
> org.smcp.twister.engine.priv.TwisterEngineImpl$1.run(TwisterEngineImpl.java:278)
>     at
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:732)
>     at java.lang.Thread.run(Thread.java:534)
> 
> 
> and here are the files...first BPEL
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <process name="workitem_test"
>     targetNamespace="http://mircojeske.diplomarbeit.ndr/testworkitem"
>     xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
>     xmlns:lns="http://mircojeske.diplomarbeit.ndr/testworkitem_wsdl">
> <!-- ================================================================= -->
> <!-- KORRELATIONEN                                                     -->
> <!-- ================================================================= -->
>   <correlationSets>
>     <correlationSet name="requestFlow" properties="lns:employeeIdentNr"/>
>     <correlationSet name="workCorr" properties="lns:workitem"/>
>   </correlationSets>
> <!-- ================================================================= -->
> <!-- PARTNERLINKS                                                      -->
> <!-- ================================================================= -->
>   <partnerLinks>
>     <partnerLink name="testclient" partnerLinkType="lns:testworkitem"
> myRole="ServiceProvider" partnerRole="ServiceRequester"/>
>     <partnerLink myRole="sapServiceProvider" name="SAP"
> partnerRole="sapServiceProvider" partnerLinkType="lns:sapService_PL"/>
>   </partnerLinks>
> <!-- ================================================================= -->
> <!-- VARIABLEN                                                         -->
> <!-- ================================================================= -->
>   <variables>
>     <variable name="SAP_getAvailableDays_InputVariable"
> messageType="lns:getAvailableDaysRequest"/>
>     <variable name="SAP_getAvailableDays_OutputVariable"
> messageType="lns:getAvailableDaysResponse"/>
>     <variable name="receiveRequest"
> messageType="lns:testworkitemRequestMessage"/>
>     <variable name="response"
> messageType="lns:testworkitemResponseMessage"/>
>     <variable name="workItemDaten" messageType="lns:datenSupervisor"/>
>     <variable name="workAnswer" messageType="lns:answerMessage"/>
>     <variable name="answerSupervisor" messageType="lns:supervisorAnswer"/>
>   </variables>
> 
> <!-- ================================================================= -->
> <!-- PROZESSLOGIK                                                      -->
> <!-- ================================================================= -->
>   <sequence name="main">
>     <receive name="receiveInput" partnerLink="testclient"
> portType="lns:testworkitem" operation="initiate"
> variable="receiveRequest" createInstance="yes">
>       <correlations>
>         <correlation initiate="yes" set="requestFlow"/>
>       </correlations>
>     </receive>
>     <assign>
>       <copy>
>         <from variable="receiveRequest" part="employeeID"/>
>         <to variable="SAP_getAvailableDays_InputVariable"
> part="PersNummer"/>
>       </copy>
>     </assign>
> 
>         <assign name="copy_workItem">
>           <copy>
>             <from>supervisor</from>
>             <to variable="workItemDaten" part="wipart" query="/user"/>
>           </copy>
>           <copy>
>             <from>Bitte Urlaubsantrag abzeichnen...
>             </from>
>             <to variable="workItemDaten" part="wipart"
> query="/description"/>
>           </copy>
>           <copy>
>             <from variable="receiveRequest" part="employeeID"/>
>             <to variable="workItemDaten" part="employeeID"/>
>           </copy>
>           <copy>
>             <from variable="receiveRequest" part="fromDate"/>
>             <to variable="workItemDaten" part="fromDate"/>
>           </copy>
>           <copy>
>             <from variable="receiveRequest" part="toDate"/>
>             <to variable="workItemDaten" part="toDate"/>
>           </copy>
>         </assign>
>         <invoke partnerLink="approver" portType="WorkListPT"
> operation="createWork" inputVariable="workItemDaten"
> outputVariable="workAnswer" name="init_workItem">
>           <correlations>
>             <correlation initiate="yes" set="workCorr" pattern="in"/>
>           </correlations>
>         </invoke>
>         <receive partnerLink="WorkListMgr" portType="WorkListAnswerPT"
> operation="receiveAnswer" variable="answerSupervisor"
> createInstance="no" name="wait_for_answer">
>           <correlations>
>             <correlation initiate="no" set="workCorr"/>
>           </correlations>
>         </receive>
>     <invoke
>     name="getAvailable_days"
>     partnerLink="SAP"
>     portType="lns:webservice_sap"
>     operation="getAvailableDays"
>     inputVariable="SAP_getAvailableDays_InputVariable"
>     outputVariable="SAP_getAvailableDays_OutputVariable">
>       <correlations>
>         <correlation initiate="no" set="requestFlow"/>
>       </correlations>
>     </invoke>
>   </sequence>
> </process>
> 
> 
> -------------------------------    and the WSDL
> 
> <definitions name="testworkitem_wsdl"
>     targetNamespace="http://mircojeske.diplomarbeit.ndr/testworkitem_wsdl"
>     xmlns="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>     xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>     xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
>     xmlns:lns="http://mircojeske.diplomarbeit.ndr/testworkitem_wsdl"
>     xmlns:wi="http://www.smartcomps.org/twister/types/workitem"
>     xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
> 
>   <types>
>   <schema
> targetNamespace="http://mircojeske.diplomarbeit.ndr/testworkitem_wsdl"
> xmlns="http://www.w3.org/2001/XMLSchema">
>    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
>    <complexType name="Employee">
>     <sequence>
>      <element name="availableDays" type="xsd:int"/>
>      <element name="employeeID" nillable="true" type="xsd:string"/>
>      <element name="name" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="EmployeeAbsence">
>     <sequence>
>      <element name="employeeID" nillable="true" type="xsd:string"/>
>      <element name="entry" type="xsd:boolean"/>
>     </sequence>
>    </complexType>
>   </schema>
>  </types>
> 
>     <bpws:property name="employeeIdentNr" type="xsd:string"/>
>     <bpws:propertyAlias propertyName="employeeIdentNr"
> messageType="lns:testworkitemRequestMessage" part="employeeID"/>
>     <bpws:propertyAlias propertyName="employeeIdentNr"
> messageType="lns:datenSupervisor" part="employeeID"/>
>     <bpws:propertyAlias propertyName="employeeIdentNr"
> messageType="lns:getAvailableDaysResponse" part="employeeID"/>
> 
>     <bpws:property name="workitem" type="xsd:string"/>
>     <bpws:propertyAlias propertyName="workitem"
> messageType="workMessage" part="wipart" query="/workitemid"/>
> 
>    <message name="datenSupervisor">
>       <part name="wipart" element="wi:workitem"/>
>       <part name="employeeID" element="xsd:string"/>
>       <part name="wishAmount" element="xsd:string"/>
>       <part name="fromDate" element="xsd:string"/>
>       <part name="toDate" element="xsd:string"/>
>    </message>
>     <message name="testworkitemRequestMessage">
>         <part name="employeeID" type="xsd:string"/>
>         <part name="wishAmount" type="xsd:int"/>
>         <part name="fromDate" type="xsd:string"/>
>         <part name="toDate" type="xsd:string"/>
>     </message>
>     <message name="testworkitemResponseMessage">
>         <part name="return" type="xsd:string"/>
>     </message>
>     <message name="supervisorAnswer">
>         <part name="accept" element="xsd:string"/>
>         <part name="reason" element="xsd:string"/>
>     </message>
>    <message name="getAvailableDaysResponse">
>       <part name="getAvailableDaysReturn" type="lns:Employee"/>
>    </message>
>    <message name="getAvailableDaysRequest">
>       <part name="PersNummer" type="xsd:string"/>
>    </message>
> 
>    <portType name="webservice_sap">
>       <operation name="getAvailableDays" parameterOrder="PersNummer">
>          <input message="lns:getAvailableDaysRequest"
> name="getAvailableDaysRequest"/>
>          <output message="lns:getAvailableDaysResponse"
> name="getAvailableDaysResponse"/>
>       </operation>
>    </portType>
>     <portType name="testworkitem">
>         <operation name="initiate">
>             <input message="lns:testworkitemRequestMessage"/>
>         </operation>
>     </portType>
>     <portType name="testworkitemCallback">
>         <operation name="onResult">
>             <input message="lns:testworkitemResponseMessage"/>
>         </operation>
>     </portType>
> 
>    <binding name="webservice_sapSoapBinding" type="lns:webservice_sap">
>       <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <operation name="getAvailableDays">
>          <wsdlsoap:operation soapAction=""/>
>          <input name="getAvailableDaysRequest">
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://mircojeske.diplomarbeit.ndr/testworkitem_wsdl"
> use="encoded"/>
>          </input>
>          <output name="getAvailableDaysResponse">
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://mircojeske.diplomarbeit.ndr/testworkitem_wsdl"
> use="encoded"/>
>          </output>
>       </operation>
>    </binding>
> 
>    <service name="webservice_sapService">
>       <port binding="lns:webservice_sapSoapBinding" name="webservice_sap">
>          <wsdlsoap:address
> location="http://localhost:8080/webservice_sap_test/services/webservice_sap"/>
>       </port>
>    </service>
> 
>     <plnk:partnerLinkType name="sapService_PL">
>         <plnk:role name="sapServiceProvider">
>             <plnk:portType name="lns:webservice_sap"/>
>         </plnk:role>
>         <plnk:role name="sapServiceRequester">
>             <plnk:portType name="lns:webservice_sap"/>
>         </plnk:role>
>     </plnk:partnerLinkType>
> <plnk:partnerLinkType name="testworkitem">
>    <plnk:role name="ServiceProvider">
>        <plnk:portType name="lns:testworkitem"/>
>    </plnk:role>
>    <plnk:role name="ServiceRequester">
>        <plnk:portType name="lns:testworkitemCallback"/>
>    </plnk:role>
> </plnk:partnerLinkType>
> </definitions>
> 
> 
> 
> 
> 
> 
>

Mime
View raw message