v3


Click here for a complete list of operations.

AddDemandWithoutHeaderV2

AƱade una nueva demanda y retorna su identificador

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /mobile/api/v3.asmx HTTP/1.1
Host: ws.fotocasa.es
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ws.fotocasa.es/AddDemandWithoutHeaderV2"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddDemandWithoutHeaderV2 xmlns="http://ws.fotocasa.es/">
      <addDemandRequest>
        <demandId>long</demandId>
        <authToken>string</authToken>
        <bathrooms>int</bathrooms>
        <categoryTypeId>int</categoryTypeId>
        <conservationStates>string</conservationStates>
        <deviceToken>string</deviceToken>
        <encryptedUserId>string</encryptedUserId>
        <extras>string</extras>
        <languageId>int</languageId>
        <latitude>double</latitude>
        <longitude>double</longitude>
        <locations>string</locations>
        <offerTypeId>int</offerTypeId>
        <olapOriginId>int</olapOriginId>
        <periodicityId>int</periodicityId>
        <platformId>int</platformId>
        <portalId>int</portalId>
        <priceFrom>double</priceFrom>
        <priceTo>double</priceTo>
        <purchaseTypeId>int</purchaseTypeId>
        <radius>double</radius>
        <roomsFrom>int</roomsFrom>
        <roomsTo>int</roomsTo>
        <bathsFrom>int</bathsFrom>
        <bathsTo>int</bathsTo>
        <signature>string</signature>
        <subcategoryTypes>
          <int>int</int>
          <int>int</int>
        </subcategoryTypes>
        <surfaceFrom>int</surfaceFrom>
        <surfaceTo>int</surfaceTo>
        <text>string</text>
        <entityType>Undefined or User or UserEmail or Android or Iphone or Chrome or Firefox</entityType>
      </addDemandRequest>
    </AddDemandWithoutHeaderV2>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddDemandWithoutHeaderV2Response xmlns="http://ws.fotocasa.es/">
      <AddDemandWithoutHeaderV2Result>
        <Id>string</Id>
        <Name>string</Name>
        <Category>string</Category>
        <CategoryId>string</CategoryId>
        <OfferType>string</OfferType>
        <OfferTypeId>string</OfferTypeId>
        <PurchaseType>string</PurchaseType>
        <LocationLevel1>string</LocationLevel1>
        <LocationLevel2>string</LocationLevel2>
        <LocationLevel3>string</LocationLevel3>
        <LocationLevel4>string</LocationLevel4>
        <X>string</X>
        <Y>string</Y>
        <MinPrice>string</MinPrice>
        <MaxPrice>string</MaxPrice>
        <MinSurface>string</MinSurface>
        <MaxSurface>string</MaxSurface>
        <MinRooms>string</MinRooms>
        <MaxRooms>string</MaxRooms>
        <MinBaths>string</MinBaths>
        <MaxBaths>string</MaxBaths>
        <NotificationId>string</NotificationId>
        <NumMatches>string</NumMatches>
        <Title>string</Title>
        <Description>string</Description>
        <LocationLevel5>string</LocationLevel5>
        <PurchaseTypeId>string</PurchaseTypeId>
        <SubcategoryTypesId>string</SubcategoryTypesId>
        <Locations>string</Locations>
        <NBathrooms>string</NBathrooms>
        <ConservationStates>string</ConservationStates>
        <Extras>string</Extras>
        <Radius>string</Radius>
        <Notifications>
          <DemandItemNotification>
            <Channel>string</Channel>
            <Frequency>string</Frequency>
          </DemandItemNotification>
          <DemandItemNotification>
            <Channel>string</Channel>
            <Frequency>string</Frequency>
          </DemandItemNotification>
        </Notifications>
        <LocationsMultiple>string</LocationsMultiple>
        <LocationsMultipleDescription>string</LocationsMultipleDescription>
      </AddDemandWithoutHeaderV2Result>
    </AddDemandWithoutHeaderV2Response>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /mobile/api/v3.asmx HTTP/1.1
Host: ws.fotocasa.es
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AddDemandWithoutHeaderV2 xmlns="http://ws.fotocasa.es/">
      <addDemandRequest>
        <demandId>long</demandId>
        <authToken>string</authToken>
        <bathrooms>int</bathrooms>
        <categoryTypeId>int</categoryTypeId>
        <conservationStates>string</conservationStates>
        <deviceToken>string</deviceToken>
        <encryptedUserId>string</encryptedUserId>
        <extras>string</extras>
        <languageId>int</languageId>
        <latitude>double</latitude>
        <longitude>double</longitude>
        <locations>string</locations>
        <offerTypeId>int</offerTypeId>
        <olapOriginId>int</olapOriginId>
        <periodicityId>int</periodicityId>
        <platformId>int</platformId>
        <portalId>int</portalId>
        <priceFrom>double</priceFrom>
        <priceTo>double</priceTo>
        <purchaseTypeId>int</purchaseTypeId>
        <radius>double</radius>
        <roomsFrom>int</roomsFrom>
        <roomsTo>int</roomsTo>
        <bathsFrom>int</bathsFrom>
        <bathsTo>int</bathsTo>
        <signature>string</signature>
        <subcategoryTypes>
          <int>int</int>
          <int>int</int>
        </subcategoryTypes>
        <surfaceFrom>int</surfaceFrom>
        <surfaceTo>int</surfaceTo>
        <text>string</text>
        <entityType>Undefined or User or UserEmail or Android or Iphone or Chrome or Firefox</entityType>
      </addDemandRequest>
    </AddDemandWithoutHeaderV2>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AddDemandWithoutHeaderV2Response xmlns="http://ws.fotocasa.es/">
      <AddDemandWithoutHeaderV2Result>
        <Id>string</Id>
        <Name>string</Name>
        <Category>string</Category>
        <CategoryId>string</CategoryId>
        <OfferType>string</OfferType>
        <OfferTypeId>string</OfferTypeId>
        <PurchaseType>string</PurchaseType>
        <LocationLevel1>string</LocationLevel1>
        <LocationLevel2>string</LocationLevel2>
        <LocationLevel3>string</LocationLevel3>
        <LocationLevel4>string</LocationLevel4>
        <X>string</X>
        <Y>string</Y>
        <MinPrice>string</MinPrice>
        <MaxPrice>string</MaxPrice>
        <MinSurface>string</MinSurface>
        <MaxSurface>string</MaxSurface>
        <MinRooms>string</MinRooms>
        <MaxRooms>string</MaxRooms>
        <MinBaths>string</MinBaths>
        <MaxBaths>string</MaxBaths>
        <NotificationId>string</NotificationId>
        <NumMatches>string</NumMatches>
        <Title>string</Title>
        <Description>string</Description>
        <LocationLevel5>string</LocationLevel5>
        <PurchaseTypeId>string</PurchaseTypeId>
        <SubcategoryTypesId>string</SubcategoryTypesId>
        <Locations>string</Locations>
        <NBathrooms>string</NBathrooms>
        <ConservationStates>string</ConservationStates>
        <Extras>string</Extras>
        <Radius>string</Radius>
        <Notifications>
          <DemandItemNotification>
            <Channel>string</Channel>
            <Frequency>string</Frequency>
          </DemandItemNotification>
          <DemandItemNotification>
            <Channel>string</Channel>
            <Frequency>string</Frequency>
          </DemandItemNotification>
        </Notifications>
        <LocationsMultiple>string</LocationsMultiple>
        <LocationsMultipleDescription>string</LocationsMultipleDescription>
      </AddDemandWithoutHeaderV2Result>
    </AddDemandWithoutHeaderV2Response>
  </soap12:Body>
</soap12:Envelope>