Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 384719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:24:28+00:00 2026-05-12T15:24:28+00:00

I have a client set up to send a request to the National Weather

  • 0

I have a client set up to send a request to the National Weather Service SOAP server. I am receiving the response that I expect, but I am unsure as to the best way to extract the data from it that I need.

For example, there is a lot of extra data in the XML (in the SOAPBody), but I only want to grab the data for the parameters that I set (such as temperature) to my POJO.

What’s the best way to extract this data?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:24:28+00:00Added an answer on May 12, 2026 at 3:24 pm

    I started out trying to consume SOAP Web Services by hand like you describe – there are better ways.

    There are libraries out there that will do all the work for you – no need to parse anything by hand.

    Check out JAX-WS. Most Modern IDEs (Certainly Netbeans and Eclipse) also provide point and click support for building web service clients given a WSDL.

    The biggest potential problem down this route is if there’s no WSDL, or the WSDL is wrong, in which case the tooling I’ve linked might struggle.

    The next safest thing would be to use an XML Parser like JAXP’s SAX & DOM etc (they’re right there in your JRE) to parse the response and then walk the data structures involved.

    Finally you could go the string hacking route using splits or regexes but down that path lies a great deal of potential pain – there’s more to the XML spec then nested tags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a potential client that set up their website and membership system in
I have a set of webservices that I connect to using Silverlight Client. I
i have client-server app, I'm managing connections with Threads and handlers inside app, but
I have a network client with a request method that takes a std::streambuf* .
I have the following Soap Request I receive from the client, where basically I
I have set up an AJAX contact form on a client's website. The problem
We have set up a web site for a client who uses Google Apps
I basically have a server set up and I'm accepting new clients(UNIX) and i'm
I have client/server applications and a very simple protocol for communication. More precisely, it's
We have client server based app which saves user related data into a zip

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.