agieli 0 Newbie Poster

hi guys,i'm trying to create a normal web service for calling yahoo geo services(xml) so that i can print out informations about an address such as latitude/longitude.
some people suggested to build it as a RESTful web service but i have never worked with RESTful web services,so i just wanna try build it using SOAP.but i'm stuck,i think i'm not doing it correctly.

below is the code i have wrote.ResultSet is the root node of the xml schema.

whenever i try to run it,it keeps saying "no location parameters"!!!

Thank you

@WebMethod(operationName = "getGeoCords")
    public ResultSet getGeoCords() {
    String yahooAppId = "";//my appId from yahoo

    String loc = "701+First+Ave,+Sunnyvale,+CA";
    ResultSet results = new ResultSet();
    URL url;
    try {
          url = new URL("" + loc + "&appid=" + yahooAppId);

          javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance(results.getClass().getPackage().getName());
          javax.xml.bind.Unmarshaller unmarshaller = jaxbCtx.createUnmarshaller();
          results = (ResultSet) unmarshaller.unmarshal(url); //NOI18N
        catch (MalformedURLException ex) {
            Logger.getLogger(myPlaceFinder.class.getName()).log(Level.SEVERE, null, ex);
        }    catch (javax.xml.bind.JAXBException ex) {
      // XXXTODO Handle exception
          java.util.logging.Logger.getLogger("global").log(java.util.logging.Level.SEVERE, null, ex); //NOI18N

    return results;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.