web-services

JAX-WS errors when SOAP body contains UTF-8 BOM

I have developed a Web Service using JAX-WS (v2.1.3 - Sun JDK 1.6.0_05) deployed on WebLogic 10.3 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 Couldn't create SOAP message due...

C# SAPI in a web service

var speechEngine = new SpVoiceClass(); SetVoice(speechEngine, job.Voice); var fileMode = SpeechStreamFileMode.SSFMCreateForWrite; var fileStream = new SpFileStream(); try { fileStream.Open(filePath, fileMode, false); speechEngine.AudioOutputStream = fileStream; speechEngine.Speak(job.Script, SpeechVoiceSpeakFlags.SVSFPurgeBe...

How to Declare Complex Nested C# Type for Web Service

I would like to create a service that accepts a complex nested type. In a sample asmx file I created: [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. // [System.Web.Scr...

Geting the IP Address Of A client For a webservice

I am using JAX-WS and I am having trouble retrieving the client information that is consuming a webservice. I've found out how to do it with JAX-RPC, and Apache Tomcat Axis, but not with JAX-WS. Does anyone have an idea about this? ...

X509Certificate2-class problem

Hi all, i have two machines machine1 and machine2. On one of those two machines (machine2) is my certificate store, the certificate store on machine1 is not allowed to be used. Further, i have do do some webservice-calls from machine1 against an client-certificate-secured web-service. The certificate which i would like to add to the web...

Determining webservice outbound IP Address

My business has a .NET web service (not WCF) hosted in IIS on a server which has four network interfaces. The service makes calls to an external web service, hosted by a third party. In order to configure firewalls correctly internally and at the third party, we need to know which of the available IP addresses on the server the web ser...

Not responding window

My code calls a Web service method which takes a few minutes to perform the operation. During that time my window becomes non responsive and it shows a complete white screen. I don't want to the call method from a different thread. It it the best way to handle it? Environment: C#, web service ...

Using client certificate not in certificate store

Hello, I'm trying to authenticate myself against WebService using my client certificate, but, for some reasons (I explain), I don't want to load certificate from store, rather read it from disc. The following: // gw is teh WebService client X509Certificate cert = new X509Certificate(PathToCertificate); _gw.ClientCertificates.Add(Clien...

Howto: Configure Spring-WS to publish WSDL files with a '?WSDL' style URL?

I am trying to configure web service proxying using Mule ESB. I am attempting to do this using Mule's WSProxyService, but after stepping through the corresponding code (with the debugger), it is clear that this class replaces endpoint addresses. The problem is Spring-WS WSDL addresses are of the style http://xxxx/xxxx.wsdl, but WSProxy...

InvalidOperationException was unhandled by user code - error CS0029: Cannot implicitly convert type 'string' to 'string[]'

Using C#, I am attempting to consume a web service that was created in Java and deployed on a WebLogic server. I am using VS 2008 and have created an ASP.NET Web Site. I added the service as a web reference and it appears that the classes are available. I attempt to consume the service with the following code: ShippingApplicationSer...

Handle transactions for two independent data sources as one

I have two data sources: a legacy one (web service) and a database one. Now, when I process request, I made changes to both. In case of error, I want to rollback both. try { legacy.Begin(); db.Begin(); legacy.MakeChanges(); db.MakeChanges(); } except (Exception) { legacy.Rollback(); db.Rollback(); } The problem is, what if legac...

Windows Mobile Web Services - works while tethered, not while using cell data network

I've written an ASP.NET web service that I would like a .NET 3.x application running under Windows Mobile 6.1 to communicate with. When the phone is connected to a desktop via USB/ActiveSync it can communicate with the web service flawlessly. When I place the phone on the cell network (unplug the USB cable) it is not able to communicat...

Best approach for creating new RPC/web services in the Java world?

I think this question may end up being a bit subjective so I'm marking it as CW. My team is interested in developing a new set of "web services" for our projects to use. I put "web services" in air-quotes since the term can mean so many different things. The only thing we really need it to mean is that we can expose some set of APIs to ...

Using anonymous and basic authentication in the same folder under IIS7

I have a have Winforms client that uses Web services on a IIS7 (W2008) The client will first access a first.asmx page with anonymous aaccess, then access second.asmx with basic authentication (over SSL). This works fine in IIS6 where I can set first file to have anonymous authentication and the second file to have basic authentication. ...

Can't Access SOAP Methods When Using Class Library

Hi. I am having problems accessing methods in my WCF class library and am wondering if somebody could explain why? I have a web project that has a single DLL file - WebAPILibrary.DLL in its /bin folder. The SVC files in my Web Site are pointing to the corresponding contracts contained in the DLL file. So, for example, under the names...

Consuming WCF self-hosted service from another machine.

I've developed a self-hosted WCF service using basicHttpBinding, and all works fine when the client is on the local machine. But when I try and connect from any machine on the network, it just times out, giving me the following error: There was an error downloading 'http://192.168.0.59:8888/DannyService?wsdl'. Unable to connect to the r...

Creating a web service for use in an internal application and exposing it to others

For my web application, I am thinking about using the Spring framework. Initially, I was thinking of having different actions like create user or login, but now I have to expose some functionality to other applications. Should I create a web service that I call from my application and others do as well, or create an action from Spring ...

Amazon Web Services with PHP - planing learning curve

As many PHP programmers, I am a kind of CMS guy, but also training my "framework" muscles too. From what I observe, there is more demand for Amazon Web Services in job descriptions. Hence, they are worth learning. But any learning should be well-targeted, with purpose, so I am asking questions below. My question is which kind of applic...

Consuming .NET Web Service in Objective-C [iPhone]

Hi all, I am looking for some tutorials on how I can consume a .Net webservice on the iPhone platform (3.0). I have never looked at Cocoa XML prasing before, to the more indepth the tutorial is the better. We have an existing webservice framework currently in place, which return XML, so I would ideally like to consume these, as opposed...

C# xml output from google search results

I need a c# code to output xml results for google search results. Please help! ...