FAQ Database Discussion Community


SOAP service response cannot be mapped

java,web-services,soap,jax-ws
This problem has had me stumped for almost two days now, I really need some help figuring it out. I have used wsimport to generate code from two different .wsdl files for a Java project. The first service works just fine but for some reason the response from the second...

SOAP Client, Following an example

java,soap,saaj
I need to consume a SOAP Server named "Mouser" for my company. However I have a problem when I try to send a message. The documentation of my request is : POST /service/searchapi.asmx HTTP/1.1 Host: www.mouser.fr Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <MouserHeader...

WSDL binding difference

xml,web-services,soap,wsdl
In WSDLs generated by AXIS and CXF, there are always defined three binding elements. As reported in the following sample WSDL describing a temperature conversion service: <wsdl:binding name="ConverterSoap11Binding" type="ns:ConverterPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="celsiusToFarenheit"> <soap:operation soapAction="urn:celsiusToFarenheit" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input>...

IOS Swift Call Web Service using SOAP

ios,web-services,swift,soap
I have looked through the answers to how to call a web service via SOAP form swift on the internet and found some answers. I have tried to implement the code I have found in those answers but continually get a http 400 status code. I am trying to figure...

Save SOAP UI mock requests to a file

web-services,soap,request,soapui
I m using Soap UI basic version for some mocking. I need to persist my requests to some file. I just have generated mock services with some predefined input to output rules, and i searched on net and found this: def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea( "http log" ); def groovyUtils =...

How to we use the SoapClient in Cakephp…?

php,soap,soap-client,cakephp-3.0
I have enabled SOAP in my local server. My code is: ini_set('soap.wsdl_cache_enabled', '0'); ini_set('soap.wsdl_cache_ttl', '0'); $client = new SoapClient('web_url'); $session = $client->login('username', 'pwd'); $result = $client->call($session, 'function_name', '<id>'); print_r($result); Here it's executed successfully when I run the code on separate php file. But I got this error: Error: Class 'App\Controller\SoapClient'...

Consuming generic xml soap webservice in Java without wsimport

java,web-services,soap,wsdl
I'm searching for a way to consume soap webservices without using wsimport and tools like that. So far, everyting I found requires the wsdl artifacts generation and I want to avoid it because I don't know wich webservices will be used. The idea is to give the user the possibility...

Soap Address Location : ServiceStack SOAP 1.2

soap,wsdl,servicestack
I've been looking around for an answer but I've found nothing that solves my problem, forgive me if this has been asked before. I've got a REST and SOAP API and my problem is that when i add my swdl into SoapUI it opens it up and points to the...

Converting a ruby structure to a hash

ruby-on-rails,ruby,soap,web,savon
I've got a bit of a headache here - I'm pretty new to Ruby... I've got a structure like so returned from Savon... { :item => [{ :key => "result", :value=> "success" }, { :key => "data", :value=> { :item => [{ :key => "displayName", :value => "Matt" }, {...

Catching requests made in xampp with fiddler

php,soap,xampp,fiddler
I have a simple php file which makes SOAP requests. This is running on my local computer with XAMPP as a webserver. I am trying to catch the request made in fiddler, I can see the request to my php file but that just returns the html for the page....

SOAP Server was unable to process request

soap,fault
I have a problem about SOAP request.I want to explain what am I doing. This is my SOAP request. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET"> <soapenv:Header/> <soapenv:Body> <web:GetWeather> <!--Optional:--> <web:CityName>Istanbul</web:CityName> <!--Optional:--> <web:CountryName>Turkey</web:CountryName> </web:GetWeather> </soapenv:Body> </soapenv:Envelope> Endpoint :...

cxf request scoped bean not working in unit test (soap)

web-services,unit-testing,soap,scope,cxf
CXF soap application, using following versions: springBootVersion = 1.2.3.RELEASE springVersion = '4.1.6.RELEASE' cxfVersion = '3.1.0' junitVersion = '4.12' I have a spring bean with a request scope: @Component @Scope( value=WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS ) public class RequestScopedClass which I fetch dynamically from ApplicationContext in my CXF endpoint implementation: @Component @WebService(endpointInterface...

C# NetworkCredential in PHP

c#,php,web-services,soap,networkcredentials
I am trying to access a webservice through PHP. The webservice returns a byte array with a jpeg image, which is then shown on a webpage. Today the service is accesses by a C# call, like so ImgService i = new ImgService(); The credentials are set like this: i.Credentials =...

ServiceStack Soap 1.2 HTTPS Client

c#,soap,https,servicestack,soap1.2
I have a ServiceStack based Soap Client, which operates correctly for HTTP but when I try to use HTTPS it gives me this error ServiceStack.WebServiceException: The provided URI scheme 'https' is invalid; ex pected 'http'. Parameter name: via ---> System.ArgumentException: The provided URI scheme 'http s' is invalid; expected 'http'....

How To Generate Soap Request Without Envelop, Header & Body

java,soap
I'm working on a project that i need to send requests without and envlope, header or body objects as in below <Response> <SrvType>GET_NUMBER_DETAILS</SrvType> <AppName>IVR</AppName> <ClientSessionId>KSJ77SDS678DF7</ClientSessionId> <ClientTxnId>2145</ClientTxnId> <MsgOrigin>ECHELON</MsgOrigin> <MsgDest>IVRGW</MsgDest> <Timestamp>03/07/2013 15:32:49:357</Timestamp> <RespCode>SC0000</RespCode>...

Consuming and exposing webservices in one project (.NET)

.net,web-services,rest,soap
What is best practice concerning consuming and exposing webservices in one project? (.net) I need to create a rest webservice to expose data. The rest webservice would need to consume this data from another (SOAP) webservice from a third party. (The data needs to be merged with data present in...

Create Enveloped Signature with CXF and WSS4J

java,soap,cxf,jax-ws,xml-signature
I am currently creating a SOAP-Client in Java with help of Apache CXF. I've generated the Service classes from a given WSDL and configure the client programmatically.(Just to make clear, that I'm not using Spring configuration). The service I'm calling has the requirement that each Request I send, needs to...

SOAP request does not call correct method

java,web-services,soap,wsdl
I'm doing a soap request against this https://www.openxades.org:8443/?wsdl For that I generate a valid soap envelope can be seen here and this envelope requests correct data with this utility http://soapclient.com/SoapMsg.html But when I request it from java like this SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection soapConnection = soapConnectionFactory.createConnection(); String url =...

How to pass byte array of an Image over a soap web-service(XML) and decode this byte array on android device to convert it back to an Image

java,android,arrays,vb.net,soap
I want to send images over a web service to an android device. This web service is written in VB.net and it is being called by android device to fetch the data. I can fetch the data normally, but the issue is with Images. I have converted image into byte...

What property does soapui property window refer to? Is it the http request properties?

xml,web-services,soap,web,soapui
I'm trying to do a web service testing using SOAPUI. When I try to add the username and properties in the SOAPUI property window, I am getting the response. However, when i try to add the same username and password in the SOAP header in my request xml using tag,...

Web Service Client - Construction Failing Due To Timeout (Proxy Issue)

java,web-services,soap,https,proxy
I have a webservice in Java 1.6 that extends javax.xml.ws.Service. The WSDL URL is located at an HTTPS endpoint and I am behind a corporate proxy (NTLM I believe). I have the proxy host, port, username, and password. I have verified that I can access the WSDL using curl if...

Change the prefix in CXF with interceptor

soap,cxf,mule,mule-studio
I am trying to change <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> to <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> I am using Mule and CXF. We are exposing a SOAP service and the wsdl is from a legacy system (we imported it and generated the classes). It is necessary to change the prefix from 'soap' to just...

JAXB support for SOAP style arrayType

java,xml,web-services,soap,jaxb
I'm trying to make a new version of a server that previously used Axis 1.4 to respond to SOAP RPC requests using Spring-WS. I have a few of the RPC calls working, but I'm stuck trying to satisfy a request that expects a SOAP body that looks like this: <rpcCallResponse...

Apache Camel CXF

java,soap,apache-camel
Camel Configuration was working fine with v 2.13.4. After migrating to v 2.15.1 I am getting following error: Caused by: org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.apache.camel.component.cxf.spring.NamespaceHandler] for namespace [http://camel.apache.org/schema/cxf]: problem with handler class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/apache/camel/component/cxf/spring/NamespaceHandler, offset=6 at...

why I don't get list subfolders despite using RecursiveAll option

web-services,vba,sharepoint,soap,caml
This is my function why I don't get the subfolders although I'm using recursive ALL option. I don't even obtain 1-level subfolders I only get the main files and folders, I'm sure I've something wrong in soap request but I can't figure it out. I've used the same request as...

How to correct generate signature using rsa private key with java?

java,soap,cryptography,rsa,jks
I'm new in crypto with Java and I have a simple question. I have JKS keystore with SHA1withRSA trusted private key and certificate and I need to generate PKCS#7 signature for SOAP message. I tried found some info about this and at the moment, I have this: KeyStore ks =...

How can we set request content type in Spring 3.0.2?

java,json,spring,spring-mvc,soap
My code is like: @Controller @RequestMapping( value = "/walley/login", method = RequestMethod.POST) public void login(HttpServletRequest request, HttpServletResponse response, @RequestBody RequestDTO requestDTO) throws IOException, ServiceException { String userName = requestDTO.getUserName(); String password = requestDTO.getPassword(); System.out.println("userName " + userName +" :: password "+ password);} RequestDTO.java file public class RequestDTO { public String...

Node.js: Create one global SOAP client or one client per request

node.js,web-services,soap,node-soap
I am using NodeJS and need to connect to a SOAP service. From research, it sounds like https://github.com/vpulim/node-soap is the best package for this, though the question I have is independent of the package. When creating a SOAP client. Should I be creating one client per APPLICATION or one client...

PHP SoapClient: SoapFault exception Could not connect to host

php,soap,soap-client,soapserver
using this code I make soap requests $client = new SoapClient('http://example.com/soap/wsdl'); try { $result = $client->myMethod(); } catch (Exception $e) { echo $e->getMessage(); } Sometimes (once out of ten), an exception is raised: SoapFault exception: [HTTP] Could not connect to host My attempts 1) I looked for solutions, and I...

Preferred choice for SOA implementation - SOAP or REST?

web-services,rest,soap,soa
Given current maturity of REST frameworks/APIs, which should be the better option for a new SOA project - soap or rest? PS - Excuse me for a being a noob, let me know if asking a wrong question!...

Convert C# soap client to PHP (issues in casting complex types)

c#,php,web-services,soap
Good day all. I'm creating a PHP SOAP client using a C# as a reference and example (this is the only documentation I recieved). actually I've got some problems with this C# code (I don't know C# at all): SI = SessionID.SessionId.ToString(); My_Arx_Search.ARX_SearchSoapClient arx_Search = new My_Arx_Search.ARX_SearchSoapClient(); //Estrazione della Dm_Profile_Search...

Mule - Throw Exception with until-successful

java,exception,soap,exception-handling,mule
This is my mule flow: HTTP => Logger => SOAP (CXF) => Until Successful [JAVA] => LOGGER Spring : <spring:beans> <spring:bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <spring:property name="locations"> <spring:list> <spring:value>test.properties</spring:value> </spring:list> </spring:property> </spring:bean> <spring:bean id="testIntegration" class="x.x.x.IntegrationClass" init-method="init">...

Retrieving an XML node value with TSQL?

sql-server,xml,tsql,soap
What am I not getting here? I can't get any return except NULL... DECLARE @xml xml SELECT @xml = '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <webregdataResponse> <result>0</result> <regData /> <errorFlag>99</errorFlag> <errorResult>Not Processed</errorResult> </webregdataResponse> </SOAP-ENV:Body>...

How to log soap requests response time with cxf on the client side?

java,web-services,soap,cxf
I'm using cxf to build a client on a soap webservice. Is there any cxf interceptor feature that could automatically measures and logs the webservice response time? I'm already using org.apache.cxf.interceptor.LoggingInInterceptor and LoggingOutInterceptor for logging the xml content itself....

Is there a command-line alternative to SOAP-UI for linux, for sending SOAP to HTTPS Service?

java,linux,web-services,soap,https
I wish to run SOAP-UI on a linux (solaris) machine with very limited functionality, where we don't even have a UI, and so I cannot install any software on it or open X11 forwarding. I can however run java applications, and could settle for any alternative to SOAP-UI. The objective...

SharePoint list new item through SoapEnvelope

javascript,jquery,ajax,sharepoint,soap
I am trying to make a new item inside a SharePoint list using JavaScript, jQuery and Ajax, this is my function: function CreateItem(Title) { var soapEnv = "<soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " + "xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">" + "<soapenv:Body>" + "<UpdateListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\">" + "<listName>listName</listName>" + "<updates>" + "<Batch...

FATAL EXCEPTION: AsyncTask and I'm not able to find what is the mistake

java,android,soap
I'm a beginner in developing android app, and I didn't find any mistake in my code but after executing the thread in onPostExecute() method public class closingBalance extends ActionBarActivity { private String fp_shop; private String cb; private int i = 0; Bundle bundle; ProgressDialog progressDialog; AlertDialog.Builder builder; EditText Rice_cb, Tumeric_cb,...

URLConnection does not set Content-Type for SOAP 1.2

java,web-services,soap
We have a webservice client, which should be able to work with SOAP 1.1 and SOAP 1.2. Currently we have the problem that the set content-type (code) is not the actual content-type (monitoring over SoapUI shows a different content-type for our request). We use java.net.URLConnection private final String contentTypeSOAP12 =...

How to do authentication using SOAP Header and PHP?

php,web-services,soap,wsdl
I look for an example of Web service's creation using an authentification SOAP header and PHP. I found an acticle on http: // stackoverflow.com with a code given by EricP in an answer to a question below: How to do authentication using SOAP? I don't know why it does not...

WS-Security Policy node not being generated in Apache CXF with Spring and custom context file

spring,soap,wsdl,cxf,ws-security
I have an SOAP web service generated with Apache CXF and using Spring. The interface was generated from a WSDL without WS-Security Policy. Now I need to include this WS-Security node in the generated WSDL: <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wsu:Id="wss_saml_or_username_token_service_policy">...

convert a SOAP C# client to PHP

c#,php,soap
Good day all. I'm converting a C# Soap client in PHP, with many troubles. I don't know C# but the syntax is quite legible, so I don't have many problems, until now. these are the lines I can't understand: My_Arx_Search.Field_String campo = ((My_Arx_Search.Field_String)aggSearch); campo.Operatore = My_Arx_Search.Dm_Base_Search_Operatore_String.Uguale; campo.Valore = "DFLMHLD15GGFD..."; What...

how to traverse soap response with curl request in php?

php,xml,web-services,curl,soap
How to get the value inside the tag of the soap response in php.The response is like this. string '<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetListResponse xmlns="http://test.org/"> <GetListResult>[{"Id":30,"Name":"OFFICE"},{"Id":31,"Name":"KUMAR KHATRI"},{"Id":32,"Name":"ASHA MAIYA SHRESTHA"},{"Id":33,"Name":"RABINDRA...

Is there an option to wget to force it to write the response even when it's erroneous?

bash,soap,wget
I have written a Bash SOAP library that uses wget as the interface to HTTP servers. It's intentional to avoid curl, since that is not available or not installed by default on systems where this library is used. The basis of the library is the query the WSDL, determine the...

Parsing Soap response - XML/XPATH (In soapUI)

xml,soap,xpath,soapui
If I've a Soap response like below <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns0:SomeResponse xmlns:ns0="urn:ABC:EFG:HIJ:Some_WS"> <ns0:ID>6384</ns0: ID> <ns0:Some_ID>10530</ns0: Some_ID > <ns0:Status>SomeStatus</ns0:Status> <ns0:Number>INT1037;INT1027;</ns0: Number> </ns0:SomeResponse >...

Display SOAP response from PHP form

php,soap,mysqli
I have a setup where a PHP form is posting a variable to be included in a SOAP request. The action goes to a PHP handler file which puts this variable into a database for yet another PHP functions file that sends the request and accepts the response XML. However,...

Handling empty lists in PHP SOAP

php,soap
Initially if there was one item in the list it would return an object rather than an array of one object. I fixed that using: https://eirikhoem.wordpress.com/2008/03/13/array-problems-with-soap-and-php-updated/ $x = new SoapClient($wsdl, array('features' => SOAP_SINGLE_ELEMENT_ARRAYS)); But I'm having problems when there is no items in the list. The best I've come up...

Can' get PHP SOAP enabled

php,soap,php-extension
I think I have installed SOAP using: yum install php-soap However, when I use the following command: php -i | grep -i soap I get this error message: PHP Warning: PHP Start-up: Unable to load dynamic library '/usr/local/lib/php/extensions/php_soap.dll' - /usr/local/lib/php/extensions/php_soap.dll: cannot open shared object file: No such file or directory...

TypeNotFound error in Suds Soap library

python,web-services,soap,wsdl,suds
I'm trying to call a SOAP service from the Dutch land register (WSDL here) with the suds library. I first introspect the SOAPservice as follows: >>> from suds.client import Client >>> client = Client(url='http://www1.kadaster.nl/1/schemas/kik-inzage/20141101/verzoekTotInformatie-2.1.wsdl') >>> print client Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699-20100913 Service ( VerzoekTotInformatieService )...

SoapClient in PHP 5.6 when using HTTPS emits warning with “key values mismatch”

php,soap,openssl,php-5.6
After upgrading to Debian 8 with PHP 5.6.9 (change from PHP 5.4) I'm getting this warning when calling SOAP web service with HTTPS endpoint address: Warning: SoapClient::__doRequest(): SSL operation failed with code 1. OpenSSL Error messages: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch followed by SoapFault: Fatal error: Uncaught SoapFault exception: [HTTP]...

How to use XPath on TXMLDocument which has namespace prefixes?

xml,delphi,soap,xpath
I have an XML packet received from a third-party web server: <?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:Body> <SomeResponse xmlns="http://someurl"> <SomeResult> ..... </SomeResult> </SomeResponse> </soap:Body> </soap:Envelope> To be cross-platform capable, this XML is loaded into Delphi's IXMLDocument:...

WSO2 BPS / SOAP - How does one get the result of a human task using the HumanTaskClientAPI?

java,soap,wso2
I've tried using getOuputResponse.getTaskData() but it returns an XML and the GetOutcome method apparently isn't supported yet. Is there another method that I'm not seeing or is this the only way? My code so far: GetOutput getOutput = new GetOutput(); getOutput.setIdentifier(resultRow[0].getId()); GetOutputResponse output = null; try { output = humanTaskClient.getOutput(getOutput);...

Passing values from jquery.ajax to php

php,jquery,ajax,soap
I have created a script that sends post data to php via the $.ajax method $uname = $_POST['uname']; $pass = $_POST['pass']; $compid = $_POST['compid']; $queryData = array( "Username"=>$uname, "Password"=>$pass, "CompanyID"=>$compid ); $result = $client->GetUserStores($queryData); The post data is used to fill an array used to make a validation through a...

Mobilefirst 7.0 soapadapter fails calling no argument operatio

soap,mobilefirst,mobilefirst-adapters
I created a soapadapter via the wizard using the webservice wsdl file. Most operation run succesfully bu one. This particular operatio returns an array of objects and consume no arguments. The sample procedure parameters is: { "recuperaVariabili": { } } Calling the procedure, never invokes onSuccess nor onFailure functions. Looking...

Soap Unable to connect from one server yet the same file connects from another

php,web-services,soap,wsdl,wsd
I have this soap request I am working on. I am using wsdl to send the requests and all is good when I do it from my local machine(the development environment). The problem is when I move the same file to the live server (Centos) then I get Could not...

How get payload inside webservice class mule

soap,mule,esb
I need payload value inside ShipmentProcessImpl class or MuleEventContext object. <flow name="soaptest_rFlow1" doc:name="soaptest_rFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="${host}" port="${port}" doc:name="HTTP" path="${deliveryUpdatePath}" /> <byte-array-to-string-transformer doc:name="Byte Array to String" /> <logger category="ProTSP Listener Logger" level="INFO" message="#[payload]" doc:name="Logger" /> <cxf:jaxws-service serviceClass="org.tempuri.ShipmentProcess"...

Get just content of soap response in Groovy

xml,soap,groovy
I have following soap response: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetHTMLResponse xmlns="http://www.webserviceX.NET"> <GetHTMLResult> TEST </GetHTMLResult> </GetHTMLResponse> </soap:Body> </soap:Envelope> Now I want a method which deliverys me this xml: <root> <GetHTMLResponse...

Can a SOAP fault happen client side?

web-services,wcf,soap
I have application that interfaces with a third party web service. In my error log I occasionaly see a soap fault: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>68A4371:117259187 - Error: Invalid interval in timestamp</faultstring> </soap:Fault> </soap:Body> </soap:Envelope> I've contacted the third party and they claim my service request...

QBWC1012: Authentication failed due to following error message. Client found response content type of 'text/xml', but expected 'text/xml'

php,soap,web,quickbooks,connector
20150604.02:34:43 UTC : QBWebConnector.WebServiceManager.DoUpdateSelected() : updateWS() for application = 'APPNAME' has STARTED 20150604.02:34:43 UTC : QBWebConnector.RegistryManager.getUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock = FALSE 20150604.02:34:43 UTC : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to True 20150604.02:34:43 UTC : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session...

Magento SOAP Access denied

php,soap,magento-1.9,access-denied
When I tried to call my local Magento 1.9 using webservice using the following code, it seems that it is giving me access denied error. I had no problem using SOAPUI (or other soap client) to call the same address. PHP code <?php $client = new SoapClient('http://localhost/magento/index.php/api/soap/?wsdl', array('trace' => 1));...

PHP SOAPCall null result

php,web-services,soap,wsdl,axis
I have deployed a SOAP WS with AXIS. I use SOAPClient library and PHP 5.5.9 on Ubuntu 14.04 to call the exposed operations, but when I make the "__SoapCall" it returns nothing. I have also tried with "NuSOAP" library, but I obtain the same result. But when I call "__getLastResponse",...

invoke a SOAP service. Error 404 filter is unavailable

java,web-services,soap
I am calling a soap service from a java function, when i call the service, it gives an error : HTTP/1.1 404 Not Found [Content-Type: text/html;charset=UTF-8, $WSEP: , Content-Language: en-US, Content-Length: 97, Connection: Close, Date: Tue, 12 May 2015 05:21:40 GMT, Server: WebSphere Application Server/7.0] here is my code :...

PHP to WCF with SoapClient - Request Entity Too Large

c#,php,web-services,soap,soap-client
I have a soap svc web service and these are my WS methods: StoreService.svc.cs namespace StoreServices { [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class StoreService : IStoreService { public bool SaveCarData(Car car) { //Some code } } } IStoreService.cs namespace StoreServices { [ServiceContract] public interface IStoreService { [OperationContract] [WebInvoke(Method = "POST", UriTemplate...

Servicestack Authentication namespace using SOAP

.net,api,soap,servicestack
I'm getting this error when using SOAPUI to send an authenticate request to my ServiceStack API. Expecting element 'Authenticate' from namespace 'http://schemas.servicestack.net/types'.. Encountered 'Element' &nbsp;with name 'Authenticate', namespace 'http://correctnamespace.com/schemas/2015/05/MyAPI/' Here's my apphost setup: SetConfig(new HostConfig { HandlerFactoryPath = "api", DefaultContentType = "application/json", WsdlServiceNamespace = "http://correctnamespace.com/schemas/2015/05/MyAPI/", DebugMode = false, UseHttpsLinks =...

Camel Multicast; Direct and AMQ

java,web-services,soap,apache-camel,activemq
I have a Generic Camel Route which listens to a CXF:Bean(SOAP) Request with DataFormat: POJO. What I want this route to do is multicast the incoming exchange to AMQ JMS Queue, which will be consumed by another internal route at a later point and the other endpoint is a direct:Endpoint...

Mule - Retry connection with basic flow

java,http,soap,exception-handling,mule
I have a basic mule flow: HTTP => SOAP => JAVA CLASS <mule xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.6.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans...

Giving a prepared SOAP response by Java

java,xml,web-services,soap
I have a client, I want to make the server off by changing endpoint for exceptional situations and I want to give a prepared response for the request. As there are many security issues for preparing the SOAP messages, I don't want to make a complex fully completed (fake/mock) webservice...

Do JAX WS' DIIs like Dispatch get impacted while migrating from JAVA 7 to 8

java,web-services,soap,java-8
We are using in Java, javax.xml.ws.Dispatch<SOAPMessage> which is essentially a Dynamic invocation Interface for invoking a web service. The Javadoc states following description: The Dispatch interface provides support for the dynamic invocation of a service endpoint operations. The javax.xml.ws.Service class acts as a factory for the creation of Dispatch instances....

NuSOAP - Undefined index: namespace error

php,soap,wsdl,soap-client,nusoap
I have a working service utilising NuSOAP v0.9.5, writing data to a web service. As soon as I try to retrieve data (or even use the existing code) to do something else, I'm getting an Undefined index: namespace error (line 1499/1500) from NuSOAP. As someone not fluent in SOAP, wondering...

Spring Boot- Producing a SOAP web service that expects application/soap+xml content type

web-services,soap,spring-boot,spring-ws,soap1.2
I followed a tutorial Produce SOAP WS. I changed the DefaultWsdl11Definition under WebServiceConfig to generate soap12 binding for the service by adding: wsdl11Definition.setCreateSoap12Binding(true); In my generated wsdl file, I can see that porting for Soap12 is generated. However when I send a message with custom header: Content-Type=application/soap+xml, I get exception:...

SOAP-ERROR: Encoding object has no property

php,soap
I need send this SOAP request (get it from SoapUI NG, where it works): <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:data="http://example.com/rp/data"> <soapenv:Header> <data:AuthorizationHeader soapenv:mustUnderstand="1"> <data:login>?</data:login> <data:password>?</data:password> </data:AuthorizationHeader> </soapenv:Header> <soapenv:Body> <data:OperationHistoryRequest> <data:Barcode>?</data:Barcode>...

Modify WSDL in soap webservice with spyne of python

python,django,soap,wsdl,spyne
I am develeping with django and python , and I need publish 1 service with SOAP with 2 operations. For this task I chose the spyne library: http://spyne.io/#auxproc=Sync&s=aux Because apparently is easy to understand and start to develop. I did the first example and was fine, even I developed my...

Parsing Soap request in XML C#

c#,xml,soap
I am trying to get the values out of the Soap request I made. It comes in an XML format, for some reason I cant get just the values. How can I? How would I get just maximum and minimum temperature values? using System; using System.Collections.Generic; using System.Linq; using System.Text;...

IBM MobileFirst/Worklight JSON

json,soap,mobilefirst,mobilefirst-adapters
In IBM MobileFirst 7.0, I created a SOAP adapter by pointing MobileFirst Platform Studio to a WSDL running on a local web server. When calling the SOAP adapter, which converts JSON to XML then when the response is received from XML back into JSON, it is setting number (integer, decimal)...

SharePoint newListItem Soap with img attachment

javascript,ajax,cordova,sharepoint,soap
I have a function in my Apache Cordova application to create a new list item inside a sharepoint list, and I was wondering if it was possible to add an image to this new item, this would come as an 'attachment' in the sharepoint list. My function to add a...

Difference between WCF REST VS WEB API

c#,wcf,rest,soap,asp.net-web-api
I think WCF uses SOAP protocol. WebAPI uses rest architecture. But WCF supports both SOAP and REST. What is difference between WCF REST and WebAPI? Why is there a general preference for WebAPI? ...

What is the difference between SOAP and REST webservices? Can SOAP be RESTful?

c#,web-services,wcf,rest,soap
From MSDN magazine https://msdn.microsoft.com/en-us/magazine/dd315413.aspx and https://msdn.microsoft.com/en-us/magazine/dd942839.aspx I understand that When RESTful endpoints are asked for data using HTTP, the HTTP verb used is GET. Using REST means that you can take advantage of HTTP caching and other features, like Conditional GET, that aid in scaling services. Many of these techniques...

Change xml file node value for SOAP request in vb.net

xml,vb.net,soap
i need to send XML file(SOAP+xml) to webservice, but i need to change 2 node value in the XML file. Here is the XML file : <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns2826:get_order_data xmlns:ns2826="http://tempuri.org"> <periode>...

What's the URL to test a SOAP WCF web service?

wcf,soap
I'm very new to WCF SOAP. Having successfully built a basic REST( web api) web service and tested it through a url (eg a GET on api/users/1 to return a user with id = 1 from database), I'm now attempting something similar with a WCF SOAP web service. I don't...

How do I suppress the method name from my xml in a WCF Web Service?

c#,xml,web-services,wcf,soap
I do not want my web method name as part of the hierarchy in my XML. I strictly want the object that was passed in to be encapsulated in a SOAP envelope, then have an empty Header, and in the Body I want the first sub-element to be of the...

IOS Swift Soap Message with Ampersand in value

ios,web-services,swift,soap,encoding
I have the following code to call web service from my IOS Swift application. (The code is execute when a button on the page is pressed.) The challenge is with the value for Hours. When the ampersand is in the value, I get an http error code 400. When I...

ASMX web-service work on both HTTP and HTTPs

c#,asp.net,web-services,soap,asmx
I have a soap web-service in asp.net. Currently the URL is http://www.mylink.org/webservices/abcws.asmx. I have a request from a client to make the webservice work in both HTTP and HTTPS. Does anybody know how to achieve this in asp.net.

Changing HTTP Status Code when throwing SoapFault

php,soap,soapserver
Whenever I throw a SoapFault in my PHP applications, the HTTP Status Code is set to HTTP/1.1 500 Internal Service Error. This happens even if I set the status code to something different using http_response_code() or header() before throwing the SoapFault. Is there no way to change the status code...

error while calling soap ws with basic authentification and ssl

java,ssl,soap,cxf,basic-authentication
I am facing problem when calling two remote methods from different wsdl which are protected by basic authentication and ssl the first call is OK but the second call of the second method which is located on an other wsdl don't work when i call the second method first it...

REST is built for the Web then what about SOAP? [closed]

java,rest,soap
I read an article where they are telling "REST is built for the Web". then what about SOAP? We also can not access SOAP web services without web.So I am confused.plz clarify what it means "REST is built for the Web", why they did not mentioned it for SOAP? Below...

Parsing XML with same parent and child node name

c#,xml,web-services,soap
My partner provided me a SOAP web service that returns a XML in this format: <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:RestControllerwsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body> <ns1:getInfoResponse> <return...

Call to SOAP WebService using client certificate in objective c

objective-c,web-services,ssl,soap,client-certificates
I'm a very Junior objective C developer and I'm trying to call to a SOAP web service which needs a client side certificate. I've made the SOAP call, but server returns I need the certificate. I've got a .p12 file (the certificate) and I've saved it on my keychain so...

Passing a variable from a list as part of calling a function

python,python-2.7,soap,salesforce
I am using SimpleSalesforce and would like to use the describe() function. An example of that is sf.Contact.describe() to describe the Contact record. I would like to loop through several records in a list, but I'm not sure how to pass in a variable in place of Contact. Objects =...

Blackboard SOAP web service php

php,web-services,soap,blackboard
I am using this library to do the development about blackboard web service. I have successfully registered the proxy tool and make it available in the administrator panel. The connection is built and function is able to be used. But When I call the saveColumns in Gradebook in Blackboard web...

Connecting to https with soapClient

php,soap,debian
I've spent the last couple of days trying to figure out why my soap client can't connect, any help is appreciated. Very straightforward issue, my soap client; $soapClient = new SoapClient("AXLAPI.wsdl", array('trace'=>true, 'exceptions'=>true,'location'=>"https://ip_address:8443/axl", 'login' => "username",'password'=> "password")); Yields this very common error; Fatal error: Uncaught SoapFault exception: [HTTP] Could not...

Not able to hit 2nd services with generated Token

c#,web-services,rest,soap,drupal-services
I have been provided with two services in which ist service is used for login purpose and it will return an xml node token which i to be added as the header in all other services call, In the attached sample code there are two functions in function CreateObject() i...

Thread Safety in Jax-WS Request-Response Payload Logging

web-services,soap,thread-safety,jax-ws,soaphandler
I am working on a SoapHandler implementation. Basically my aim is to get both request and response payloads and insert them to the database. Although I can get the request and response payloads, I couldn't make sure if my code is working thread-safe. In other words, I am not sure...

Retrieving sharepoint lists using SOAP

sharepoint,soap,sharepoint-list
I am trying to pull specific data points from a sharepoint list using VBA and SOAP. However, I am very new to both VBA and sharepoint, so there a few things that do not make sense to me. Currently, I'm trying to use this site as a reference: http://depressedpress.com/2014/04/05/accessing-sharepoint-lists-with-visual-basic-for-applications/ I...

Unmarshalling error when connecting to Java-based webservice using VB.NET 4.5.1 client

java,vb.net,web-services,wcf,soap
I am trying to build a web application which will read data to/from a database and query and post data to a remote webservice. The web application is written in vb.net on .NET framework 4.5.1. I'm using VS2013 for the IDE. I added the service "https://service.provider.com/..../ws/soap?wsdl=SOAP.wsdl" as a Service Reference...

Getting response from SOAP in php

php,web-services,soap,wsdl
I am trying to response from web service using SOAP in php.Actually its paid API fore booking flights.I have two cases for my problem,in both cases i didnt get the response properly. Here is the code try{ $client = new SoapClient($url); print_r($client->__getFunctions()); $values = $client->getAvailability($input_xml); print_r($values); }catch(exception $e){ echo 'error<br>';...

Mule TransformerException: An invalid return type “class [B” was specified for transformer “JAXBMarshallerTransformer”

java,soap,mule
I'm using Mule CXF Component to call a web service from localhost. the called web service return an object of type SoapResult but Mule on transforming it, detect the return type as "[B". finally the JAXBMarshallerTransformer chosen and transformation fails with this stack: org.mule.api.transformer.TransformerException: An invalid return type "class [B"...

Axis2 keeps generating files in temp folder when running on tomcat

java,tomcat,soap,axis2,axis
When deploying a web application on tomcat which uses Axis2 for SOAP communication, then in the tomcat temp directory 'apache-tomcat-6.0.29\temp' we keep getting a folder such as 'axis2-tmp-21936.tmp' holding jars for the deployed Axis2 modules such as Rampart (for e.g. axis21098rampart-mar-1.5.1.jar). The files keep growing until they fill up your...

TypeError in SOAP Request (using pysimplesoap)

python,xml,soap,wsdl,pysimplesoap
I'm trying to get relevant information from a SOAP service from the Dutch government land register (WSDL here) with PySimpleSoap. So far I managed to connect and request information about a specific property with the following code: from pysimplesoap.client import SoapClient client = SoapClient(wsdl='http://www1.kadaster.nl/1/schemas/kik-inzage/20141101/verzoekTotInformatie-2.1.wsdl', username='xxx', password='xxx', trace=True) response = client.VerzoekTotInformatie(...

Redirection before invoking web method of asmx web service

c#,.net,soap,asmx
I have a asmx web service hosted at US as well as Canada. But there are few Canadian clients which points to US web service and I am not able to make any changes at client side to make them point to Canadian web service. Is there any way I...

Add Id attribute to soap body element in IClientMessageInspector implementation

c#,.net,wcf,soap
I've a bit of code that inserts an X509 certificate into a soap header that seems to work OK. private Message SignMessage(Message request) { var doc = new XmlDocument(); var sb = new StringBuilder(); var a = request.CreateBufferedCopy(Int32.MaxValue); XmlWriter writer = XmlWriter.Create(sb); a.CreateMessage().WriteMessage(writer); writer.Close(); doc.LoadXml(sb.ToString()); //This is needed or added...

Add HTTP Headers to JAX-WS service response

java,servlets,soap,jax-ws
I'm developing a Java Web Service. At this moment I can get Http header requests. But I want to add more header requests. I'm currently doing this in a servlet filter. @WebFilter(urlPatterns = {"/*"}) public class AddHeader implements Filter { @Resource private WebServiceContext context; public AddHeader() { } @Override public...