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 6167193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:28:07+00:00 2026-05-23T22:28:07+00:00

I am running rails version 2.3.2 on my website domain and I am having

  • 0

I am running rails version 2.3.2 on my website domain and I am having a huge problem with wrapping my head around how this works:

I have my website running a RoR app on my domain development server. It is just a sample scaffold that allows you to type in your name, zip, state, etc. I am using ruby 1.8.2, and have a mysql server also.

I want to consume this data into my windows phone 7 through SOAP (I don’t know if I even have one to begin with), but here is where I have problems.

In using visual studio, it cannot locate my server when i direct it over to my url. It gives the error saying that there was nothing in the correct format.

Maybe I don’t have a server running? I want to have the data be parsed out into XML for the phone to consume, but I have no idea how to set this up!

Basically, I have the domain, and the phone, but no knowledge of the steps inbetween.

Can anyone help me get this up and running?

  • 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-23T22:28:08+00:00Added an answer on May 23, 2026 at 10:28 pm

    A few things to try:

    First – have you actually started the server? eg by running “script/server” ?
    You can test that the server is up and running by using “curl” (google for it to install/download” which is a very simple (and very commonly used) application for testing this stuff easily.

    if you run curl and type in the url that you’d be accessing via your windows phone… and it responds with something (probably html), then the server is up and running. You can later use CURL to test if it responds to an xml request too.

    Second: go look in the controller. See if it has a section such as:

    respond_to do |format|
      format.html 
      format.xml { render :xml => @widgets.to_xml }
    end
    

    it’s the “respond_to” and “xml” bits that matter if you are going to get your system to consume xml. They should be present in every action in your controller. If not – you will have to go a research how to do this for your code – alternatively, using a later version of rails will let you use the up-to-date scaffold generators that should include these as standard.

    Third: it is possible that your Windows phone app is just not requesting the resources in xml format and so Rails is returning html (which your SOAP parser won’t understand). I don’t know how you can check this, but what rails requires is for the HTML-header: “Accept” to be set to “application/xml” or “text/xml”

    You can also test this for any given URL with curl by using eg: “curl -H ‘Accept: text/xml’ 127.0.0.1/myapp” – if it continues to spit out html (and not xml) then obviously it’s not producing xml for that URL.

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

Sidebar

Related Questions

Running rails 3.2.3 with guard/spork/rspec/factory_girl and have the following in my spec helper: Spork.prefork
I am running rails 3.2 I have created a nested form (requests > tags)
I have an app running Rails 2.3.5 that has a JSON API for much
I'm running rails version 2.3.5 and rubygems version 1.3.6, when I script/server I get
I'm using rvm (Ruby Version Manager) and running Rails 3 RC. I need to
I have a simple Rails 3.1 CRUD app built using Oracle running on JRuby.
I have this following Gemfile: source 'https://rubygems.org' gem 'rails', '3.2.1' group :assets do gem
I'm running Rails 3.2 and the latest version of Authlogic. When I run my
I encountered the following error while running rake db:migrate --trace . my rails version
I've tried running the following to update my version of Rails from version 3.2.6

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.