soap

CXF throws None of the policy alternatives can be satisfied

蹲街弑〆低调 提交于 2019-12-23 03:52:14
问题 I am trying to write Java client for .NET web service using CXF but when calling "client.getConduit()", it throws Exception - org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied. Please help! Here is the code snippet- ServiceClass service = new ServiceClass(); PortClass port = service.getPort(ServiceClass.class); Client client = ClientProxy.getClient(port); HTTPConduit httpConduit = (HTTPConduit) client.getConduit(); final HTTPClientPolicy

Unable to pass authentication paramethers inside Python SOAP call

核能气质少年 提交于 2019-12-23 03:48:26
问题 I have an WSDL file <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:TestWebService"> <soapenv:Header> <urn:AuthenticationInfo> <urn:userName>test</urn:userName> <urn:password>test</urn:password> <!--Optional:--> <urn:authentication></urn:authentication> <!--Optional:--> <urn:locale></urn:locale> <!--Optional:--> <urn:timeZone></urn:timeZone> </urn:AuthenticationInfo> </soapenv:Header> <soapenv:Body> <urn:Pokupi> <urn:Request_ID__c>000000000000141<

HTTP 401 Unauthorized error in sending GetItem Request

坚强是说给别人听的谎言 提交于 2019-12-23 03:47:12
问题 I'm using EWS GetItem operation to fetch data from exchange server, but i've got following error Error 401 fault: SOAP-ENV:Server[no subcode] "HTTP Error" Detail: HTTP/1.1 401 Unauthorized However my login credential are correct, since those are works well with findItem request and response, but when GetItem request goes to server it give above error. My credentials are like: soap *pSoap = proxy->soap; proxy->soap_endpoint = "https://outlook.office365.com/ews/exchange.asmx"; pSoap->userid =

PHP Soap - Can't import schema

二次信任 提交于 2019-12-23 03:07:49
问题 I want to connect to a Soap server, but I have the error : SOAP-ERROR: Parsing Schema: can't import schema from 'http://domain.com:80/services.xsd I took a look on other questions, and I have my "allow_url_open" to ON, I use SOAP_1_1 and OpenSSL is enabled. Something is weird, the URL to my SOAP server is : https://domain.com/services?WSDL And in the error, there is no more "https", but only "http" on port 80. I tried : wget https://domain.com/services?WSDL And it works. I have an XML file

WCF Custom serialization based on params

不羁的心 提交于 2019-12-23 02:39:15
问题 Can I implement some custom serialization (SOAP) to serialize only the fields wich can be changed dynamically Class: [DataContract] public class Video { ... [DataMember] public int Width { get; set; } [DataMember] public int Height { get; set; } [DataMember] public short Bitrate { get; set; } [DataMember] public short Framerate { get; set; } [DataMember] public long Duration { get; set; } [DataMember(EmitDefaultValue = false)] public VideoType Type { get; set; } } WCF Method: public Video

Migrating SOAP functionality from PHP to Perl using SOAP::WSDL

主宰稳场 提交于 2019-12-23 02:17:16
问题 I'm struggling to get SOAP working in perl. In PHP it works perfectly, and without any trouble. And now I'm trying to do the same thing in Perl. The functional PHP is: $client = new SoapClient("http://thirdpartyurl.com/api.aspx?WSDL"); $info = $client->GetSomeInfo(array('username' => 'myusername', 'password' => 'mypassword')); Which works great, but I just can't get it working in perl. I tried SOAP::Lite, but didn't make any progress. And I'm now trying SOAP::WSDL: use SOAP::WSDL; my $wsdl =

Creating Soap messages with objectTypes using SUDS library in Robot Framework

不想你离开。 提交于 2019-12-23 01:52:52
问题 i am struggling to create this part of the soap message using robot framework with SUDS library. <ns1:Request> <ns0:ID objectType="SomeType">Value</ns0:ID> </ns1:Request> If i do like this, then i get all i need but not the objectType. ${object}= Create Wsdl Object ns19:RequestTypeSingle Set Wsdl Object Attribute ${object} ID 1234 Output <ns1:Request> <ns0:ID>1234</ns0:ID> </ns1:Request> If i check what my ns19:RequestTypeSingle wants i get this: ${object} = (RequestTypeSingle){ ID = (ID){

Sending SOAP requests using libcurl as XML file

大憨熊 提交于 2019-12-23 01:52:35
问题 I'm trying to use libcurl to do a SOAP http post to a web service. I have the SOAP requests already formed in XML files which I generate. Now I need to transefer these XML files to the webservice. N.B. I'm pretty new to writing webservices (especially in C). Is there a way do send the SOAP requests straight from the XML file using libcurl? Or do I have to read the contents into a string? I'm restricted to using the C programming language to complete the task. I've been looking through

PHP SOAP File Upload

ぃ、小莉子 提交于 2019-12-23 01:46:30
问题 Is it possible to upload files with PHP and SOAP? Here is the PHP code being used: $post = "a.txt"; $fp = fopen($post, "r"); $client = new SoapClient("http://api.4shared.com/servlet/services/DesktopApp?wsdl"); $id = $client->createUploadSessionKey("user","pass",-1); $new_id = $client->uploadStartFile("user","pass",-1, "name", 500*1024); $dcId = $client->getNewFileDataCenter("user","pass"); $sessKey = $client->createUploadSessionKey("user","pass", -1); $upload = $client->getUploadFormUrl($dcId

In SOAP message to WCF web service, how to put KeyIdentifier directly inside SecurityTokenReference (inline, without using Reference token)

女生的网名这么多〃 提交于 2019-12-23 01:41:55
问题 I'm successful in communicating with a WCF service via SoapUI (I was given specification on how to configure it), but I'm having trouble in copying those settings to .NET application. Turns out the shape of generated SOAP message (peeked via Fiddler) is being rejected by the web service, who expects a stricter layout of envelope. I'm very close. On this picture... ... you can see three SOAP messages: 1. With X509SecurityTokenParameters.InclusionMode set to AlwaysToRecipient 2. With