soap

How to authentice users with SOAP ?

Do we have to send username/password along with the SOAP message ? In that case, my database server will have to run a query every time to authenticate. Is there a method for token based authentication ? It would be really helpful if someone could point me in the right direction. ...

Parsing SOAP response using libxml in Ruby

I am trying to parse following SOAP response coming from Savon SOAP api <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt; <soapenv:Body> <ns:getConnectionResponse xmlns:ns="http://webservice.jchem.chemaxon"&gt; <ns:return> &lt;Co...

Why use Nusoap rather than PHP SOAP ? Any benifits ?

As far as i have scourged the web, i can see an abundance of articles on how to setup Nusoap and use it to setup a soap server/client in PHP. However, none of them seem to point to any advantages of using it than PHP's own native SOAP library. Can anyone tell me what are the pros/cons between : Nusoap PHP SOAP PEAR::SOAP Zend SOAP...

SoapHttpClientProtocol disable ssl certificate validation

I need to tell my C# soap web service consumer to not validate the certificate and just accept it. Is this possible? Why: we publish a https-only web service. A client needs to consume it but has some kind of firewall/proxy (WebSense?) which does something to the certificate to make it fail validation. At this point I don't even know...

In XML Web Services, what is the best practice for passing exceptions back to the client?

If my web method throws an exception, what is the best practice for passing that exception to the client? ...

Should my WCF webservice return a 500 or 200 http code (soap fault / functional return message)

Hi all, after reading the SOAP 1.1 specs, it states that a SOAP Fault should return a http 500 errorcode when communication goes over a http binding, so when a SoapException is thrown, WCF returns a http 500 error code. Now, I'm looking for some best practices to when return a functional soap error message and when to return a SOAP Fau...

When the request xml with extra elements, return Unmarshalling Error in CXF 2.2.7

The wsdl as following: <xs:complexType name="GetCompositionDto"> <xs:complexContent> <xs:extension base="tns:baseDto"> <xs:sequence> <xs:element minOccurs="0" name="itemCode" type="xs:string"/> <xs:element minOccurs="0" name="compositionVersion" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> ...

How to do authentication using SOAP ?

How do i authenicate users with SOAP ? Will i have the user require to send his username/pass with every SOAP request and i authenticate him against the database ? Doesn't that seem to cause unnecessary queries ? ...

SOAPMonitor unable to communicate with server

I have a problem with my Apache Axis 1.4 service, using the SOAPMonitor which comes with the binaries. While the applet starts up with no problems (e.g. http://localhost:8080/axis/SOAPMonitor), the status bar in the embedded application gives the following error message: "The SOAP Monitor is unable to communcate with the server" Some...

PHP SOAP problems with response

Hello everybody, since a few days I am experiencing problems with my developed php soap (php soap extension, NOT nusoap) search interface to the PubMed literature service using their eutils wsdl service (Entrez Utils). Before the problems arised I used the returned array from the low level function __soapcall(), it worked well, extrac...

Zend Framework - Does Zend_Soap_Client supports SwA (Soap With Attachments)?

I need SwA (Soap with Attachments) support in php for a project. I can't find a reference in ZF docs about supporting SwA or not. Anybody knows if it is supported? If not supported, I have heard about WSO2 WSF/PHP which it does support SwA. My question would be... is it possible to integrate both ZF and WSF/PHP? Thanks in advance! Pab...

Flex/Flash 4 datagrid displays raw xml

Problem: Flex/Flash4 client (built with FlashBuilder4) displays the xml sent from the server exactly as is - the datagrid keeps the format of the xml. I need the datagrid to parse the input and place the data in the correct rows and columns of the datagrid. flow: click on a date in the tree and it makes a server request for batch inform...

Why would Basic Auth not work with my WCF client to Java SOAP Web Service?

I have a Java based web service that requires basic authentication to communicate with it. If I type the WSDL url into my browser I'm prompted for Basic Auth. Which I can get by entering the correct credentials. However using my WCF client doesn't work. I construct my WCF client like this: var binding = new BasicHttpBinding { MaxR...

Android Client : Web service - what's the correct SOAP_ACTION, METHOD_NAME, NAMESPACE, URL I should use?

if I want to use the following Web service (help.be is just an example, let's say it does exist): http://www.help.be/webservice/webservice_help.php (it's written in PHP=client's choice, not .NET) with the following WSDL : <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" name="webservice_help" ...

Salesforce: Fire a SOAP Outbound Message using Apex

I have an existing Workflow Rule that fires of a (SOAP) Outbound Message when a certain type of object is created or updated. That works fine. I want to extend it so that a similar Outbound Message is also sent when the objects are deleted. According to this discussion, Workflow Rules cannot be made to fire based on object deletions, s...

Is there any way to get the requesting user's ID in an ASP.NET web service method?

I know this probably isn't possible, but I would like to be able to get the Request user ID from within an ASP.NET web service method. So far, I've tried User.Identity.Name, Context.Request.LogonUserIdentity.Name, Request.ServerVariables["AUTH_USER"] and Request.ServerVariables["LOGON_USER"]. Am I tilting at windmills here, or is there...

How can I discover the contract of a non-SOAP web API?

Let's say I have the URI for a RESTful or other contract-less API. Is it possible to determine its interface programatically? I'm using C#/ASP.net MVC, not sure if that's important. I understand that there won't be a published contract, but I'm wondering if there's something I'm not thinking of (there usually is). ...

JAXWS and sessions

I'm fairly new to writing web services. I'm working on a SOAP service using JAXWS. I'd like to be able to have users log-in and in my service know which user is issuing a command. In other words, have some session handling. One way I've seen to do this is to use cookies and access the HTTP layer from my web service. However, this ...

How to return a ComplexType in PHP SOAP ?

The following is a fragment from my WSDL which describes the ComplexType "user" which has to be returned by the SOAP method. <s:complexType name="user"> <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="ID" type="s:int" /> <s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" /> ...

SOAP Request PHP5

I'm trying to make a soap request and having difficulties. Here is my php: <?php $option=array('trace'=>1); $soapClient = new SoapClient('http://www.domain.com/ws/AccountManagement.wsdl', $option); $headers = array('LOGIN_ID' => '[email protected]', 'LOGIN_PASSWORD' => 'mypassword'); $header = new SoapHeader('https://www.domain.com', '...