incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Ling <lin...@libero.it>
Subject Changes made but...
Date Tue, 08 Nov 2005 18:24:14 GMT
Hi,
I made some changes in my wsdef but now I have another simalr problem

[...]
2005-11-08 20:13:24,924 DEBUG http-8080-Processor24 
org.apache.agila.bpel.engine.priv.AgilaEngineImpl - An activity instance 
has been found.
2005-11-08 20:13:24,979 INFO http-8080-Processor24 
org.apache.agila.bpel.engine.common.persistence.DBSessionManager - 
Commiting transaction with thread : Thread[http-8080-Processor24,5,main]
2005-11-08 20:13:24,982 DEBUG http-8080-Processor24 
org.apache.agila.bpel.engine.priv.AgilaEngineImpl - Forwarding message 
to activity ExecutionContextImpl{id=14,status=1,index=1} ::: 
ReceiveECImpl{waiting for "sendOrder" from partner "orderingPL". 
Asynchronous callback.}
2005-11-08 20:13:24,986 DEBUG http-8080-Processor24 
org.apache.agila.bpel.wsa.EngineWSA - Producing reply: <?xml 
version="1.0" encoding="UTF-8"?>
<message><return-code>0</return-code></message>
2005-11-08 20:13:24,999 INFO Thread-46 
org.apache.agila.bpel.engine.common.persistence.DBSessionManager - 
Beginning transaction with thread : Thread[Thread-46,5,main] and session 
net.sf.hibernate.impl.SessionImpl@d9783e
2005-11-08 20:13:26,949 INFO Thread-46 
org.apache.agila.bpel.engine.common.persistence.DBSessionManager - 
Commiting transaction with thread : Thread[Thread-46,5,main]
2005-11-08 20:13:27,002 ERROR Thread-47 
org.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker - Could 
not send message to assessorServicePT : <?xml version="1.0" 
encoding="UTF-8"?>
<assessmentRequest 
xmlns="http://davideling.altervista.org/divisione-wsdl/"><assessmentRequestMessage 
xmlns=""><name>Pippo</name><surname>Ling</surname><address><street>Piazza

Cristoforo 
Colombo</street><number>156</number><city>Genova</city><zip>20089</zip><country>Italy</country></address><taxNumber>123456789abcdefg</taxNumber><cardNumber>123456789abcdefg</cardNumber><totalPrice>350.0</totalPrice></assessmentRequestMessage></assessmentRequest>
javax.xml.rpc.ServiceException: Error processing WSDL document: 
java.io.IOException: Type 
{http://davideling.altervista.org/divisione-wsdl/}itemListType 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.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker.sendMessage(WSMessageBroker.java:314)
    at 
org.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker.syncSend(WSMessageBroker.java:130)
    at 
org.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker$1.run(WSMessageBroker.java:94)
    at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
    at java.lang.Thread.run(Thread.java:595)

------------------------------- wsdef ----------------------------------

<?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: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/"
    >
   
    <types>
       
        <xsd:schema 
targetNamespace="http://davideling.altervista.org/assessorService/">
           
            <xsd:complexType name="addressType">
                <xsd:sequence>
                    <xsd:element name="street" type="xsd:string" />
                    <xsd:element name="number" type="xsd:string" />
                    <xsd:element name="city" type="xsd:string" />
                    <xsd:element name="zip" type="xsd:string" />
                    <xsd:element name="country" type="xsd:string" />
                </xsd:sequence>
            </xsd:complexType>
           
           
            <xsd:complexType name="itemListType">
                <xsd:sequence>
                    <xsd:element name="item" minOccurs="1" 
maxOccurs="unbounded">
                        <xsd:complexType>
                            <xsd:sequence>
                                <xsd:element name="productCode" 
type="xsd:string" />
                                <xsd:element default="1" name="quantity" 
type="xsd:integer" />
                            </xsd:sequence>
                        </xsd:complexType>
                    </xsd:element>
                </xsd:sequence>
            </xsd:complexType>
           
            <xsd:complexType name="orderMessageType">
                <xsd:sequence>
                    <xsd:element name="name" type="xsd:string"/>
                    <xsd:element name="surname" type="xsd:string"/>
                    <xsd:element name="address" type="tns:addressType"/>
                    <xsd:element name="taxNumber" type="xsd:string"/>
                    <xsd:element name="cardNumber" type="xsd:string"/>
                    <xsd:element name="itemList" type="tns:itemListType"/>
                    <xsd:element name="shipMode">
                        <xsd:simpleType>
                            <xsd:restriction base="xsd:string">
                                <xsd:enumeration value="normal"/>
                                <xsd:enumeration value="fast"/>
                                <xsd:enumeration value="fastest"/>
                            </xsd:restriction>
                        </xsd:simpleType>
                    </xsd:element>
                    <xsd:element name="totalPrice" type="xsd:double"/>
                    <xsd:element name="emailAddress" type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>
   
            <xsd:element name="orderMessage" type="orderMessageType"/>
           
            <xsd:element name="assessmentRequestMessage">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="name" type="xsd:string" />
                        <xsd:element name="surname" type="xsd:string" />
                        <xsd:element name="address" 
type="tns:addressType" />
                        <xsd:element name="taxNumber" type="xsd:string" />
                        <xsd:element name="cardNumber" type="xsd:string" />
                        <xsd:element name="totalPrice" type="xsd:double" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
       
            <!-- <xsd:element name="assessmentRequestMessage"
            type="tns:assessmentRequestType" /> -->
        </xsd:schema>   
    </types>
   
    <!-- Ordering -->
    <message name="orderMessage">
        <part element="tns:orderMessage" name="order"/>
    </message>
 
    <portType name="orderPT">
        <operation name="sendOrder">
            <input message="tns:orderMessage"/>
        </operation>
    </portType>
  
    <!-- Assessment -->
   
   
    <message name="assessmentRequestMessage">
        <part name="assessmentRequestMessage" 
element="tns:assessmentRequestMessage"></part>
    </message>
    <portType name="assessorServicePT">
        <operation name="assessmentRequest">
            <input message="tns:assessmentRequestMessage" />
        </operation>
    </portType>
    <binding name="assessorServiceBinding"
        type="tns:assessorServicePT">
        <soap:binding style="document"
        transport="http://schemas.xmlsoap.org/soap/http" />
        <operation name="assessmentRequest">
            <soap:operation
            
soapAction="http://davideling.altervista.org/assessorService/NewOperation" 
/>
            <input>
                <soap:body use="literal" />
            </input>
        </operation>
    </binding>
    <service name="assessorService">
        <port binding="tns:assessorServiceBinding"
            name="assessorServicePT">
            <soap:address location="http://GIG:8081/assessorService/" />
        </port>
    </service>
 
    <!-- PartnerLinkType definition-->
    <plnk:partnerLinkType name="orderLT">
        <plnk:role name="orderReceiver">
            <plnk:portType name="orderPT"/>
        </plnk:role>
    </plnk:partnerLinkType>
 
    <plnk:partnerLinkType name="assessmentLT">
        <plnk:role name="assessmentRequestReceiver">
            <plnk:portType name="assessorServicePT"/>
        </plnk:role>
    </plnk:partnerLinkType>
   
</definitions>

-- 
Davide Ling
Sito personale - http://davideling.altervista.org


Mime
View raw message