You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by Prasanna Rajaperumal <pr...@soa-matrix.com> on 2007/10/23 15:02:04 UTC
Issue with the Management Interface
I have a question
I have issued the listAllProcesses from the ServiceClientUtil
And the response message from ODE ends this way
</ns:process-info></process-info-list></axis2ns140:listAllProcessesResponse></soapenv:Body></soapenv:Envelope>
axis2ns140:listAllProcessesResponse - What is this element?
When I try to read the response using
resultDocument = ProcessInfoListDocument.Factory.parse(result.getXMLStreamReader());
org.apache.xmlbeans.XmlException: error: The document is not a process-info-list@http://www.apache.org/ode/pmapi/types/2006/08/02/: document element mismatch got listAllProcessesResponse@http://www.apache.org/ode/pmapi
I get this error.
So That extra element is causing this error and I checked the WSDL and message definition is fine.
I am not able to figure out the reason why this element is being added to the response and from where?
Any help would be very much appreciated.
Prasanna Rajaperumal
Re: Issue with the Management Interface
Posted by Alex Boisvert <bo...@intalio.com>.
On 10/23/07, Prasanna Rajaperumal <pr...@soa-matrix.com> wrote:
>
> I have issued the listAllProcesses from the ServiceClientUtil. And the
> response message from ODE ends this way
>
>
> </ns:process-info></process-info-list></axis2ns140:listAllProcessesResponse></soapenv:Body></soapenv:Envelope>
>
> axis2ns140:listAllProcessesResponse - What is this element?
It is the SOAP RPC response
wrapper<http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#Response_Wrappers>.
When I try to read the response using
> resultDocument = ProcessInfoListDocument.Factory.parse(
> result.getXMLStreamReader());
>
> org.apache.xmlbeans.XmlException: error: The document is not a
> process-info-list@http://www.apache.org/ode/pmapi/types/2006/08/02/:
> document element mismatch got listAllProcessesResponse@
> http://www.apache.org/ode/pmapi
>
> I get this error.
>
> So That extra element is causing this error and I checked the WSDL and
> message definition is fine.
> I am not able to figure out the reason why this element is being added to
> the response and from where?
You were on the right path... you just need to unwrap the RPC response first
by doing the following,
// extract message part "process-info-list"
OMElement part = result.getFirstChildWithName(new QName(null,
"process-info-list"));
// parse tProcessInfoList type
resultDocument = ProcessInfoListDocument.Factory.parse(
part.getXMLStreamReader());
regards,
alex