incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Ling <lin...@libero.it>
Subject News from invoke!
Date Wed, 09 Nov 2005 15:30:13 GMT
Hi,
I found an error in my wsdef, targetNamespace wasn't correct in types 
section.
So now I made a new step toward invoke... but...
a new strange Exception occurred!

An html tag in envelope?
In Italian: "Dove cavolo lo va a pescare un tag html 
nell'envelope??????" ;-)

2005-11-09 17:18:12,917 DEBUG http-8080-Processor25 
org.apache.agila.bpel.wsa.EngineWSA - Producing reply: <?xml 
version="1.0" encoding="UTF-8"?>
<message><return-code>0</return-code></message>
2005-11-09 17:18:12,930 INFO Thread-44 
org.apache.agila.bpel.engine.common.persistence.DBSessionManager - 
Beginning transaction with thread : Thread[Thread-44,5,main] and session 
net.sf.hibernate.impl.SessionImpl@132cb29
2005-11-09 17:18:15,072 INFO Thread-44 
org.apache.agila.bpel.engine.common.persistence.DBSessionManager - 
Commiting transaction with thread : Thread[Thread-44,5,main]
2005-11-09 17:18:15,273 ERROR Thread-45 
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></address><taxNumber>123456789abcdefg</taxNumber><cardNumber>123456789abcdefg</cardNumber><totalPrice>350.0</totalPrice></assessmentRequestMessage></assessmentRequest>
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: Bad envelope tag:  html
 faultActor:
 faultNode:
 faultDetail:
    {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: 
Bad envelope tag:  html
    at 
org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:70)
    at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
    at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
    at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown

Source)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

Source)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
    at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
    at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
    at org.apache.axis.client.Call.invoke(Call.java:2737)
    at org.apache.axis.client.Call.invoke(Call.java:1773)
    at 
org.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker.sendMessage(WSMessageBroker.java:336)
    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)

    {http://xml.apache.org/axis/}hostname:daltanius

org.xml.sax.SAXException: Bad envelope tag:  html
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
    at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
    at org.apache.axis.client.Call.invoke(Call.java:2737)
    at org.apache.axis.client.Call.invoke(Call.java:1773)
    at 
org.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker.sendMessage(WSMessageBroker.java:336)
    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)
Caused by: org.xml.sax.SAXException: Bad envelope tag:  html
    at 
org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:70)
    at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
    at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
    at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown

Source)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

Source)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
    at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    ... 11 more

---------------------------------- 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/divisione-wsdl/">
           
            <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="tns: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>

--------------------------------- 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:assessmentRequestMessage"/>
  </variables>
 
  <!-- Start process -->
  <sequence name="orderProcessing">
   
    <receive name="waitOrder"
             partnerLink="orderingPL" portType="ns:orderPT" 
operation="sendOrder"
             variable="orderVariable"
             createInstance="yes">
    </receive>
   
    <assign>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/name"/>
            <to variable="assessmentRequestVariable" 
part="assessmentRequestMessage" query="/name"/>
        </copy>
       <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/surname"/>
            <to variable="assessmentRequestVariable" 
part="assessmentRequestMessage" query="/surname"/>
        </copy>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/address"/>
            <to variable="assessmentRequestVariable" 
part="assessmentRequestMessage" query="/address"/>
        </copy>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/taxNumber"/>
            <to variable="assessmentRequestVariable" 
part="assessmentRequestMessage" query="/taxNumber"/>
        </copy>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/cardNumber"/>
            <to variable="assessmentRequestVariable" 
part="assessmentRequestMessage" query="/cardNumber"/>
        </copy>
        <copy>
            <from variable="orderVariable" part="orderMessage" 
query="/totalPrice"/>
            <to variable="assessmentRequestVariable" 
part="assessmentRequestMessage" query="/totalPrice"/>
        </copy>
    </assign>
   
    <!-- Invoke assessment service -->
    <invoke name="assessmentRequestInvoke"
            partnerLink="assessorPL"
            portType="ns:assessorServicePT"
            operation="assessmentRequest"
            inputVariable="assessmentRequestVariable"/>
  
  </sequence>
</process>

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


Mime
View raw message