I created a class for JSON responses:
public class PostCodeJson
{
public String Text { get; private set; }
public String Value { get; private set; }
#region Constructors
/// <summary>
/// Empty constructor
/// </summary>
public PostCodeJson()
{
this.Text = String.Empty;
this.Value = Strin...
Previously I used XML soap for data exchange in my web services, But switched to json for another project. Now I cant seem to find a reason to go back to XML, primarily because of the response size difference for large objects.
In what case would you need to use XML over json for web service response?
...
Hi, I've got Enum:
public enum ObjectType
{
Country=0,
Region=1,
Province=2,
City=3,
Hotel=4
}
I have two applications in two language versions, and this Enum is displaying in some place, so depends of language version I wanna displaying correct version of Enum
in german version instead Country Land etc.
This App...
I need recommendations on how to solve / structure a solution to the following problem.
In an asp.net web application i'll have to visualise results returned from a web service call. Im planning to use a repeater server control and bind this with an objectdatasource.
The service returns a result of the form:
public class SearchResul...
Hi,
I have .net webservice methods login and summary. After getting the result from login, I need to show second view and need to call summary method.
I am following this tutorial.
http://icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/
I created two new classes loginaccess.h and loginaccess.m.
@impl...
Hi - I've a quick question and request you all to respond soon.
I've developed a web service with Form based authentication as below.
1.An entry in web.config as below.
<authentication mode="Forms">
<forms loginUrl="Loginpage.aspx" name=".AuthAspx"></forms>
</authentication>
<authorization>
<deny users="?"/>
</aut...
I have one website that hosts a webservice which uses membership provider authorization. I would like to be able to authenticate through my webservice call from a second site without getting bounced back to my login page on the webservice site. How can I accomplish this?
As a side note, it would be best for me to allow a custom rule f...
Hi,
I know is not very dificult code a WCF SelHosted WebService, my problem is i am not be able to invoke it from a non navigator, i am using to test it Curl, it's the same implement in this case?:
public class ddSoftWS
{
[ServiceContract]
public interface ITest
{
[OperationContract]
[WebInvoke( Method =...
Im starting a new project in .net and i want to used andromda framework for code generation, i had used andromda for J2EE code generation and it works great for me, but reading at Andromda site could see that it works with .net as well, so i decided to used for my new project but i couldnt find an web services implementation with it, bas...
I have the following scenario:
I have various user's data stored in my database.
This data was entered via a web app.
We'd like to expose this data back to the user over a web service so that they can integrate their data with their applications.
We would also like to expose some business logic over these services. As such we do not ...
I want to check whether the endpoint is defined in the configuration before I'll try to create it
System.ServiceModel.ClientBase<T> sourceClient = new System.ServiceModel.ClientBase<T>(EndpointName, new EndpointAddress(discoveryUri));
To check it I need get a configuration but how can I define whether I need to use WebConfigurationMa...
I have a few years experience programming c++ and a little less then that using Qt. I built a data mining software using Qt and I want to make it available online. Unfortunately, I know close to nothing about web programming. Firstly, how easy or hard is this to do and what is the best way to go about it?
Supposing I am looking to hire ...
I am aware of Web Services and WCF but I have generic question with services.
I have a ASP.NET MVC Application which does some basic functionality. I just have a controller in which I am passing it the records and serializing the information to XML using XML Serializer. Then I return this information to the browser and it displays me ...
I am trying to call a C# web service from one data center to another. I am able to load the web service properly in Firefox 3.6.3 but it does not load at all in Internet Explorer 7.
When I try to install the application which relies on this web service, it can't find the web service at all, just like IE7.
Is there any setting or config...
Hi,
I have been presented with a problem which requires me to print PDF files from a server as part of an ASP.NET web service.
The problem is further complicated by the fact that the PDF files I have to print can ONLY be printed using Adobe Reader (they were created using Adobe LiveCycle and have some strange protection in them).
This...
How can I easily convert between manually written classes and WSDL-generated equivalents?
I have a Java SE 6 thick client that calls a web service to get and store data. The client has a DAO that works with my entity classes, calls <Entity>.toDto() to convert them to DTOs, and sends/receives that data with the web service. My issue stem...
I have a stub generated by WSDL2Java. I send a request and the answer that comes back (used tcptrace) looks fine. However, an AxisFault is thrown:
org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
at [row,col {unknown-source}]: [4,1313]
at org.apache.axis2.AxisFault.mak...
I am trying to expose some methods of a running application as a webservice. The core idea is to use an embedded web-server and send the soap messages to the apache axis2 framework in order to invoke the services.
The problem is, that axis2's createService methods only accept Classes as parameter, not existing objects. So I believe that...
Do you know a web service that's able let's say get a full list of cities in the world
with names, short names like PAR for Paris and time zones?
Or at least query by city name: Paris -> timezone=+02:00, abbrev=PAR
Also, what I see here: http://www.earthtools.org/webservices.htm#timezone
offset
The number of hours offset from UTC dis...
Hi,
I need to find a way to get miles (not a straight line) between two locations by passing the post addresses.
If you consider the simplicity of implementation, efficiency and stability, which webservice(s) you can suggest?
I would appreciate if you know any possible comparison list of relevant web-services.
Thanks
...