soap

How to disable/deactivate a SalesForce User through SOAP API?

纵饮孤独 提交于 2020-01-13 14:04:13
问题 I want to disable a User programmetically by using SOAP API. How can I do that? I am using Partner API and I have Developer edition. I have manage users persmissions set. I have gone through this link. I am looking for code which can help me disable/deactivate a User. This is my code: import com.sforce.soap.partner.Connector; import com.sforce.soap.partner.PartnerConnection; import com.sforce.soap.partner.QueryResult; import com.sforce.soap.partner.sobject.SObject; import com.sforce.ws

Soap version mismatch in java

三世轮回 提交于 2020-01-13 07:29:07
问题 Soap-request generated Java application [Failed] <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dir="http://xxxxxxxxxx"> <soapenv:Body> <xxxxxxxxxxx> </soapenv:Body> </soapenv:Envelope> Soap-request generated by SoapUI [Successful] <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:dir="http://xxxxxxxxxx"> <soap:Header/> <soap:Body> <dir:ping/> </soap:Body> </soap:Envelope> How to change namespace

Generate SOAP requests on the fly, based on WSDL

旧街凉风 提交于 2020-01-13 06:43:13
问题 I'd like to build a simple test harness for the various web services consumed by my application that I can run in my staging or production environment to verify that the web services are working and see what data their web methods are returning. Is there a way I can generate a SOAP request based on the WSDL provided by a web service at run time (i.e. without adding a web reference to my project and creating a proxy for the web service)? 回答1: Check out SoapUI (http://www.soapui.org/). It's the

Failing to validate server certificate with OpenSSL

时光毁灭记忆、已成空白 提交于 2020-01-13 06:14:48
问题 I have written a SOAP client using OpenSSL (written in C++ on Ubuntu 12.04) but it currently works without checking the server security certificate. This is the function I am using to set up the connection and checking the certificate bool bInitialiseSSL(SSL_CTX* &ctx, SSL* &ssl, BIO* &bio) { ctx = SSL_CTX_new(SSLv23_client_method()); bio = BIO_new_ssl_connect(ctx); if (bio == NULL) { ERR_print_errors_fp(stderr); SSL_CTX_free(ctx); return false; } BIO_get_ssl(bio, &ssl); SSL_set_mode(ssl, SSL

Failing to validate server certificate with OpenSSL

淺唱寂寞╮ 提交于 2020-01-13 06:14:05
问题 I have written a SOAP client using OpenSSL (written in C++ on Ubuntu 12.04) but it currently works without checking the server security certificate. This is the function I am using to set up the connection and checking the certificate bool bInitialiseSSL(SSL_CTX* &ctx, SSL* &ssl, BIO* &bio) { ctx = SSL_CTX_new(SSLv23_client_method()); bio = BIO_new_ssl_connect(ctx); if (bio == NULL) { ERR_print_errors_fp(stderr); SSL_CTX_free(ctx); return false; } BIO_get_ssl(bio, &ssl); SSL_set_mode(ssl, SSL

PHP Soap client with WCF BadContextToken

半世苍凉 提交于 2020-01-13 05:53:51
问题 After few days of google -ing/trying/loosing hair I still can't find solution for this so please help :) Short info: I need to work with WCF service from PHP (SOAP client). It uses wsHttpBinding (ws-security) and there is no way to set basicHttpBinding. Everything is behind VPN so I can't offer you link to webservice. Also data is considered secret (request from client) so I can't give you full info, only some "common" things. Here is WS config: <configuration> <system.serviceModel> <bindings

PHP Soap client with WCF BadContextToken

本小妞迷上赌 提交于 2020-01-13 05:53:07
问题 After few days of google -ing/trying/loosing hair I still can't find solution for this so please help :) Short info: I need to work with WCF service from PHP (SOAP client). It uses wsHttpBinding (ws-security) and there is no way to set basicHttpBinding. Everything is behind VPN so I can't offer you link to webservice. Also data is considered secret (request from client) so I can't give you full info, only some "common" things. Here is WS config: <configuration> <system.serviceModel> <bindings

Issues with WCF and SOAP WS-Security PlainText Username (No SSL)

末鹿安然 提交于 2020-01-13 05:27:28
问题 We need to consume a SOAP 1.1 Web Service, developed using Java, from within a C#/.Net 4.0 application. We have no access to the service programming or the server it resides on. The service is exposed over a non SSL connection and requires WS-Security, Username/PasswordText. Using SoapUI (http://soapui.org/) we are able to consume the web service simply by creating a project, pointing it to the WSDL and setting up a simple Username/PasswordText WS-Security configuration. The issue is that we

How to upload a file to a SOAP web service?

陌路散爱 提交于 2020-01-13 03:39:46
问题 I have a .p12 file that I want to upload to a SOAP web service, so that my application can make requests to get it later. How do I upload this file? I don't necessarily want this in my application code, since it's something I only want to do once. But, if it matters, I am using Java. 回答1: You should take a look at MTOM, if the service supports it. If it accepts file attachments, then it probably uses MTOM. Not sure what you mean by keeping it out of application code, but how you go about

转:C#[Serializable]在C#中的作用-NET 中的对象序列化

别说谁变了你拦得住时间么 提交于 2020-01-13 02:22:53
为什么要使用序列化?最重要的两个原因是:将对象的状态保存在存储媒体中以便可以在以后重新创建出完全相同的副本;按值将对象从一个应用程序域发送至另一个应用程序域。例如,序列化可用于在 ASP.NET 中保存会话状态,以及将对象复制到 Windows 窗体的剪贴板中。它还可用于按值将对象从一个应用程序域远程传递至另一个应用程序域。本文简要介绍了 Microsoft .NET 中使用的序列化。 一.简介 序列化是指将对象实例的状态存储到存储媒体的过程。在此过程中,先将对象的公共字段和私有字段以及类的名称(包括类所在的程序集)转换为字节流,然后再把字节流写入数据流。在随后对对象进行反序列化时,将创建出与原对象完全相同的副本。 在面向对象的环境中实现序列化机制时,必须在易用性和灵活性之间进行一些权衡。只要您对此过程有足够的控制能力,就可以使该过程在很大程度上自动进行。例如,简单的二进制序列化不能满足需要,或者,由于特定原因需要确定类中那些字段需要序列化。以下各部分将探讨 .NET 框架提供的可靠的序列化机制,并着重介绍使您可以根据需要自定义序列化过程的一些重要功能。 二.持久存储 我们经常需要将对象的字段值保存到磁盘中,并在以后检索此数据。尽管不使用序列化也能完成这项工作,但这种方法通常很繁琐而且容易出错,并且在需要跟踪对象的层次结构时,会变得越来越复杂