web-services

Prevent .NET from writing to C:\Windows\Temp

I've got a C# application that I'm trying to push out to a distributed network. The application works fine locally (as always), but when I push it out to the network, it doesn't work because it can't write to the C:\Windows\Temp directory. I'm not actually calling any code that writes to that directory, but I imagine it is caused by my...

How to handle POSTed XML via Sinatra Ruby app

I'm planning on using Sinatra for a new tiny webservice (WS) that I need to put together for a client. The WS will only have two methods, one accessed via GET and one via POST. For the POST method, the client will send an XML packet to the sinatra WS which will parse the data and issue either a 200 OK HTTP response or a 40x error code....

Are there known connection issues for calling ASP .NET web service from PHP?

This may not be an appropriate question, but I'm not sure how else to research this. We have a client who uses PHP to connect to our .NET web service on a third party web host. They have been complaining about intermittent connection issues. On our end we have tested the service and it works, no problems. It's an extremely simple servi...

.NET to consume BW Soap over JMS Service

Hi All, I am able to consume a BW Soap over HTTP service in C#.NET but struggling with BW Soap over JMS Service. When I included the WSDL file under web references and compiled. Here is the warning that is displayed. "At least one import binding for the ServiceDescription is an unsupported type and has been ignored" My understanding...

Does this SOAP Fault mean what I think it means?

So, I'm working on integrating Fedex's Address Validation into a site I'm working on. Fedex web services are SOAP-based, so we're in the magical land of WSDLs here. I'm not fluent with web services yet, so bear with me. One can only consume the Address Validation service at a production level; I've got my production credentials situated...

Blackberry - send/receive XML data with webservice

Sample program for creating XML and send the XML data to web service and getting back the XML response from web server in blackberry? ...

PHP class generator for web services

Hello, I am trying to find some kind of php class generator for Web Services (WCF service if that matters) without any luck so far. Any ideas? thanks ...

deploying webservice

I need to deploy webservice on server which contain OS as a 'OS2200'..Is there any tool for deploying webservice.If it is windows OS i can use IIS for publishing Webservice here that is not the case it is a different OS ...

JAXWS serves only 100 requests, how to configure JAXWS to change it to unlimited?

Hello, I'm using JAXWS for generating webservices and serving using EndPoint.publish() as well as deploying war file, but as soon as it has served 100 requests it wouldn't return 101st response. How to configure JAXWS to change this count to unlimited? EDIT: solution found, first of all it was not related to JAXWS and I'm sorry for pos...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered is in naming services Example SomthingGatewayService.groovy can't be initialized in both these ways - SomthingGatewayService somtinggatew...

ado.net data services - how to grab subsets of data from the data model?

Hi, Im starting to use ado.net data services in a little silverlight application that Im putting together. Currently I'm using it in the most simplistic was possible: var teams = (from t in ents.tblTeams select t) as DataServiceQuery<tblTeams>; teams.BeginExecute( (ar) => this.cmTeams...

deserialize the XML Document --- Need Help

I am using the below code snippet now to deserialize the XML document ... [WebMethod] public XmlDocument OrderDocument(XmlDocument xmlDoc) { XmlSerializer serializer = new XmlSerializer(typeof(sendOrder.Order)); string xmlString = xmlDoc.OuterXml.ToString(); byte[] buffer = ASCIIEncoding.UTF8.GetBytes(xmlString); MemoryS...

Can I have an optional boolean parameter for an ASP.NET SOAP Webservice

I want to build a webservice with this signature, which does not throw an exception if param2 is left empty. Is this possible? [WebMethod] public string HelloWorld(string param1, bool param2){} The exception is a System.ArgumentException that is thrown when trying to convert the empty string to boolean. Ideas that have not worked so ...

Call WSDL by PHP

Hi All, I need to call some webservice functions, I need my request will have format: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://SureClose.com/Services/v1" xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt; <SOAP-ENV:Header> <wsse:Sec...

inter-op problem between Tibco axis2 1.4.1

Hi all, I have a inter-op problem probably because of a bug in axis2. in my case axis2 is server and Tibco is client. Problem is axis2 adds a "type" attribute to "return" element. <ns:return type="com.xx.GetGroups_Response"> and this attribute is undefined in wsdl <xs:element minOccurs="0" name="return" nillable="true" type="ax28:Ge...

How to use webservice behaviour in IE?

Hi, i am trying to call a webservice by using the IE's WebService behaviour object. As describen in the JS book book, I have inserted my div element: <div id="service" style="behaviour(webservice.htc)" onresult="onWebServiceResult()"> And I have my js globals and function: <script type="text/javascript"> var iCallId = -1; ...

"System.Web.HttpContext cannot be serialized because it does not have a parameterless constructor."

I've created a web service that other sites can use to store errors in my database. They can then come to my site to view their errors, search through errors, filter errors, etc. However, I'm getting the following error for my web service: System.Web.HttpContext cannot be serialized because it does not have a parameterless construct...

how do I send custom headers from flex to a web service in c#?

I've searched the web but i'm not getting it This is my flex code: private function callWS():void{ var ws:WebService = new WebService(); //changed this ws.addHeader(new SOAPHeader(new QName("uri","header1"),{AUTH:"bla"})); ws.loadWSDL("http://localhost:49548/test/WebService1.asmx?WSDL"); ws.HelloWorld.addEventList...

Can I make Axis2 generate a WSDL with 'unwrapped' types?

I'm trying to consume a hello world AXIS2 SOAP web service using a PHP client. The Java class is written in Netbeans and the AXIS2 aar file is generated using the Netbeans AXIS2 plugin. You've all seen it before but here's the java class: public class SOAPHello { public String sayHello(String username) { return "Hello,...

Inserting Username token in security header of already generated SOAP envelope gives me two headers!

I'm using WSS4J to add a Username token in the header of an already formed SOAP request envelope. Here is what the SOAP request looks like: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://sample03.samples.rampart.apache.org/xsd"&gt; <soapenv:Header/> <soapenv:Body> ...