findPOIByAddress searchOptions not working as expected
Posted: Wed Dec 12, 2018 8:17 am
Hi experts,
I'm having some trouble setting the SearchOptions in the method findPOIByAddress. It doesn't seem to be working as expected. I'm making SOAP requests from an SAP System and a successful call to findAddress would have the following SearchOptions:
Setting the parameter COUNTRY_CODETYPE to 1 allows us to send a request using a country ISO code 2 to the xServer (e.g. DE instead of D for Germany). This works fine in the Method findAddress, and the same behavior is what we aim to achieve with the method findPOIByAddress, so we have the following snippet from our request:
Unfortunately, we get the following response as error:
Could someone please help us figure out the cause? Why does the behavior of the 2 methods in the same xLocate is not consistent? Why does the parameter COUNTRY_CODETYPE doesn't seem to have an effect on the SearchOptions?
I'm having some trouble setting the SearchOptions in the method findPOIByAddress. It doesn't seem to be working as expected. I'm making SOAP requests from an SAP System and a successful call to findAddress would have the following SearchOptions:
Code: Select all
<n0:ArrayOfSearchOptionBase_2>
<n2:SearchOptionBase xsi:type="n2:SearchOption" value="1" param="COUNTRY_CODETYPE" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</n0:ArrayOfSearchOptionBase_2>
Code: Select all
<ne:ArrayOfSearchOptionBase_2 xmlns:ne="http://types.xlocate.xserver.ptvag.com">
<n0:SearchOptionBase xmlns:n0="http://xlocate.xserver.ptvag.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="n0:SearchOption" value="1" param="COUNTRY_CODETYPE"/>
<n0:SearchOptionBase xmlns:n0="http://xlocate.xserver.ptvag.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="n0:SearchOption" value="3" param="STREET_HNRPOSITION"/>
<n0:SearchOptionBase xmlns:n0="http://xlocate.xserver.ptvag.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="n0:SearchOption" value="1" param="STREET_RETURNALLHNR"/>
</ne:ArrayOfSearchOptionBase_2>
Code: Select all
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Internal Server Error</faultstring>
<detail>
<ns4:XServiceException xmlns:ns6="http://exception.core.jabba.ptvag.com" xmlns:ns4="http://common.xserver.ptvag.com" xmlns:ns3="http://baseservices.service.jabba.ptvag.com" xmlns:ns2="http://types.xlocate.xserver.ptvag.com" xmlns:ns1="http://wrappertypes.service.jabba.ptvag.com" xmlns:ns0="http://xlocate.xserver.ptvag.com">
<ns6:stackElement className="com.ptvag.xserver.common.XServiceException" message="Internal Server Error">
<ns6:cause className="com.ptvag.xserver.engines.xpoidbaccess.UsageException" message="unknown country code:DE">
<ns6:cause xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns6:wrappedContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</ns6:cause>
<ns6:wrappedContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</ns6:stackElement>
</ns4:XServiceException>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>