|
|
Choosing A Webhost: |
Re: ServiceException: msg#00010apache.agila.user
Hi, My eyes might be cheating me but I can't see anything wrong with your WSDL. Yet it seems that Axis doesn't like it. Would you try using directly the type in the part definition instead of an element and see if there's any difference? It's a dummy test but I would like to see how it behaves. Cheers, Matthieu. On 11/8/05, Davide Ling <lingda@xxxxxxxxx> wrote: > > Hello, > I have new problems with invoke, please help me. > > When I run my test I have the following Exception in agila logs > > 2005-11-08 18:23:56,394 DEBUG http-8080-Processor22 > org.apache.agila.bpel.wsa.EngineWSA - The following message has been > received : <?xml version="1.0" encoding="UTF-8"?> > > <message><orderMessage><name>Pippo</name><surname>Mazinga</surname><address><street>Piazza > Cristoforo > > Colombo</street><number>156</number><city>Firenze</city><zip>20089</zip><country>Italy</country></address><taxNumber>123456789abcdefg</taxNumber><cardNumber>123456789abcdefg</cardNumber><itemList><item><productCode>12345</productCode><quantity>4</quantity></item><item><productCode>6789</productCode><quantity>2</quantity></item></itemList><shipMode>normal</shipMode><totalPrice> > 350.0</totalPrice><emailAddress>lingda@xxxxxxxxx > </emailAddress></orderMessage></message> > 2005-11-08 18:23:56,397 DEBUG http-8080-Processor22 > org.apache.agila.bpel.wsa.EngineWSA - Sending it to (orderingPL, > orderPT, http://www.apache.org/agila, sendOrder) > 2005-11-08 18:23:56,404 INFO http-8080-Processor22 > org.apache.agila.bpel.engine.common.persistence.DBSessionManager - > Beginning transaction with thread : Thread[http-8080-Processor22,5,main] > and session net.sf.hibernate.impl.SessionImpl@14cee08 > 2005-11-08 18:23:56,447 DEBUG http-8080-Processor22 > org.apache.agila.bpel.engine.priv.AgilaEngineImpl - Finding up which > activity instance the message is targeted at. > 2005-11-08 18:23:56,836 DEBUG http-8080-Processor22 > org.apache.agila.bpel.engine.priv.messaging.impl.MessageControllerImpl - > Step 5. > 2005-11-08 18:23:56,839 DEBUG http-8080-Processor22 > org.apache.agila.bpel.engine.priv.messaging.impl.MessageControllerImpl - > Step 5.1. > 2005-11-08 18:23:56,850 DEBUG http-8080-Processor22 > org.apache.agila.bpel.engine.priv.AgilaEngineImpl - An activity instance > has been found. > 2005-11-08 18:23:56,898 INFO http-8080-Processor22 > org.apache.agila.bpel.engine.common.persistence.DBSessionManager - > Commiting transaction with thread : Thread[http-8080-Processor22,5,main] > 2005-11-08 18:23:56,901 DEBUG http-8080-Processor22 > org.apache.agila.bpel.engine.priv.AgilaEngineImpl - Forwarding message > to activity ExecutionContextImpl{id=10,status=1,index=1} ::: > ReceiveECImpl{waiting for "sendOrder" from partner "orderingPL". > Asynchronous callback.} > 2005-11-08 18:23:56,905 DEBUG http-8080-Processor22 > 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 18:23:56,941 INFO Thread-50 > org.apache.agila.bpel.engine.common.persistence.DBSessionManager - > Beginning transaction with thread : Thread[Thread-50,5,main] and session > net.sf.hibernate.impl.SessionImpl@e28099 > 2005-11-08 18:23:58,963 INFO Thread-50 > org.apache.agila.bpel.engine.common.persistence.DBSessionManager - > Commiting transaction with thread : Thread[Thread-50,5,main] > 2005-11-08 18:23:59,110 ERROR Thread-51 > 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>Mazinga</surname><address><street>Piazza > Cristoforo > > Colombo</street><number>156</number><city>Firenze</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/}assessmentRequestType > 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) > > Here my wsdef and process > > ---------------------- 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: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> > > <!-- Assessment --> > > <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="assessmentRequestType"> > <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 name="assessmentRequestMessage" > type="tns:assessmentRequestType" /> > </xsd:schema> > > </types> > <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 > >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | ServiceException, Davide Ling |
|---|---|
| Next by Date: | Re: ServiceException, Davide Ling |
| Previous by Thread: | ServiceException, Davide Ling |
| Next by Thread: | Re: ServiceException, Davide Ling |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |