Child pages
  • Testing Web Services using browser
Skip to end of metadata
Go to start of metadata

We need to supply a key into URL, set request body and send it using HTTP POST command.

<ws:dataDeliveryRequest dateFrom="2014-04-28" dateTo="2014-04-28"
	xmlns="http://geomodel.eu/schema/data/request"
	xmlns:ws="http://geomodel.eu/schema/ws/data"
	xmlns:geo="http://geomodel.eu/schema/common/geo" 
	xmlns:pv="http://geomodel.eu/schema/common/pv" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<site id="site1dummy" name="First site" lat="48.61259" lng="20.827079">
		<geo:terrain elevation="111" azimuth="112" tilt="11"/>
		<geo:horizon>0:5 7.5:3 15:7 22.5:0</geo:horizon>
		<pv:geometry xsi:type="pv:GeometryFixedOneAngle" azimuth="165" tilt="22"/>
		<pv:system installedPower="100" installationType="FREE_STANDING" dateStartup="2011-06-01" availability="99">
			<pv:module type="ASI">
				<pv:degradation>3</pv:degradation>
				<pv:degradationFirstYear>8</pv:degradationFirstYear>
				<pv:surfaceReflectance>0.13</pv:surfaceReflectance>
				<pv:powerTolerance low="10" high="90"/>
				<pv:nominalOperatingCellTemp>15</pv:nominalOperatingCellTemp>
				<pv:openCircuitVoltageCoeff>7</pv:openCircuitVoltageCoeff>
				<pv:shortCircuitCurrentCoeff>4</pv:shortCircuitCurrentCoeff>
				<pv:PmaxCoeff>10</pv:PmaxCoeff>
			</pv:module>
			<pv:inverter count="2" interconnection="PARALLEL">
				<pv:efficiency xsi:type="pv:EfficiencyConstant" percent="94"/>
				<pv:startPower>0.1</pv:startPower>
				<pv:limitationACPower>5</pv:limitationACPower>
				<pv:nominalDCPower>8</pv:nominalDCPower>
			</pv:inverter>
			<pv:losses>
				<pv:acLosses cables="1" transformer="2.1"/>
				<pv:dcLosses cables="1.2" mismatch="0.65" snowPollution="7" monthlySnowPollution="4 2 3 4 5 7 8 4 7 4 5 1"/>
			</pv:losses>
			<pv:topology xsi:type="pv:TopologySimple" relativeSpacing="1.5"/>
		</pv:system>
	</site>	
	<processing key="GHI DIF DNI PVOUT" summarization="HOURLY" terrainShading="true"/>	
</ws:dataDeliveryRequest>
  • The screen should look like following:

Inline image 1

  • press "Launch Request" button, within approx. 1 second you will get the response in XML format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataDeliveryResponse
  xmlns="http://geomodel.eu/schema/ws/data"
  xmlns:ns2="http://geomodel.eu/schema/common/geo">
  <site id="site1dummy" lat="48.61259" lng="20.827079">
    <metadata><!-- ... ommitted ... --></metadata>
    <columns>GHI DIF DNI PVOUT</columns>
    <row dateTime="2014-04-28T00:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
    <row dateTime="2014-04-28T01:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
    <row dateTime="2014-04-28T02:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
    <row dateTime="2014-04-28T03:30:00.000Z" values="11.813644170761108 9.917020082473755 23.605985641479492 0.1673915982246399"/>
    <row dateTime="2014-04-28T04:30:00.000Z" values="123.3531265258789 61.477474212646484 314.45066833496094 0.04999290034174919"/>
    <row dateTime="2014-04-28T05:30:00.000Z" values="288.39630126953125 108.24936294555664 511.8774948120117 0.0"/>
    <row dateTime="2014-04-28T06:30:00.000Z" values="471.88634490966797 127.98162078857422 681.6969757080078 0.0"/>
    <row dateTime="2014-04-28T07:30:00.000Z" values="623.1808624267578 145.67950439453125 752.1683044433594 0.0"/>
    <row dateTime="2014-04-28T08:30:00.000Z" values="709.8129119873047 199.77864837646484 693.8481140136719 1.4283943697810173"/>
    <row dateTime="2014-04-28T09:30:00.000Z" values="733.9831390380859 244.24923706054688 613.0989990234375 3.8238842487335205"/>
    <row dateTime="2014-04-28T10:30:00.000Z" values="454.0811080932617 283.20931243896484 207.50992262363434 4.840439796447754"/>
    <row dateTime="2014-04-28T11:30:00.000Z" values="465.76876068115234 265.5719566345215 253.1083329319954 4.810706734657288"/>
    <row dateTime="2014-04-28T12:30:00.000Z" values="676.5417327880859 247.93432998657227 578.0866546630859 4.846049785614014"/>
    <row dateTime="2014-04-28T13:30:00.000Z" values="365.0899658203125 231.35183715820312 203.54104375839233 4.846049785614014"/>
    <row dateTime="2014-04-28T14:30:00.000Z" values="461.9159164428711 170.20080184936523 579.0048675537109 4.846049785614014"/>
    <row dateTime="2014-04-28T15:30:00.000Z" values="296.1929016113281 110.06002807617188 530.1699142456055 3.927860140800476"/>
    <row dateTime="2014-04-28T16:30:00.000Z" values="120.13659620285034 61.441532611846924 268.8115315437317 0.7259493097662926"/>
    <row dateTime="2014-04-28T17:30:00.000Z" values="5.932157635688782 5.613844275474548 3.7608110904693604 0.0"/>
    <row dateTime="2014-04-28T18:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
    <row dateTime="2014-04-28T19:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
    <row dateTime="2014-04-28T20:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
    <row dateTime="2014-04-28T21:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
    <row dateTime="2014-04-28T22:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
    <row dateTime="2014-04-28T23:30:00.000Z" values="0.0 0.0 0.0 0.0"/>
  </site>
</dataDeliveryResponse>
  • you can play with request, change date, parameters, and check the response as you like
  • No labels

11 Comments

  1. Please re-upload the image - probably bad import from older Wiki...

    1. wiki is not upgraded and the image is visible, at least for me

  2. I have same problem, cant see image. Maybe some permission issue.

  3. Anonymous

    415 Unsupported Media Type ...

    1. Hello, could you please describe in more detail what you are trying to do and what is the problem?

      415 Unsupported Media Type

      error is returned when there is no "Content-Type: application/xml" header defined, which describes format of request body.

      1. Anonymous

        1. I can see a size difference in context-length header. In my screenshot there is 2151 bytes, while in yours it is 1861 bytes.

          https://ibb.co/cfDyfH

          Another observation:

          Header: "Content-Type", "application/xml" in yout screenshot doesn't look correct, it should be Content-Type: application/xml

          It looks like you have added a header with name "Header" and two values: "Content-Type" and "application/xml", which is not correct, header name is "Content-Type" and value is "application/xml"

  4. Anonymous

    may you share an example java client on github or here?

    1. We have a guide for implementing a client using Maven and Spring WS in Java: Java client implementation guide

  5. Anonymous

    Java client has been tested?

    What is the value for ${spring.version} ?

    Sample code does not compile : mistake in "CalclulateRequest", Settings class not found, ....


  6. XML schemes are not available.

    E.g.: http://geomodel.eu/schema/ws/data and almost all others @ domain geomodel.eu.

    XML Validator cannot work.

Write a comment…