soap

Getting SOAP Errors with ASMX Web Service e.g Unsupported Media Tyype

两盒软妹~` 提交于 2019-12-25 16:08:35
问题 I have been given an old webservice .asmx to work with and although the code works fine in debug mode (VS play debug on local host) when I try and write a consumer app to pass the relevant SOAP request to get a response I cannot get it to work. In .NET I get Status 415 Unsupported Media Type (never heard of that before) - tech asked me what media I was sending I said text as XML. Here is all the code plus debug. I tried even writing an ASP classic version but get different errors depending on

Web service consuming from iPhone approach

五迷三道 提交于 2019-12-25 14:23:08
问题 How can I improve this code? This question is related to What is the last function in iPhone application lifecycle -(void)LogoutUser { int userId = [[GlobalData sharedMySingleton] getUserId]; NSString *soapMsg = [NSString stringWithFormat: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>...", userId ]; NSURL *url = [NSURL URLWithString: @"http://....asmx"]; NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url]; NSString *msgLength = [NSString stringWithFormat:@"%d", [soapMsg length]

Web service consuming from iPhone approach

时光怂恿深爱的人放手 提交于 2019-12-25 14:21:39
问题 How can I improve this code? This question is related to What is the last function in iPhone application lifecycle -(void)LogoutUser { int userId = [[GlobalData sharedMySingleton] getUserId]; NSString *soapMsg = [NSString stringWithFormat: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>...", userId ]; NSURL *url = [NSURL URLWithString: @"http://....asmx"]; NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url]; NSString *msgLength = [NSString stringWithFormat:@"%d", [soapMsg length]

WSO2 ESB: log and convert response from the RDF REST service back to SOAP

旧巷老猫 提交于 2019-12-25 12:10:08
问题 I am working on the WSO2 ESB POC for my company, which involves exposing the internal RESTful service via SOAP endpoint on the ESB. I've read all the threads and blog posts related to the SOAP-REST mediation, but still could not find an answer. My RESTful service returns "application/rdf+xml" message format. Here is my sequence: <proxy xmlns="http://ws.apache.org/ns/synapse" name="CQProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence>

WSO2 ESB: log and convert response from the RDF REST service back to SOAP

跟風遠走 提交于 2019-12-25 12:09:06
问题 I am working on the WSO2 ESB POC for my company, which involves exposing the internal RESTful service via SOAP endpoint on the ESB. I've read all the threads and blog posts related to the SOAP-REST mediation, but still could not find an answer. My RESTful service returns "application/rdf+xml" message format. Here is my sequence: <proxy xmlns="http://ws.apache.org/ns/synapse" name="CQProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence>

How can I send the soap request with php SoapClient?

大兔子大兔子 提交于 2019-12-25 11:53:20
问题 I want to send the below object using soap with php SoapClient. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adin="http://3e.pl/ADInterface"> <soapenv:Header/> <soapenv:Body> <adin:queryData> <adin:ModelCRUDRequest> <adin:ModelCRUD> <adin:serviceType>ReadSalesOrder</adin:serviceType> <adin:TableName>XX_RV_Interface_Order</adin:TableName> <adin:RecordID>0</adin:RecordID> <adin:Filter></adin:Filter> <adin:Action>Read</adin:Action> <!--Optional:--> <adin

Make cxf-codegen-plugin generated class persistence capable

混江龙づ霸主 提交于 2019-12-25 11:05:32
问题 I have a Maven jar project that creates a SOAP client using cxf-codegen-plugin. In an another Maven project using that client it is simply needed to persist instance of a data class (some soap response) - generated by cxf-codegen-plugin - with JPA (currently using OpenJPA) . It might be possible with some configuration stuff - for example - after each client source code generation to add @Entity annotation to data class before compiling/enhancing and installing the client jar but I'd like to

Java SOAP-WS client horror

∥☆過路亽.° 提交于 2019-12-25 10:25:26
问题 It's looking amazingly difficult to use any of the most used soap services framework (at least those I've tried) and come up with this kind of soap request <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bencws.foobar.com/doc/2008-01-01/" xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"> <soap:Header xmlns:foo="http://safe.foobar.com/doc/2007-01-01/" xmlns:oof="http://www.w3.org/2005/08/addressing"> <foo:AccessKeyId>0PKRFZMV7GRJ11N791R2</foo

Authenticating Microsoft EWS using Nodejs over SOAP with x509 certificate

隐身守侯 提交于 2019-12-25 10:19:13
问题 I have had great success with the Microsoft Graph API to access users etc etc within Azure Active Directory, however two things that still require EWS and SOAP are retrieving user photos and adding a mail rule to a users mail account. I'm using Service accounts for everything, and impersonating an account admin to make requests. After attempting to use the same access token that I am using against the Graph API, I receive the error: The access token is acquired using an authentication method

How to pass a two dimensional list/array between groovy scripts in soap ui?

…衆ロ難τιáo~ 提交于 2019-12-25 09:19:47
问题 Problem statement: We need a way to pass a two dimensional list (or array) from one groovy script to other scripts ( to assert values from multiple DB2 tables in other scripts]. Some Background: Step1: Based on our input xml payload we are capturing the list of nodes (and child elements) in a two dimensional list [][]. [Done] Step2: Now we want to use the values from each of this list to assert with respect to values in DB2 tables [Also done, however keeping both step1 and step2 in same