Solved

wcf REST Get and POST work in VS 2012 but not on the web

Posted on 2014-02-19
9
467 Views
Last Modified: 2014-03-16
I have the attached project which works like it should in the VS 2012 environment but when I try to run from a workstation over the web (local on a Hyper-V 2012 IE says to log in with a different account - pain in the butt), if I go to the url and svc address: https://ofx.proautomation.com/cloudw2transferservice.svc the wsdl screen comes up but with I try:

https://ofx.proautomation.com/cloudw2transferservice.svc/ofxtransfer/12345
I get a 404 return error.  Seems like pretty simple stuff but I can't get the GET or POST to work in POSTMAN or RestClient-Tool.

Any help is always appreciated.
Project on server is attached.
The site would only let me upload the attached files, I hope that is enough.

Brian
0
Comment
Question by:brianinlongmont
  • 4
9 Comments
 
LVL 18

Expert Comment

by:Gary Davis
ID: 39879590
What does the ofxtransfer do with the 12345 parameter? Maybe it is trying to look it up somewhere and not finding it, thus returning the HTTP 404.
0
 

Author Comment

by:brianinlongmont
ID: 39880156
Hello,
Thank you for the response. I believe I fat fingered the original text in the question, the ofxtransfer should be ofxrequest as in the interface.  The URI Template is ofxrequest/{id} and the code returns 'this is my return{id}'

Tried to go back to basics but I still can't get it to work.
My SOAP project works so I started form scratch with REST and then figured I would just cut and paste the processing code once I got it to work.  My ultimate goal is a POST function, but one step at a time.  I just wish it was a step forward. To get the svc to uploaded I put a png extension on it.

Your help is appreciated.
Brian
CloudW2TransferService-svc.zip
0
 

Author Comment

by:brianinlongmont
ID: 39881498
I made great progress today, I actually got it to work.  I think it was as simple as using http instead of https.  I thought it was setup to use https.  Always check the obvious stuff first!

I need some pointers to setup the HTTPS protocol and
I'm trying to get my xml request to get sent over using the POST command, so that is my next challenge.
Not sure if I need to close this and open a different ticket or not.
Brian
0
 

Accepted Solution

by:
brianinlongmont earned 0 total points
ID: 39921187
This question can be closed and I will attempt to do so.
Brian
0
 

Author Closing Comment

by:brianinlongmont
ID: 39932342
Lack of timely response.  Unsure if it was the context of the question, the posting tags or people being too busy.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Not showing page correctly 3 29
C# Json POSt to Rest API 4 36
JavaScript and Regular Expressions - How to implement date validation? 7 31
Windows Media Player 2 11
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now