What is the difference if we pass an object in a method, in ASP.NET WebService, and passing the object as a SoapHeader?
For details, ex:
Passing as a method Parameter:
[WebMethod]
public void Createactivity(User objUser)
Passing as a Soap Header:
[WebMethod(Description = "Sends the SMS to Mobile")]
[SoapHeader("objSMS")]
public str...
Can some one tell me why am I getting the following data in return of WCF service request? I want the formatted XML so that I can parse it.
<?xml version="1.0" encoding="utf-8"?><string><DocumentElement>
<UT>
<UserFirstName>z</UserFirstName>
<UserLastName>z</UserLastName>
...
I am calling a webservice using jQuery.
The called method has a parameter of type decimal.
My site change culture based what user choices.
Before call webservice I use CompareValidator to validate, it do the right job, considering ThreadCulture.
I can use CompareValidator to convert my string to invariant at javascript? Because webse...
Is there a way I can programmatically change the <endpoint address="..." /> value of a web service? In my app.config file, I have the following code:
<system.serviceModel>
<bindings>
...
</bindings>
<client>
<endpoint address="http://dev.remotedomain.com/WebServices/WebService.asmx"
binding="basicHttpBindi...
How do you enable HTTP connection reuse when using JAX-WS? When we were using AXIS2, we set the org.apache.axis2.transport.http.HTTPConstants.REUSE_HTTP_CLIENT property in the client stub's options. What is the equivalent for JAX-WS?
(I have verified that we are creating a new TCP connection for each web service call. It appears we t...
I'm building an integration test for a web application that has multiple interdependent services. All of them depend on a shared resource in order to run correctly. I'd like to make sure that the data in the system is sane when its live so I'm leveraging a live service. I'm using Python to build it and this is my idea on how to sandbox t...
This is link which is explaining in detail, the problem i am facing right now.
I am getting a frequent exception whenever a call made to my web services. It returns appropriate results but still complaining about URL format.:-
Request format is unrecognized for URL
unexpectedly ending in
/WebServiceMethod
So what do you sugges...
I would like to implement a signature for my web posts like this for example. Now I have the client code working nicely in objective-c, but I have to admit I am not sure how to pull out the parameters on the web side. I imagine I would start with unencrypting the string, but to get the params out I only have some basic ideas. Does any...
I have been researching RIA services with silverlight 4 and considering using it. Switching to silverlight from ASP gives me some concerns about the maturity of silverlight for data driven apps.
I was looking at relational data queries. Lets say I have a 'person' table and a 'cars' table. Multiple cars can be associated with a person. N...
I'm starting this Wiki to collect best practices about creating interoperable web services (not clients) in WCF. Please share your experience if you know any feature which is not generally interoperable or which is not interoperable with specific platform.
...
I don't have much experience with web services, but I think I have a problem for which a web service would work great.
My company has just purchased a .net version of Cete Pdf Merger (great product btw). We use both .Net & asp code and will likely use java in the future as well.
The scenario is that one technology (asp, java, .net) wou...
I'm trying to get the sample FedEx Address Verification application to work in C#. After contacting my FedEx technical contact and having him activate Address Verification on my test account (apparently it is considered an advanced service that requires additional permissions) I was able to compile and run the example application.
Howev...
I'm deploying a StatelessSessionBean annotated with @WebService to JBoss. I'm taking the WSDL generated by JBoss to generate client stubs. My problem is in calling a method which returns a list of objects. If the list is empty the call succeeds however if the list is not empty then I get the following exception:
com.sun.xml.ws.encoding....
I'm working on an iOS app which will need a server backend for users to grab data from, but the data isn't stuff that I'd like any packet-sniffer to be able to use. I'll be paying to access the data, so I'd like to ensure that if something is connecting to my API to request data, it is in fact MY app, and not some dude who wants free inf...
Hi All,
I am trying to access getListItems method of the Lists service of Sharepoint from Flex using WebService.
It is working fine when I omit the query and the viewFields nodes in the request xml.
But if I add any query or FieldRef in Viewfields it is throwing error from the service.
Below is the code.
<mx:WebService id="ws2" wsdl...
I am working on creating a toolbar application that will invoke a URL on the server and increase a User's points(as an incentive to use the toolbar). Right now the URL is a GET(I can and will change it to POST).
The issue is, I need to make sure that someone cannot, using any sort of a hack, increase the points. The URL is ofcourse a pu...
Hi,
I am trying to access a webservice (written in .NET) from my iPhone application.
This is my code:
-(IBAction)buttonClicked:(id)sender {
NSString *postString =[NSString stringWithFormat:question];
NSLog(postString);
NSURL *url = [NSURL URLWithString: address+@"/execute"];
NSMutableURLRequest *req = [NSMutableURLRe...
Although in normal circumstances xsi:type does not appear in a literal WSDL's SOAP message, there are still cases when type information is necessary and it will appear -- in polymorphism, for instance. If the API expects a base type and an extension instance is sent, the type of that instance must be provided for proper deserialization o...
Hi,
Am trying to find a Content Management System that I can use to produce and store content - text, images, pdfs, etc and then access this content from an iPhone using a native application via a web service.
Can anyone recommand a good CMS for this?
Thanks in advance,
Will
...
Web service uses SQL Server based authentication how to change to windows based authentication both web server & Database service resides in different domain .
...