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>