| From | Sent On | Attachments |
|---|---|---|
| buddhika chamith | Apr 19, 2009 11:40 pm | |
| Ciaran | Apr 20, 2009 12:40 am | |
| buddhika chamith | Apr 20, 2009 12:23 pm | |
| Alex Boisvert | Apr 20, 2009 2:19 pm | |
| Alexis Midon | Apr 21, 2009 12:19 pm | |
| buddhika chamith | Apr 22, 2009 10:57 am | |
| buddhika chamith | Apr 22, 2009 11:08 am | .java |
| Alex Boisvert | Apr 22, 2009 11:21 am | .java |
| buddhika chamith | Apr 22, 2009 12:47 pm |
| Subject: | Re: Deployment Web Service Inconsistancies | |
|---|---|---|
| From: | Ciaran (ciar...@gmail.com) | |
| Date: | Apr 20, 2009 12:40:31 am | |
| List: | org.apache.ode.user | |
Rough guess, (and this is something that surprised me a while back until I read the code) Try re-formatting your SOAP request so it looks like :
<pmapi:deploy xmlns:pmapi="http://www.apache.org/ode/pmapi" xmlns:dep=" http://www.apache.org/ode/deployapi" xmlns:xmlmime=" http://www.w3.org/2005/05/xmlmime "><dep:name>xxx</dep:name><dep:package><dep:zip xmlmime:contentType="application/zip">base64encodedzip</dep:zip></dep:package></pmapi:deploy>
(that is all on one line.) Iirc when there's a carriage return either before or after the name then you get strange null pointer exceptions in the DeploymentWebservice code as it expects the Xml to be in a particular form and text-nodes in the DOM *really* make it un-happy. *HOWEVER* this doesn't sound like your un-deployment problem! Fwiw I've never reported this as a bug as it seems so deliberate I figure I'm mis-understanding something on my end (I look forward to being corrected by smarter folks shortly ! :) )
- Cj.
P.s. for those who care on current ODE 1_XX branch (r766055) the lines of interest are 112 - 114 on the DeploymentWebService.java
On Mon, Apr 20, 2009 at 7:41 AM, buddhika chamith <cham...@gmail.com>wrote:
Hi all,
I am trying to use ODE deployment web service to deploy and undeploy processes. I am using an commons HttpClient to invoke the deployment service. I tested the deployment web service of both ode-1.2 and ode -2.0. In ode-2.0 I was successful in deploying the service. But when i invoke the undeploy operation a strange thing happen. The process repository directory gets deleted altogether resulting in nullpointer exception in undeployment codes (ode successfully dispacthes to the undeploy operation in this case as well).
When i try to deploy the process using the same logic (with same SOAPMessage body and service URLs etc.) ode-1.2 doesnot correctly dispatch to the service operation. But in this case the problem occurs at Axis2 transport before going to ODE engine. (error message indicates that EPR for operation cannot be found.)
The SOAPBody is roughly in the following format
<pmapi:deploy xmlns:pmapi="http://www.apache.org/ode/pmapi" xmlns:dep=" http://www.apache.org/ode/deployapi" xmlns:xmlmime=" http://www.w3.org/2005/05/xmlmime"> <dep:name>xxx</dep:name> <dep:package> <dep:zip xmlmime:contentType="application/zip">base64encodedzip</dep:zip> </dep:package> </pmapi:deploy>
I greatly appreciate any help or comment in this regard. I want to know any changes present in those two ODE versions regarding process deployment, as well.(like changes in WSDL etc)
Thanks Chamith






.java