You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by lindian <li...@gmx.net> on 2009/05/08 13:15:32 UTC
WebResult issues
Hi there, I'm using CXF 2.2.1 (also tried it with older versions before). I
generated the cliient stub from a wsdl.
my problem is that the soap response is not unmarshalled correctly to the
pojo. already tried it with Request/ResultWrapper, changed the interface so
I can use ParameterStyle.BARE. Nothing changed.
anyone got an idea?
the binding:
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@WebResult(name = "archiveDocumentResponse", targetNamespace =
"http://webservice.dms3.ots.de", partName="archiveDocumentResponse")
@WebMethod
public at.graz.mdim.ws.ots.dms3.documentws.ArchiveDocumentResponse
archiveDocument(
@WebParam(partName="archiveDocument", name="archiveDocument",
targetNamespace = "http://webservice.dms3.ots.de")
ArchiveDocument archiveDocument
) throws Dms3Exception_Exception;
the soap response i get:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<archiveDocumentResponse xmlns="http://webservice.dms3.ots.de">
<archiveDocumentReturn>
<documentId>1982</documentId>
<format>PDF</format>
<version>1.0</version>
</archiveDocumentReturn>
</archiveDocumentResponse>
</soapenv:Body>
</soapenv:Envelope>
the pojo's values once I invoked the service and got a result back:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:archiveDocumentResponse xmlns:ns2="http://webservice.dms3.ots.de"
xmlns="http://types.webservice.dms3.ots.de"
xmlns:ns3="http://rzmsv164:18080/dms3ws/services/Dms3DocumentWebService">
<ns2:archiveDocumentReturn>
<documentId>0</documentId>
<format xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<version xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</ns2:archiveDocumentReturn>
</ns2:archiveDocumentResponse>
the pojo class:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"archiveDocumentReturn"
})
@XmlRootElement(name = "archiveDocumentResponse", namespace =
"http://webservice.dms3.ots.de")
public class ArchiveDocumentResponse {
@XmlElement(namespace = "http://webservice.dms3.ots.de", required =
true)
protected Dms3WebServiceDocumentIdVO archiveDocumentReturn;
public Dms3WebServiceDocumentIdVO getArchiveDocumentReturn() {
return archiveDocumentReturn;
}
public void setArchiveDocumentReturn(Dms3WebServiceDocumentIdVO value) {
this.archiveDocumentReturn = value;
}
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Dms3WebServiceDocumentIdVO", propOrder = {
"documentId",
"format",
"version"
})
public class Dms3WebServiceDocumentIdVO
extends Dms3WebServiceAbstractVO
{
@XmlElement(required = true, nillable = true)
protected long documentId;
@XmlElement(required = true, nillable = true)
protected String format;
@XmlElement(required = true, nillable = true)
protected String version;
public long getDocumentId() {
return documentId;
}
public void setDocumentId(long value) {
this.documentId = value;
}
public String getFormat() {
return format;
}
public void setFormat(String value) {
this.format = value;
}
public String getVersion() {
return version;
}
public void setVersion(String value) {
this.version = value;
}
}
--
View this message in context: http://www.nabble.com/WebResult-issues-tp23444127p23444127.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: WebResult issues
Posted by dunkelhaar <ar...@stadt.graz.at>.
resolved
--
View this message in context: http://www.nabble.com/WebResult-issues-tp23444127p23444304.html
Sent from the cxf-user mailing list archive at Nabble.com.