web-services

WSE 2.0 with SoapUI

Does SOAPUI (http://www.soapui.org) support the WSE 2.0 standards? If not, any other utility recommended for testing? Better wording (10/27/2009): Does SOAPUI support WS-Security (passing user/pass with the WS-Security standard). If so, where do I specify the user/password specific to WS-Security (as opposed to basic authentication)....

Asynchronous Web Service Design Patterns

When writing a Silverlight app hooked up to a WCF Web Service, the only option we are presented with in using the Web Service is to make asynchronous calls to the WS interface. i.e. WebService client = new WebService(); client.ServiceMethodCompleted += new EventHandler<Args>(client_Handler); client.ServiceMethodAsync(); client.close()...

Microsoft SSRS consuming JAX-WS Web Service problem

I have developed a Web Service using JAX-WS (v2.1.3 - Sun JDK 1.6.0_05) that works just fine when I use a Java client or SoapUI or other Web Services testing tools. I need to consume this service using 2005 Microsoft SQL Server Reporting Services and I get the following error <?xml version='1.0' encoding='UTF-8'?> <S:Envelope xmlns:S="...

How do I invoke a PHP script on a Web server?

Apache server is installed in one machine and there is a .php script present in the server. Now from my win32 or c# application how do I invoke the script and how to receive the data from the server? ...

HTTP status 407: Proxy authentication required Error when calling web service

I have spent two hours on this error "HTTP status 407: Proxy authentication required Error " when calling a web service, my code is like following WebProxy oWebProxy = new System.Net.WebProxy(ProxyServer, ProxyPort); oWebProxy.Credentials = new NetworkCredential(ProxyUser,ProxyPassword,ProxyDomain); o...

Files in domain model

What are the best practices for dealing with binaries in domain model? I frequently must associate images and other files with business objects and the simple byte[] is not adequate even for the simplest of cases. The files: Does not have a fixed size and can be quite large thus: Have to be streamed or buffered, preferably in asynchr...

.NET WCF calling .asmx with WS-Security

Can a .NET WCF Client program call an existing (vendor supplied) .asmx web service that uses WS-Security for logon? In our case, the vendor has provided an .asmx web service with WS-Security. We are going to try to use SOAPUI and WCFTestHarness or WCFTestClient to access it first. Would rather use WCF if possible. Thanks, Neal Wal...

SoapUI request returns HTTP/1.1 400 Bad Request

I'm using SoapUI to load test one of our .net webservices. I'm new to SoapUI, so I've run through the "getting started", using a publicly available service, and had no problems. But when I try to send a request to my webservice I'm getting a HTTP/1.1 400 Bad Request message. I generate a default request from the schema, and insert the ...

What is the maximum length of NSString? Alternative to NSString - iPhone

-(void)connectionDidFinishLoading:(NSURLConnection *)connection { NSString *theXML = [[NSString alloc] initWithBytes: [myWebData mutableBytes] length:[myWebData length] encoding:NSUTF8StringEncoding]; NSLog(@"%@",theXML); [self actualString:theXML extractMyData:@"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelop...

How to validate REST request?

Given this service: POST /hotel HTTP/1.1 <hotel> <a>aaa</a> <b>bbb</b> <c>ccc</c> </hotel> HTTP/1.1 201 CREATED Location: /hotel/123 When we process the request on the server we will validate the hotel XML in the request against a DTD. Question is, as a REST best practice should the client refer to the DTD in the request (a...

Best method for connecting to sustom XML web service in ASP.NET?

What is the best way to work with/consume custom XML web services in ASP.NET? The web service in question was developed quite a few years ago. It works by POST'ing the XML to a specific web page and then responding with more XML. Run of the mill design, but it doesn't follow any SOAP standards. It follows a strict schema though. Wha...

Visitors to site get a file download instead of web page?

Why do visitors to my site sometimes get a download to a file instead of the page to which they were supposed to go? What problem does that point to - browser, controller, or something? ...

Adding .ashx as a web reference

For my application, I'm currently using a webservice to retrieve some information I need in XML format. The way I'm doing it now is via a HTTP web request, so the code looks something like this: serviceURL = "http://longurl/webservice.ashx?apikey=key&amp;action=getDetail&amp;id=ID"; HttpWReq = (HttpWebRequest)WebRequest.Create(serviceU...

C# code to search and result in xml

I’m after some C# code that will have the following methods that will return Xml as the result. Search the Apple iTunes App store. If I pass it a name or partial name the function must return a list of possible search results or just one result if it is a perfect match. Example shown below: <App> <AppId>321564880</AppId> <Name...

How to do Interceptors / Handlers in JAX-WS RI without using annotations?

We are using the Sun RI for JAX-WS (2.1.4) and we have a need for orthogonal web service endpoint interceptors (authentication, extracting SOAP headers for context, etc). Apparently the "normal" JAX-WS way to do this is using the HandlerChain annotation. This however forces us to modify the WSDL (even if we use the separate binding XML...

wsdl 404 problem

I'm having problems with a web service. I published the site on IIS 6. With my browser the interface works fine. When I try to create a proxy with wsdl.exe, It gives me 404 not found error. Is there any trigger in IIS that I should turn or what? ...

Consuming java written webservices without adding web reference in c#

how to Consume java(apache axis) written webservices without adding web reference(in visual studio) in c# ...

What is the maximum size of document to return from a REST API?

I am considering creating a RESTful web service which will return a lot of data. What do people think is the maximum size of xml document that should be returned in one get from a web services API? I would estimate the size of the result set to be 100Mb and time to produce this would be about 2h. How much time is a reasonable maximum ...

EJB3 Web Services Error with JAXB

Update: I checked the JBoss log and found the following errors: 2009-10-28 10:21:34,472 ERROR [org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] (main) JBossWS_ejb.uhandler.pds.hsc.xyzis.com_8603663089732759450.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'ns1:Mes...

Any Full "Ruby Stack" AMI on EC2 ?

What is best available EC2 AMI that have satisfy following must have? Ruby Stack Pre Installed MySql Installed and configured with Ruby Monit Installed Nginx Secure SSH access Please let me know AMI you are recommending you have used or not? Amazon lacks proper review system for AMI unlike product/book previews. ...