@Test public void adsNormalNotFound() throws XRoadServiceConsumptionException { ADSnormalVastusType v = adsXTeeServiceImpl.adsNormal(new NormalParamCallback() { public void populate(NormalParam normalParam) { Aadressid aadressid = normalParam.addNewAadressid(); Aadress aadress = aadressid.addNewAadress(); aadress.setTekst("kadaka tee 7001"); } }); NormalTulem result1 = v.getNormalTulemArray(0); ADSnormalVastusType.NormalTulem.Aadressid.Aadress firstAdr = result1.getAadressid().getAadressArray(0); Assert.assertFalse(StringUtils.isEmpty(firstAdr.getTekst())); }
public ADSnormalVastusType adsNormal(NormalParamCallback callback) throws XRoadServiceConsumptionException { ADSnormalDocument.ADSnormal dok = ADSnormalDocument.ADSnormal.Factory.newInstance(); ADSnormalRequestType request = dok.addNewRequest(); NormalParam normalParam = request.addNewNormalParam(); callback.populate(normalParam); XRoadMessage<ADSnormalResponseDocument.ADSnormalResponse> vastus = send(new XmlBeansXRoadMessage<ADSnormalDocument.ADSnormal>(dok), "ADSnormal", "v2", new NamespaceReplaceCallback(), null); ADSnormalVastusType v = vastus.getContent().getResponse().getADSnormalResult(); return v; }
Adsv5XTeeServiceImpl extends XRoadDatabaseService implements Adsv5XTeeService { public ADSnormalVastusType adsNormal(NormalParamCallback callback) throws XRoadServiceConsumptionException { ADSnormalDocument.ADSnormal dok = ADSnormalDocument.ADSnormal.Factory.newInstance(); ADSnormalRequestType request = dok.addNewRequest(); NormalParam normalParam = request.addNewNormalParam(); callback.populate(normalParam); XRoadMessage<ADSnormalResponseDocument.ADSnormalResponse> vastus = send(new XmlBeansXRoadMessage<ADSnormalDocument.ADSnormal>(dok), "ADSnormal", "v2", new NamespaceReplaceCallback(), null); ADSnormalVastusType v = vastus.getContent().getResponse().getADSnormalResult(); return v; } }
Adsv5XTeeServiceImpl extends XRoadDatabaseService implements Adsv5XTeeService { public ADSnormalVastusType adsNormal(NormalParamCallback callback) throws XRoadServiceConsumptionException { ADSnormalDocument.ADSnormal dok = ADSnormalDocument.ADSnormal.Factory.newInstance(); ADSnormalRequestType request = dok.addNewRequest(); NormalParam normalParam = request.addNewNormalParam(); callback.populate(normalParam); XRoadMessage<ADSnormalResponseDocument.ADSnormalResponse> vastus = send(new XmlBeansXRoadMessage<ADSnormalDocument.ADSnormal>(dok), "ADSnormal", "v2", new NamespaceReplaceCallback(), null); ADSnormalVastusType v = vastus.getContent().getResponse().getADSnormalResult(); return v; }  }
Adsv5XTeeServiceImpl extends XRoadDatabaseService implements Adsv5XTeeService { public ADSnormalVastusType adsNormal(NormalParamCallback callback) throws XRoadServiceConsumptionException { ADSnormalDocument.ADSnormal dok = ADSnormalDocument.ADSnormal.Factory.newInstance(); ADSnormalRequestType request = dok.addNewRequest(); NormalParam normalParam = request.addNewNormalParam(); callback.populate(normalParam); XRoadMessage<ADSnormalResponseDocument.ADSnormalResponse> vastus = send(new XmlBeansXRoadMessage<ADSnormalDocument.ADSnormal>(dok), "ADSnormal", "v2", new NamespaceReplaceCallback(), null); ADSnormalVastusType v = vastus.getContent().getResponse().getADSnormalResult(); return v; }  ADSnormalVastusType adsNormal(NormalParamCallback callback); }
Adsv5XTeeServiceImpl extends XRoadDatabaseService implements Adsv5XTeeService { public ADSnormalVastusType adsNormal(NormalParamCallback callback) throws XRoadServiceConsumptionException { ADSnormalDocument.ADSnormal dok = ADSnormalDocument.ADSnormal.Factory.newInstance(); ADSnormalRequestType request = dok.addNewRequest(); NormalParam normalParam = request.addNewNormalParam(); callback.populate(normalParam); XRoadMessage<ADSnormalResponseDocument.ADSnormalResponse> vastus = send(new XmlBeansXRoadMessage<ADSnormalDocument.ADSnormal>(dok), "ADSnormal", "v2", new NamespaceReplaceCallback(), null); ADSnormalVastusType v = vastus.getContent().getResponse().getADSnormalResult(); return v; }  ADSnormalVastusType adsNormal(NormalParamCallback callback);  }