soap-client

Extending php SoapClient for siteminder authentication

眉间皱痕 提交于 2019-12-04 08:17:43
Short Version I want to extend SoapClient so it does this internally when accessing the WSDL: curl -L -E /location/of/cert.pem -c /tmp/location/of/cookie.jar https://web-service-provider/servicename?wsdl Long Version I've got a SOAP request similar to this: $serviceUrl = 'https://service-url'; $wsdl = $serviceUrl . '?wsdl'; $proxyServiceUrl = 'http://localhost/myproxy.php?url=$serviceUrl'; $proxyWsdl = 'http://localhost/myproxy.php?url=$wsdl'; $options = array( 'cache_wsdl' => WSDL_CACHE_NONE, 'encoding' => 'utf-8', 'soap_version' => SOAP_1_1, 'exceptions' => true, 'trace' => true, 'location'

PHP SoapClient - Multiple attributes with the same key

自作多情 提交于 2019-12-04 03:38:27
问题 I'm using SoapClient, trying to produce something for this specification: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <WSUser xmlns="http://webservices.listrak.com/v31/"> <UserName>string</UserName> <Password>string</Password> </WSUser> </soap:Header> <soap:Body> <SetContact xmlns="http://webservices.listrak.com/v31/

Custom header using PHP soap functions

你离开我真会死。 提交于 2019-12-04 03:14:08
I am having a problem getting a custom soap header to work with PHP5. Can anybody guide me please. What I require is something like this <SOAP-ENV:Header> <USER>myusername</USER> <PASSWORD>mypassword</PASSWORD> </SOAP-ENV:Header> What I get is : <SOAP-ENV:Header> <ns2:null> <USER>myusername</USER> <PASSWORD>mypassword</PASSWORD> </ns2:null> </SOAP-ENV:Header> I would like to remove the namespace tags. The code I use to get this is: class Authstuff { public $USER; public $PASSWORD; public function __construct($user, $pass) { $this->USER = $user; $this->PASSWORD = $pass; } } $auth = new

SOAP Client over HTTPS with SSL certificates on both sides

。_饼干妹妹 提交于 2019-12-04 02:24:10
问题 I have to develop a SOAP Client, and the supplier send me this specifications: Will be transmited using HTTPS through IP, and will be Packaged as XML documents that adjust to the diferent defnitions of XML scheme. The Communications is synchronous, the third party should wait for response. Each request and response will be signed. I'm using the soapClient class from PHP, and all works fine, except when I try to use my private key to establish communication with the server: Code: WSDL |

PHP SoapClient: How to prefix SOAP parameter tag name with namespace?

三世轮回 提交于 2019-12-03 20:46:27
I'm using PHP's SoapClient to consume a SOAP service but am receiving an error that the SOAP service cannot see my parameters. <tns:GenericSearchResponse xmlns:tns="http://.../1.0"> <tns:Status> <tns:StatusCode>1</tns:StatusCode> <tns:StatusMessage>Invalid calling system</tns:StatusMessage> </tns:Status> </tns:GenericSearchResponse> The XML PHP's SoapClient sends for the SOAP call: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://.../1.0"> <SOAP-ENV:Body> <ns1:GenericSearchRequest> <UniqueIdentifier>12345678</UniqueIdentifier> <CallingSystem>WEB<

How to set soap headers in zeep when header has multiple elements

房东的猫 提交于 2019-12-03 17:13:49
I am trying to use python zeep to connect to a soap service ( using wsdl ). Following is the soap-ui generated XML for an operation. However I am finding it difficult to identify how to set soap headers . In this case, we have multiple XML elements within the header . <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acm="http://www.acme.com/ACM"> <soapenv:Header> <acm:MessageID>?</acm:MessageID> <acm:ExName>?</acm:ExName> <acm:Authentication> <acm:Username>?</acm:Username> <acm:Password>?</acm:Password> </acm:Authentication> </soapenv:Header> <soapenv:Body>

Having issue with delphi WSDL importer

与世无争的帅哥 提交于 2019-12-03 16:51:22
I am importing a WSDL provided by third party. but I am not successful with delphi WSDL importer. When I import the WSDL then delphi WSDL importer is hiding the implementation of the classes from the WSDL file.The WSDL file contains some functions which accept objects as parameter. After importing the WSDL delphi gives error as some variables are undeclared which are actually objects of class,whose definition is hidden by WSDL importer. I have no personal experience with it, but the Free Pascal Web Service Toolkit seems to be in active development. It is compatible with Delphi,and can be used

Consume a Web Service that requires WS-Security from ASP.NET 4.5 Application

南楼画角 提交于 2019-12-03 13:29:56
问题 I need to consume a web service that requires WS-Security based on X.509 certificates from ASP.NET 4.5 application. So far i have created the web reference but i don't know how implement WS-Security. I have no problem with getting the certificate, but i don't know how to use it in this case, i need to get advice on how to proceed. My code so far is very basic, i need to add WS-Security to it: var tere = new serviciotereSoapClient(); tere.ClientCredentials.ClientCertificate.Certificate =

WSP0075: Policy assertion “TransportBinding” was evaluated as “UNKNOWN”. Why?

故事扮演 提交于 2019-12-03 10:34:54
I am a client to a SOAP service I do not control (implemented in .NET). The service provides a WSDL. I use Apache CXF to generate the java client from the WSDL (specifically, I am using the cxf-codegen-plugin for Maven, which uses wsdl2java under the hood). However, when I instantiate the generated service class, the following warnings are logged: Sep 04, 2014 5:18:00 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives WARNING: WSP0075: Policy assertion "{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}TransportBinding" was evaluated as "UNKNOWN". Sep 04,

Using Magento API to get Products

自闭症网瘾萝莉.ら 提交于 2019-12-03 09:12:55
问题 I'm using the Magento API to get product data for products from a certain category from another domain. I have made the API call etc... The code I'm currently using to get the product data looks like this: $productList = $client->call($session, 'catalog_category.assignedProducts', 7); foreach ($productList as $product){ $theProduct = array(); $theProduct['info'] = $client->call($session, 'catalog_product.info', $product['sku']); $allProducts[] = $theProduct; } The code works fine, but it goes