[OLINGO-266] fit metadata and service document
This commit is contained in:
parent
7dc44812c1
commit
e57edd71dd
|
@ -27,7 +27,6 @@ import org.apache.olingo.client.core.ODataClientFactory;
|
|||
import org.apache.olingo.commons.api.domain.ODataServiceDocument;
|
||||
import org.apache.olingo.commons.api.edm.Edm;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
public class BasicITCase {
|
||||
|
@ -50,7 +49,6 @@ public class BasicITCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void readMetadata() {
|
||||
EdmMetadataRequest request = odata.getRetrieveRequestFactory().getMetadataRequest(BASE_URI + "/$metadata");
|
||||
assertNotNull(request);
|
||||
|
|
|
@ -49,8 +49,8 @@ public class ODataHttpHandlerImpl implements ODataHttpHandler {
|
|||
|
||||
private ODataHandler handler;
|
||||
|
||||
public ODataHttpHandlerImpl(final OData server, final Edm edm) {
|
||||
handler = new ODataHandler(server, edm);
|
||||
public ODataHttpHandlerImpl(final OData odata, final Edm edm) {
|
||||
handler = new ODataHandler(odata, edm);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -529,14 +529,14 @@ public class MetadataDocumentXmlSerializer {
|
|||
}
|
||||
|
||||
private void appendReference(final XMLStreamWriter writer) throws XMLStreamException {
|
||||
writer.writeStartElement(NS_EDMX, "Reference");
|
||||
// TODO: Where is this value comming from?
|
||||
writer.writeAttribute("Uri", "http://docs.oasis-open.org/odata/odata/v4.0/cs02/vocabularies/Org.OData.Core.V1.xml");
|
||||
writer.writeEmptyElement(NS_EDMX, "Include");
|
||||
// TODO: Where is this value comming from?
|
||||
writer.writeAttribute(XML_NAMESPACE, "Org.OData.Core.V1");
|
||||
// TODO: Where is this value comming from?
|
||||
writer.writeAttribute(XML_ALIAS, "Core");
|
||||
writer.writeEndElement();
|
||||
// writer.writeStartElement(NS_EDMX, "Reference");
|
||||
// // TODO: Where is this value comming from?
|
||||
// writer.writeAttribute("Uri", "http://docs.oasis-open.org/odata/odata/v4.0/cs02/vocabularies/Org.OData.Core.V1.xml");
|
||||
// writer.writeEmptyElement(NS_EDMX, "Include");
|
||||
// // TODO: Where is this value comming from?
|
||||
// writer.writeAttribute(XML_NAMESPACE, "Org.OData.Core.V1");
|
||||
// // TODO: Where is this value comming from?
|
||||
// writer.writeAttribute(XML_ALIAS, "Core");
|
||||
// writer.writeEndElement();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue