incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mirco Jeske <m...@mircojeske.de>
Subject workitem is referenced but not defined
Date Sat, 20 Aug 2005 17:01:55 GMT
Hi,

since I don't know if the WSDL import is working (according to my last 
mail it doesn't) I merged the WSDL docs and got a brand new twister error:

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)
      .....

hmmm, declaring the namespace for workitem goes well in any other docs, 
but not in a merged doc. A validator tells me that everything is fine 
but the xmlns:wi declaration.
BTW: calling http://www.smartcomps.org/twister/types/workitem results in 
an error!

here is the WSD, please look at the message name="datenSupervisor":

<definitions name="urlaubsantrag_wsdl"
    targetNamespace="http://mircojeske.diplomarbeit.ndr/urlaubsantrag_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/urlaubsantrag_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/urlaubsantrag_wsdl" 
xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="Header">
    <sequence>
     <element name="contractID" nillable="true" type="xsd:string"/>
     <element name="duration" type="xsd:long"/>

    </sequence>
   </complexType>
   <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:urlaubsantragRequestMessage" part="employeeID"/>
    <bpws:propertyAlias propertyName="employeeIdentNr" 
messageType="lns:datenSupervisor" part="employeeID"/>

    <bpws:property name="itemNr" type="xsd:string"/>
    <bpws:propertyAlias propertyName="itemNr" 
messageType="lns: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="getHeaderDataFromContractRequest">
      <part name="purchaseorder" type="xsd:string"/>
   </message>

   <message name="getAvailableDaysResponse">
      <part name="getAvailableDaysReturn" type="lns:Employee"/>
   </message>

   <message name="getHeaderDataFromContractResponse">
      <part name="getHeaderDataFromContractReturn" type="lns:Header"/>
   </message>

   <message name="getAvailableDaysRequest">
      <part name="PersNummer" type="xsd:string"/>
   </message>

   <message name="createEmployeeAbsenceRequest">
      <part name="employeeID" type="xsd:string"/>
   </message>

   <message name="createEmployeeAbsenceResponse">
      <part name="createEmployeeAbsenceReturn" type="lns:EmployeeAbsence"/>
   </message>   
    <message name="urlaubsantragRequestMessage">
        <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="urlaubsantragResponseMessage">
        <part name="return" type="xsd:string"/>
    </message>
    <message name="supervisorAnswer">
        <part name="accept" element="xsd:string"/>
        <part name="reason" element="xsd:string"/>
    </message>
   
   <portType name="webservice_sap">
      <operation name="getHeaderDataFromContract" 
parameterOrder="purchaseorder">
         <input message="lns:getHeaderDataFromContractRequest" 
name="getHeaderDataFromContractRequest"/>
         <output message="lns:getHeaderDataFromContractResponse" 
name="getHeaderDataFromContractResponse"/>
      </operation>
      <operation name="getAvailableDays" parameterOrder="PersNummer">
         <input message="lns:getAvailableDaysRequest" 
name="getAvailableDaysRequest"/>
         <output message="lns:getAvailableDaysResponse" 
name="getAvailableDaysResponse"/>
      </operation>
      <operation name="createEmployeeAbsence" parameterOrder="employeeID">
         <input message="lns:createEmployeeAbsenceRequest" 
name="createEmployeeAbsenceRequest"/>
         <output message="lns:createEmployeeAbsenceResponse" 
name="createEmployeeAbsenceResponse"/>
      </operation>
   </portType>     
    <portType name="urlaubsantrag">
        <operation name="initiate">
            <input message="lns:urlaubsantragRequestMessage"/>
        </operation>
    </portType>
    <portType name="urlaubsantragCallback">
        <operation name="onResult">
            <input message="lns:urlaubsantragResponseMessage"/>
        </operation>
    </portType>
   
   <binding name="webservice_sapSoapBinding" type="lns:webservice_sap">
      <wsdlsoap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/>
      <operation name="getHeaderDataFromContract">
         <wsdlsoap:operation soapAction=""/>
         <input name="getHeaderDataFromContractRequest">
            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://saptest.ndr.diplomarbeit.mircojeske" use="encoded"/>
         </input>
         <output name="getHeaderDataFromContractResponse">
            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://saptest.ndr.diplomarbeit.mircojeske" use="encoded"/>
         </output>
      </operation>
      <operation name="getAvailableDays">
         <wsdlsoap:operation soapAction=""/>
         <input name="getAvailableDaysRequest">
            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://saptest.ndr.diplomarbeit.mircojeske" use="encoded"/>
         </input>
         <output name="getAvailableDaysResponse">
            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://saptest.ndr.diplomarbeit.mircojeske" use="encoded"/>
         </output>
      </operation>
      <operation name="createEmployeeAbsence">
         <wsdlsoap:operation soapAction=""/>
         <input name="createEmployeeAbsenceRequest">
            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://saptest.ndr.diplomarbeit.mircojeske" use="encoded"/>
         </input>
         <output name="createEmployeeAbsenceResponse">
            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://saptest.ndr.diplomarbeit.mircojeske" use="encoded"/>
         </output>
      </operation>
   </binding>   

   <service name="webservice_sapService">
      <port binding="lns:webservice_sapSoapBinding" name="webservice_sap">
         <wsdlsoap:address 
location="http://192.168.1.6:8080/sap_webservice_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="urlaubsantrag">
        <plnk:role name="urlaubsantragProvider">
            <plnk:portType name="urlaubsantrag"/>
        </plnk:role>
        <plnk:role name="urlaubsantragRequester">
            <plnk:portType name="urlaubsantragCallback"/>
        </plnk:role>
    </plnk:partnerLinkType>
</definitions>





Mime
View raw message