I would like to connect to a SOAP web service using C#. Before I jump right in, trying anything Google throws at me I would like to ask what is the cleanest and best way to do it where most of the work is done for me.
I would like a high level method, where I give it a WSDL and it will basically handle a lot of things for me. I of cou...
What protocol should I use to secure a webservice. I'm considering CHAP, but I cann't find much about it in relation to web services. SubAuth and OAuth is more about giving web services acces to something else, so that's not what I'm looking for.
I need to authenticate a user without sending it's credentials over the line.
I've read the...
I am having a pagemethod to which i give a call from my JavaScript
say
Pagemethods.MyMethod(MyParameter, onsucess, onfailure);
In the Code behind, I have something like this:
[WebMethod]
public static void MyMethod(Param)
{
try{
//DoSomething..
}
catch(exception ex)
{
//Log the exception and rethrow
thr...
Is this the right way to initialize a static cache object in a web service?
public class someclass{
private static Cache cache;
static someclass()
{
cache = HttpContext.Current.Cache;
}
}
More Info:
Seems like I receive more then one cache object from webservice. It creates a new request that only lasts for the dura...
I'm testing JAX-WS to access the Oracle IRM web serviecs. I can get it to work just fine with AXIS so this isn't an Oracle problem.
What's happening is that I'm getting the following error when making the call:
Expected xsd:anyType - unknown type provided
If I look at the SOAP packet is sent I see that the owner tag is blank under J...
Hi,
my CAML query to add a ListItem (Wiki Page) doesn't work. I've tried serveral
fields, but Sharepoint always creates empty pages.
Here is my CAML so far:
<Batch OnError="Continue">
<Method ID="1" Cmd="New">
<Field Name="WikiField">My Wiki Content</Field>
</Method>
</Batch>
...
Hi,
When I post some headers in a request and view them on on the receiving page, most of them are prefixed with "HTTP_" except for a few like [CONTENT_TYPE] => text/xml [CONTENT_LENGTH] => 8647.
When I post my own headers (which are required for an external server) they then get prefixed e.g. My header: BATCH_TYPE shows up as HTTP_...
Ok this has been driving me nuts now for about 12 hours. I have a C# web service running under IIS 7 and I am connecting to it via PHP on a Apache 2.2 box. Not that any of that should really matter but figured I would drop it in.
Now when I go directly to the web service and invoke it I get the correct datetime format but if I call it f...
We have a ReST Web Service that uses POST - to insert data into database (unmarshall data from XML), and GET to retrieve data (marshalled into XML).
An XSD is used to generate Java objects (via Sun's JAXB compiler) to marshall/unmarshall data to and from a database.
We kind of froze the XSD as it is, because we thought this models the...
I am using Cgicc , which has some methods to extract specific request headers, e.g. getUserAgent would return "User-Agent" header.
Is there a generic method that can return an arbitrary header value, e.g. something like
getHeaderValue("x-my-header");
Is there a way to do this using cgicc? and if cannot be done with cgicc, how else c...
I have always used the Scriptmanager to handle all AJAX calls, but I am starting to expand and am playing around with using jQuery and JSON to consume an ASP.NET 3.5 Web service. I am using standard jQuery calls as you can see below, which is working wonderfully. I am concerned about security and how to ensure that I am not opening any d...
Hi,
What is scchema importer Extension class in .net webservice.Recently i came across this class in one of the support project.
In that project its not using now.
So i am curious to find the practical implementation of this calss.I have gone through few artcles but not clear about the concept.
Is this avilable in WCF services also.I...
Hi all,
I just got started looking at using Solr as my search web service. I don't know whether Solr supports these query types:
Startswith
Exact Match
Contain
Doesn't Contain
In the range
Could anyone guide me how to implement those features in Solr?
Cheers,
Samnang
...
Hi all,
i want to make some tests with the Oracle Business Intelligence Webservices. First i want to import them into Eclipse. For that i use this howto:
http://px.pats.no/px/Eclipse_tutorial.html
Until step 8 is everything okay. For the Import i'm using:
http://localhost:9704/analytics/saw.dll?WSDL
But then i get following error:
...
Hi everyone.
I'm having a bit of trouble getting Visual Studio to play nicely with my Axis2 web service. The problem is very strange, although not a show stopper. If anything it is just annoying, and I'd really appreciate a way around this.
The problem is that when using the web service in C# code, none of the parameters or return valu...
My ASP.NET 2.0 web app includes a web service, which throws various exceptions along with custom error messages (e.g. "You do not have access to this item" etc.). These are shown on screen, in a ASP.NET AJAX callback handler.
The rest of the app is covered by some custom error pages, specified in the usual way in web.config.
<customErr...
Hello
I'm currently building a web app for a UK company with many outlets in the UK. I want to implement a 'find my nearest' based on the following.
Postcode
Landmarks
So the user could enter either to get a list of their nearest. I've done this before using postcode data in a database and then using Pythagoras to figure out the nea...
I am trying to consume a web service from BizTalk by supplying credentials in the SOAP adapter port.
I type in the Web Service URL and then I have the choice of Anonymous, Basic, Digest and NTLM authentication types.
How do I supply my username, password and domain?.. when testing with soapUI it works perfectly.
The only way I get to ...
I had a conversation with one of our architects recently and he summarized his use of SOA as "The only time we'll use services is when we need async actions otherwise we'll use go direct to the data store"
I thought about this statement and it seems fairly logical as services work well in a publish subscribe model, but I was wondering i...
Hi,
I was asked to set up a .NET web service to expose a few methods for querying a database, which isn't a difficult task, but they said they wanted it secured using SSL since it is not internal.
How does one use SSL with a web service?
And is this something to use WCF for, or should I stick with a .net 2.0 web service?
Thanks in ad...