On 10/23/07, Prasanna Rajaperumal <[EMAIL PROTECTED]> 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
> [EMAIL PROTECTED]://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

Reply via email to