incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Ling <lin...@libero.it>
Subject Cannot invoke
Date Wed, 26 Oct 2005 17:03:47 GMT
Hi,
I'm trying to invoke a web service deployed on another PC from an agila 
process.

The process instance page says: Invoked 1-way operation 
"assessmentRequest" on partner "assessorPL",
but seems that no message was sent.

I've seen tcp/ip traffic with ethereal (like tcpdump but with GUI) and i 
saw only first receive.

Thanks.

My wsdl and process:

------------------------------ wsdl 
--------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<definitions
  xmlns="http://schemas.xmlsoap.org/wsdl/"
  targetNamespace="http://davideling.altervista.org/divisione-wsdl/"
  xmlns:tns="http://davideling.altervista.org/divisione-wsdl/"
  xmlns:om="http://davideling.altervista.org/orderMessage"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"  
  xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
  xmlns:ns2="urn:assessorWebService/types"
 >
  <!-- Ordering -->
  <message name="orderMessage">
    <part element="om:orderMessage" name="order"/>
  </message>
 
  <portType name="orderPT">
      <operation name="sendOrder">
            <input message="tns:orderMessage"/>
        </operation>
  </portType> 
 
  <service name="orderBP">
    <port name="orderPT">
        <soap:address 
location="http://localhost:8080/twister-ws/services/divisione-privato"/>
    </port>
  </service>
 
  <plnk:partnerLinkType name="orderLT">
      <plnk:role name="orderReceiver">
          <plnk:portType name="orderPT"/>
      </plnk:role>
  </plnk:partnerLinkType>  

  <!-- Assessment -->
 
  <message name="assessorWebServiceSEI_assessmentRequest">
         <part name="PrivateClientType_1" type="ns2:PrivateClientType"/>
  </message>
   
  <portType name="assessorWebServiceSEI">
         <operation name="assessmentRequest">
             <input message="tns:assessorWebServiceSEI_assessmentRequest"/>
         </operation>
  </portType>
 
  <binding name="assessorWebServiceSEIBinding" 
type="tns:assessorWebServiceSEI">
       <soap:binding transport="http://schemas.xmlsoap.org/soap/http" 
style="rpc"/>
       <operation name="assessmentRequest">
               <soap:operation soapAction="urn:assessorWebService/wsdl"/>
               <input>
                    <soap:body use="literal" 
namespace="urn:assessorWebService/wsdl"/>
               </input>
       </operation>
  </binding>
 
  <service name="AssessorWebService">
      <port name="assessorWebServiceSEIPort" 
binding="tns:assessorWebServiceSEIBinding">
         <soap:address 
location="http://192.168.13.4:8081/assessorWebService/assessorWebService" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
      </port>
  </service>

  <plnk:partnerLinkType name="assessmentLT">
      <plnk:role name="assessmentRequestReceiver">
          <plnk:portType name="assessorWebServiceSEI"/>
      </plnk:role>
  </plnk:partnerLinkType>
 
</definitions>

---------------------------- Process 
------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<process xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         name="divisione-privato"
         
targetNamespace="http://davideling.altervista.org/bpel/divisione-privato"
         xmlns:tns="http://davideling.altervista.org/bpel/divisione-privato"
         xmlns:ns="http://davideling.altervista.org/divisione-wsdl/"
 >
     
  <partnerLinks>
    <partnerLink name="orderingPL" partnerLinkType="ns:orderLT" 
myRole="orderReceiver"/>
    <partnerLink name="assessorPL" partnerLinkType="ns:assessmentLT" 
partnerRole="assessmentRequestReceiver"/>
  </partnerLinks>
 
  <variables>
    <variable name="orderVariable" messageType="ns:orderMessage"/>
    <variable name="assessmentRequestVariable" 
messageType="ns:assessorWebServiceSEI_assessmentRequest"/>
  </variables>
 
  <sequence name="orderProcessing">
   
    <receive name="waitOrder"
             partnerLink="orderingPL" portType="orderPT" 
operation="sendOrder"
             variable="orderVariable"
             createInstance="yes">
    </receive>
   
    <assign>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/name"/>
            <to variable="assessmentRequestVariable" 
part="PrivateClientType_1" query="/name"/>
        </copy>
       <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/surname"/>
            <to variable="assessmentRequestVariable" 
part="PrivateClientType_1" query="/surname"/>
        </copy>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/address"/>
            <to variable="assessmentRequestVariable" 
part="PrivateClientType_1" query="/address"/>
        </copy>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/taxNumber"/>
            <to variable="assessmentRequestVariable" 
part="PrivateClientType_1" query="/taxNumber"/>
        </copy>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/cardNumber"/>
            <to variable="assessmentRequestVariable" 
part="PrivateClientType_1" query="/cardNumber"/>
        </copy>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/totalPrice"/>
            <to variable="assessmentRequestVariable" 
part="PrivateClientType_1" query="/totalPrice"/>
        </copy>
    </assign>
   
    <invoke name="assessmentRequestInvoke"
            partnerLink="assessorPL"
            portType="assessorWebServiceSEI"
            operation="assessmentRequest"
            inputVariable="assessmentRequestVariable"/>
 
  </sequence>
</process>



Mime
View raw message