soap

propagate spring security from webapp to soap webservice

不想你离开。 提交于 2020-01-04 13:35:09
问题 I have the following situation: we have several webapplications, all using Spring Security to do authentication/authorization. We want to create a webservice that will be used by all those webapplications. Communication will hapen over https. I want the security context of the webapp to propagate to the webservice, so that @Secured annotations on methods in the webservice implementation work correctly. I've looked at spring ws security, and have succesfully implemented authentication using

Python AXL/SOAP w. Zeep. How to avoid duplicate dictionary keys?

元气小坏坏 提交于 2020-01-04 09:46:49
问题 I wrote this request: client.updateLdapAuthentication(**{'authenticateEndUsers': authenticateEndUsers, 'distinguishedName': distinguishedName, 'ldapPassword': ldapPassword, 'userSearchBase': userSearchBase, 'servers':{'server': {'hostName': '172.20.23.230', 'ldapPortNumber': '3268', 'sslEnabled': 'false'}}}) This resulted in the expected request: <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Body> <ns0:updateLdapAuthentication xmlns:ns0="http://www

Python AXL/SOAP w. Zeep. How to avoid duplicate dictionary keys?

╄→гoц情女王★ 提交于 2020-01-04 09:41:42
问题 I wrote this request: client.updateLdapAuthentication(**{'authenticateEndUsers': authenticateEndUsers, 'distinguishedName': distinguishedName, 'ldapPassword': ldapPassword, 'userSearchBase': userSearchBase, 'servers':{'server': {'hostName': '172.20.23.230', 'ldapPortNumber': '3268', 'sslEnabled': 'false'}}}) This resulted in the expected request: <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Body> <ns0:updateLdapAuthentication xmlns:ns0="http://www

Standards for queries over SOAP

我的未来我决定 提交于 2020-01-04 09:16:47
问题 Is there a standards-sanctioned XML format for describing entity queries? Background: I plan to build a library for writing queries over WCF services. On the client I want to be able to write (C#): var customers = from c in service.Customers where c.Name.StartsWith("P") order by c.Name select c; I will use a custom serializer to turn the LINQ query into an XML format to send as part of the SOAP body to the server. Maybe it would look something like this: <query> <fetch entity="Customer"> <all

XML request in PHP NuSoap - “HTTP/1.1 400 Bad Request”

扶醉桌前 提交于 2020-01-04 09:04:16
问题 I'm using NuSoap within PHP to connect to an API. At the minute, I'm just simple trying to send over an example XML string provided by the company who provides the API, however I'm receiving a HTTP/1.1 400 Bad Request error. I've queried this directly with the company but they've said that when they use the XML they've provided, as well as other clients, they aren't having any problems. The XML I'm trying to send is: ![CDATA[<?xml version="1.0" encoding="utf-8" ?> <Service> <Name><![CDATA

XML request in PHP NuSoap - “HTTP/1.1 400 Bad Request”

最后都变了- 提交于 2020-01-04 09:03:56
问题 I'm using NuSoap within PHP to connect to an API. At the minute, I'm just simple trying to send over an example XML string provided by the company who provides the API, however I'm receiving a HTTP/1.1 400 Bad Request error. I've queried this directly with the company but they've said that when they use the XML they've provided, as well as other clients, they aren't having any problems. The XML I'm trying to send is: ![CDATA[<?xml version="1.0" encoding="utf-8" ?> <Service> <Name><![CDATA

PHP SoapClient __getFunctions() returning UNKNOWN types

◇◆丶佛笑我妖孽 提交于 2020-01-04 06:15:40
问题 I am trying to build a sample wsdl file that will be read by the PHP SoapClient, and although my wsdl document sort-of works (it returns the function correctly), something is still not right because PHP's __getFunctions method returns the following: array(1) { [0]=> string(35) "UNKNOWN getDocument(UNKNOWN $input)" } From what is returned by this function it seems that the type definitions are not 100% correct as the types are showing as UNKNOWN. <?xml version="1.0"?> <definitions name=

Calling WebService Using AJAX jQuery With SOAP

给你一囗甜甜゛ 提交于 2020-01-04 06:01:40
问题 I'm copy/pasting this HTML code from this guide but I cannot make the service work. The article talks about a WebService used to do simple arithmetic calculation, and I was lucky enought to find an endpoint that provides the same service: http://www.dneonline.com/calculator.asmx?WSDL So I fire up WcfStorm and if I try to request a SOAP call that makes 3 + 5 I receive as result 8 : All good, so now let's inject the call: <Add> <MethodParameters> <intA>3</intA> <intB>5</intB> </MethodParameters

javax.xml.soap.MessageFactory's instance is thread-safe?

血红的双手。 提交于 2020-01-04 05:52:10
问题 Anyone knows whether javax.xml.soap.MessageFactory's instance is thread-safe or not? I can't find any documentation related to it. 回答1: If you see no documentation on whether something is thread-safe you should assume that is it not. This will prevent a lot of headache if you assume it is and it is not. 来源: https://stackoverflow.com/questions/25279280/javax-xml-soap-messagefactorys-instance-is-thread-safe

Adding custom SOAP headers from Silverlight client

*爱你&永不变心* 提交于 2020-01-04 05:36:12
问题 I am trying to set up a web service between a Silverlight client and a Java server. I need to send username tokens (username/password) from the Silverlight client for authentication purposes. Since this is a proof-of-concept, I want to keep things simple and use HTTP as my transport layer. However it looks like Silverlight only supports username tokens over HTTPS (Visual Studio is unable to digest the WSDL from my Java server that does username tokens over HTTP). So my question is this: how