soap

Hosting WCF soap and rest endpoints side by side

I have written a service that I would like expose both via rest and soap. Everything I read about WCF 4.0 says that I just need to expose 2 endpoints with differing behaviors to do this. But I cannot get it to work. Here is my service contract: [ServiceContract] public interface MyService { [OperationContract] [WebGet(UriTemp...

SOAP Request failing from Windows Service

I'm creating SOAP Request using the following code public static string SubmitSoapRequest(string url, string ns, string operation, string requestXml, ...

SOAP Response to Dataset

I'm trying to convert the response I'm getting from Web Service into a DataSet so I can bind it to a GridView. The response is already serialized. ...

How to set a timeout on a soap call using ksoap2-android?

Hey hey I'm using ksoap2 for my android project and it works great. I've succeeded in connecting to distant server but I currently have a problem when I want to set a timeout to my androidhttptransport. Is there a clean way (maybe an attribute to set?) to deal with it? I've found this same question there but it's not very detailed. Do...

Using username and password in HTTP or SOAP Header for STS based authentication

Hi, I have Windows Identity Foundation based WCF service. I have issues with interoperability because it seems to be kind of hard to implement PHP or Perl client for such service due to all WS-* protocols. Currently it works like this: Client authenticates at STS (using username and password) and receives SAML token containing requir...

SOAP request namespace question

I require some clarification on understanding exactly what a SOAP request is asking for with respect to a .Net 3.5 ASMX web service. Here's a sample request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dp="http://www.datapower.com/schemas/manage...

The methods method1 and method2 use the same SOAPAction

Hi! I'm implementing a webservice based on a wsdl that is provided by another company. I need to implement a webservice-stub for testing purposes. So I used wsdl.exe to generate the client and serverside interfaces and implemented them. When I do a webservice call I get an exception saying The methods method1 and method2 use the same SO...

How to send OK response to EWS

I am trying to get EWS's push notifications set up in my c# app. After getting the response from the server and reading it using a NetworkStream I need to respond to the server with Ok in a SOAP message. The only example that I can find uses Microsoft.Web.Services3 and a SoapEnvelope. My understanding is that this has now been replace...

How do I achieve this custom Soap request using PHP's Soap class?

I need to create a Soap request using PHP's Soap extension. I have searched and read both SO questions and the PHP.net manual, however, I have not been able to find a plain English explanation regarding how to implement a custom header with multiple namespaces, a special type, etc. Basically, I just find all the current documentation ver...

SOAP API with Transaction Numbers

Looking at creating a SOAP web service with Sping-WS We need to have transaction identifiers, currently it looks like we are deciding that the client can define a transaction number (which I think is a potentially dangerous decision at best). The reasoning given is that our clients want to be able to track their transactions, and if ...

Help using SOAP for login

I'm designing a website for an organization that's a state chapter of a national organization. The national organization has implemented a member login that I need to use for the state website. My website is in PHP, and it looks like the server for the national organization is using SOAP and ColdFusion. I'm a total newbie to using SOAP...

Soap service on linux

I am thinking of writing a tool on Linux that will have to process a fair amount of data and was wondering if using soap to centralize the service would be a good idea. I have 10 - 15 servers that will be sending the soap service about 1 Gig of data and will have to be sent back 2 gigs with probably about 30 mins of processing time. Th...

Securing MVC Rest + Soap Service with a single key strategy

I have an asp.net MVC 2 site setup to provide an API json/xml responses eg [GET] /Product/10 Returns an xml response of a product Additionally, I have a WCF SOAP service embedded into the site which returns the same methods (same contract) but via SOAP eg GetProduct(10) Returns an xml soap product. I chose this route because I li...

Soaplib exceptions

Hi! What's the best way to return an http error or throw an exception using the soaplib? Thanks! ...

C++ Soap Toolkits

Hi, I am looking for a SOAP toolkit which i can use with C++ language on Linux system.I have taken a look at AXIS2C and i find it poorly documented. gSoap unfortunately requires a license, so are there any others which are out there ? Cheers! ...

JAX-WS client authentication on proxy server

I'm trying to use JAX-WS api to send some soap messages on a client application. However, I'm behind a firewall and the only option is to use a proxy server to go outside. I'm trying to find on google any answer about this and so far all fail: To Use System.setProperty for http.proxyHost, http.proxyPort, http.proxyUser, http.proxyPasswor...

Why MTOM attachments get duplicated inline (JAX-WS RI 2.1)?

Hello, I'm trying to return binary data with MTOM as ant attachment, but actually data is inlined as base64 encoded data and then duplicated as attachment. Why? Here is my web service: @WebService @MTOM(threshold=0, enabled=true) public class BinaryService { private static final String SERVICE_ENDPOINT = "http://localhost:8998/test"...

Encoding faults in SOAP 1.1

I have a WSDL specifying the following port: <wsdl:portType name="Foo"> <wsdl:documentation>...</wsdl:documentation> <wsdl:operation name="getFoo"> <wsdl:documentation>...</wsdl:documentation> <wsdl:input message="tns:getFooRequest"></wsdl:input> <wsdl:output message="tns:getFooResponse"></wsdl:output> <wsdl:fault name=...

How can I tell whether an incoming SOAP message has an attachment or not?

I'm working on a web service in Java that takes in a SOAP request and needs to fail if the request doesn't contain an attachment. I'm testing using soapUI, sending a message to an instance of WSO2 ESB, passing it to an instance of Apache ActiveMQ and later converting it into an org.oasis_open.docs.ns.cmis.messaging._200908.SetContentStr...

PHP SOAP web service call help.

I'll start out by saying that I've never used SOAP before. Anyway, Here's the code I'm trying to create. <soapenv:Body> <Circuits xmlns="http://www.qpricer.com/Services/Pricing"&gt; <Circuit bandwidth="DS-3" port-billing-type="Flat" product="Dedicated Voice" term="1-Year"> <ns1:Loop npanxx="212255" xmlns:ns1="http://www.qpricer.com/...