web-services

How to use soap in javascript

Hi guys, I am trying to use SOAP in javascript but i am not getting how to start it. Here is the code sample i write in PHP and it works fine. I want to write this code in Javascript. In following code i call one api from a www.example.com and for calling certain api we require to pass some parameters. $soapClient = new SoapClien...

ASP.NET Web Service Throws 401 (unauthorized) Error

Hi Experts, I have this .NET application to be run in an intranet environment. It is configured so that it requires Windows Authentication before you can access the website (Anonymous access is disabled). This website calls a web service (enable anonymous access) and the web service calls the DB. We do have a token-based authentication ...

Facing problem in accessing webservice

System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Web.Services2.WebServicesExtension.AfterSerializeServer(SoapServerMessage message) Above exception is thrown whenever i try to access any method of webservice on another machine. Regards, Muhammad Waqas ...

How to restrict access to my web service?

I have http://example.com/index.html, which from within the HTML uses JavaScript (XmlHttpRequest) to call a web services at http://example.com/json/?a=...&b=... The web service returns to index.html a JSON array of information to then be displayed on index.html. Since anyone can view the source code for index.html and see how I'm c...

getting london gold price from web service

hi all i'm trying to access the gold price info through this web service: http://www.webservicex.net/LondonGoldFix.asmx but it always return false to in the result here is my code after I adding the service net.webservicex.www.LondonGoldAndSilverFix _fix = new net.webservicex.www.LondonGoldAndSilverFix(); net.webservicex.www.LondonM...

Send parameters to a web service.

Before I start: I'm programming for Iphone, using objective C. I have already implemented a call to a web service function using NSURLRequest and NSURLConnection. The function then returns a XML with the info I need. The code is as follows: NSURL *url = [NSURL URLWithString:@"http://myWebService/function"]; NSMutableURLRequest theRequ...

Why can't I expose an interface in a .NET asmx web service?

I have a .NET web service (using asmx...have not upgraded to WCF yet) that exposes the following: public class WidgetVersion1 : IWidget {} public class WidgetVersion2 : IWidget {} When I attempt to bind to the web service, I get the following serialization error: Cannot serialize member WidgetVersion1 of type IWidget because it is an...

Webservice Follow Redirect False - Error 302 (JAXWS)

This is a link to a question I had asked two days back, http://stackoverflow.com/questions/2573858/how-to-make-a-webservice-request-follow-a-redirect I am using jaxws library. The service forms the URL, and then internally creates the HTTPURLConnection. If I can grab hold of the connection I would be able to set the followRedirect to ...

Flex 3 and soap response?

I want to insert data into a SQL Server, but I keep getting this error: "RPC Fault faultString="SOAP Response cannot be decoded. Raw response:faultCode="DecodingError" faultDetail="null"] " I can get data all day, but why can't I input any? Code: <mx:Panel width="100%" height="100%" title="Data Tables" x="10" y="30"> <mx:D...

How to call a url and get response from it in javascript

I want to call a url with passing some parameter and i want to process the response coming from that url in javascript. ...

WebService doesn't read web.config

Hi, I've got 3 connectionstrings in web.config, and I used theirs like this: using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["SomeName"].ConnectionString)) Every metgod is called by winforms application. One of webmethods doesn't work properly because it reads only one connectionString: ...

Http Error 12031 when calling a Web Service Method in Web Farm Environment

Hi All, Currently we have an ASP.NET application running on 3 web servers (in a webfarm). We have an ASMX Webservice with ScriptService enabled, and we used it with ScriptManager in some of our ASPX pages and invoked some methods using javascript (with Microsoft Ajax Framework). Our problem is that when more than 1 servers are running...

wsimport how to create web service client from WSDL for http:binding GET/POST

I have wsdl and I create classes with wsimport tool. Everything is going ok for SOAP messages but for http:binding GET/POST I get error. Part of the WSDL follows: <wsdl:binding name="DictServiceHttpPost" type="tns:DictServiceHttpPost"> <http:binding verb="POST" /> ... ... ... <wsdl:port name="DictServiceHttpGet" binding="tns:DictS...

Alternative to Galileo GWS

Please note that this Galileo is absolutely not related to Java. Galileo is basically a set of web services which can be used to book airline tickets. Originally, it was supposed to be used via Galileo Desktop, whereby operators would enter various commands to perform required operations. For example, SA*AZ610J20JULFCOJFK will "Disp...

Namespace repeated in all nodes using axis2 and java2wdsl

I am using eclipse and axis2 1.4.1 facet to generate a webservice. My problem is that in the generation process, the namespaces are being repeated in all nodes. As you can see below, ns4 is repeated instead of being declared in NewOperationResponse node. How can I make java2wdsl (or eclipse) generate that automatically (only in parent...

Setting variables in web config for web service consumption

I did a couple google searches about this and am not finding anything, so I thought I'd ask here. I'm working on our internal CMS and I noticed that we're getting live data back when doing debugging because of our web services instead of the dev data that I wanted. It doesn't do this on our dev CMS website, but we're trying to do all...

What is the best way to implement a callback scenario using WCF and ASP.NET MVC?

I am new to WCF. I just finished reading Learning WCF and I think I've got a pretty good grasp of the fundamentals. I am adding functionality to a line of business app that runs on ASP.NET MVC entirely inside the corporate LAN. I am calling into a service that will also send me events as they occur (and not as responses to service calls)...

wsgen limitations : what constructs to avoid

I'm creating a webservice using JAX-WS's (JSR 224's) @WebService and @WebMethod annotations. Although I've found the specification, I can't find the limitations I'm running into documented anywhere. Here's what I've stumbled across so far using JAX-WS 2.1.6 provided with JDK 6: You cannot use interfaces as parameters, return values, ...

how to send parameters to a web Services via SOAP?

Before I start: I'm programming for Iphone, using objective C. I have already implemented a call to a web service function using NSURLRequest and NSURLConnection and SOAP. The function then returns a XML with the info I need. The code is as follows: NSString *soapMessage = [NSString stringWithFormat: @"<?xml version=\"1.0\" encoding=\...

Is there a way to get the raw SOAP request from within a ASP.NET WebMethod?

Example: public class Service1 : System.Web.Services.WebService { [WebMethod] public int Add(int x, int y) { string request = getRawSOAPRequest();//How could you implement this part? //.. do something with complete soap request int sum = x + y; return sum; } ...