Menu
  • HOME
  • TAGS

Thread Safety in Jax-WS Request-Response Payload Logging

web-services,soap,thread-safety,jax-ws,soaphandler

Rule of thumb: a FooContext object is contextual by definition, relating to a specific execution context. EJBContext relating to a single EJB; FacesContext relating to a single Faces request context; SOAPMessageContext relating to a single SOAPMessage. From the JSR-109 documentation: The container must share the same MessageContext instance across all...

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

python,python-2.7,soap,salesforce

object is a string in this example. You can retrieve the attribute using getattr Objects = ["Contact", "Opportunity"] for object in Objects: # object is a string. print getattr(sf, object).describe() ...

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

xml,web-services,soap,web,soapui

At the bottom of your SoapUI window, you should find an "http log". This will allow you to view EXACTLY what SoapUI is sending the your Web Service. Typically you will not include your username or password within the XML itself, but in the http headers that come before your...

Camel Multicast; Direct and AMQ

java,web-services,soap,apache-camel,activemq

Ok so I took the lead from Cyaegha (Thank you) and I generated POJO's using wsdl2java using the answer below. Solution for wsdl2java serialization Using these POJO's which implement Serializable interface now works! Happy times! =)...

IBM MobileFirst/Worklight JSON

json,soap,mobilefirst,mobilefirst-adapters

Yes all the responses from Worklight adapter will be converted to JSON before reaching the Client device (Mobile,Web browser,etc) To understand the structure and working of adapters more clearly just read the link below Overview of worklight Adapters Next why Json always than XML ? JSON has several advantages...

Soap Address Location : ServiceStack SOAP 1.2

soap,wsdl,servicestack

You can modify the dynamically generated WSDL in ServiceStack by overriding AppHost.GenerateWsdl(), e.g: public override string GenerateWsdl(WsdlTemplateBase wsdlTemplate) { var wsdl = base.GenerateWsdl(wsdlTemplate); return wsdl.Replace( "<soap:address location=\"http:", "<soap:address location=\"https:"); } Add ServiceStack Reference Also as an alternative to SOAP you can use Add ServiceStack Reference which like SOAP allows generation...

C# NetworkCredential in PHP

c#,php,web-services,soap,networkcredentials

Did not manage to solve this problem with the old web service, so I ended up creating a new HttpHandler doing the same thing the old service did. Oh well...

Mule - Throw Exception with until-successful

java,exception,soap,exception-handling,mule

With the partial information you have provided, all I can say is that the source of the problem is located in: <spring-object bean="testIntegration" /> based on: Component that caused exception is: DefaultJavaComponent{Flow_test.component.1805940825} The main issue is that Mule can't locate a method to call on your custom component: there are...

invoke a SOAP service. Error 404 filter is unavailable

java,web-services,soap

i was using the WSDL end Point as the URL, that is why it wasn't calling the service. i checked it by entering the URL being generated by the studio then i called it. it was successful.

How to we use the SoapClient in Cakephp…?

php,soap,soap-client,cakephp-3.0

You're in a different namespace, and SoapClient is in the root namespace, so use \SoapClient: $client = new \SoapClient('web_url'); Alternatively, near the namespace declaration make a use statement: namespace App\Controller use SoapClient; Note: this isn't a CakePHP specific problem, it's a general namespace issue....

How to use XPath on TXMLDocument which has namespace prefixes?

xml,delphi,soap,xpath

Do not try to include namespaces in your XPath query. If all you want is the text of the SomeResult node, then you can use '//SomeResult' as query. For some reason the default xml implementation (msxml) barfs on the default namespace xmlns="http://someurl" on the SomeResponse parentnode. However, using OmniXML as...

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

web-services,vba,sharepoint,soap,caml

After alot of trials I've removed all extra unused tags and just checked that link on msdn and updated my caml by adding another tag queryoptions as follows which solves my problem: <?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> <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <listName>listname</listName>...

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

java,web-services,soap,cxf

CXF has some awesome out of the box features that can help monitor the response times. For this the JMX will need to be enabled. Refer: http://cxf.apache.org/docs/jmx-management.html The management api is part of the cxf-rt-management.jar.The features can be enabled against the target endpoint that needs to be monitored using: org.apache.cxf.management.interceptor.ResponseTimeFeature...

TypeNotFound error in Suds Soap library

python,web-services,soap,wsdl,suds

You need to add the prefix: In [9]: Aanvraag = client.factory.create('ns3:Aanvraag') In [10]: Aanvraag Out[10]: (Aanvraag){ berichtversie = (VersieAanvraagbericht){ value = None } klantReferentie = None productAanduiding = None Gebruiker = (Gebruiker){ identificatie = None } Ingang = <empty> } ...

PHP to WCF with SoapClient - Request Entity Too Large

c#,php,web-services,soap,soap-client

Solved! After many search and modification I finally solved the problem with a new web.config changing. How I have not client endpoints but server endpoints for all clients that communicates with my WS. I also needed to create a new service (svc and interface files in the same WCF project)...

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

java,soap,wso2

You are right, getOutcome() does not work. The output is the XML that you have defined for your task (ie, in the WSDL of the Human Task definition). So you can parse that: TaskOperationsImpl ops = new TaskOperationsImpl(); String output = (String) ops.getOutput(new URI(taskIdString), null); DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); dfactory.setNamespaceAware(true);...

Getting response from SOAP in php

php,web-services,soap,wsdl

I think there is too much informations in your XML. Do you have any documentation about how to format the XML to call the getAvailability() function ? The XML would be more like this in my opinion : <Request> <Origin>BOM</Origin> <Destination>BLR</Destination> <DepartDate>2015-05-15</DepartDate> <ReturnDate>2015-05-20</ReturnDate> <AdultPax>1</AdultPax> <ChildPax>1</ChildPax> <InfantPax>1</InfantPax> <Currency>INR</Currency>...

Get just content of soap response in Groovy

xml,soap,groovy

SO you could do this: import groovy.xml.* def xml = '''<?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>'''.stripMargin() def result = XmlUtil.serialize(new...

Parsing Soap response - XML/XPATH (In soapUI)

xml,soap,xpath,soapui

To retrieve just that one specific value, you can use a simple: def val1 = context.expand('${TestStepName#Response#//*:Some_ID}') For more complex parsing, you would have use to either XmlHolder or XmlParser or XmlSlurper. You can get an idea about these do in the official documentation. In your script, try using tstep.getPropertyValue("Response"), with...

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

java,soap,cryptography,rsa,jks

No, just generating a PKCS#1 signature is not enough. PKCS#7 specifies the Cryptographic Message Syntax (CMS). This is a container format, not just a signature. You need an implementation of CMS to create such a signature. A well known library that contains an implementation of CMS is Bouncy Castle: Generators/Processors...

PHP SOAPCall null result

php,web-services,soap,wsdl,axis

As I said above, "I've noticed that the name of return element ("idXMLReturn") is not the same that the name described in WSDL ("DescargarInfoTiempoReturn")" So, that's the problem: AXIS doesn't generate a Envelope that fits to the WSDL schema. It seems java:RPC provider doesn't worry about the return names of...

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

xml,vb.net,soap

Look into newer API XDocument to replace your XmlDocument approach, for example : Dim doc = XDocument.Load("C:\xmlRequest\requestOrderdata.xml") Dim ns2826 As XNamespace = "http://tempuri.org" 'find and update <tgl1>' Dim tgl1 = doc.Descendants(ns2826 + "get_order_data").Elements("periode").Elements("tgl1").First tgl1.Value = "10/06/2015 01:00:00" 'find and update <tgl2>' Dim tgl2 = doc.Descendants(ns2826 + "get_order_data").Elements("periode").Elements("tgl2").First tgl2.Value = "10/06/2015...

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

bash,soap,wget

This is the option: Parameter: --content-on-error, available from wget 1.14: http://superuser.com/a/648466...

Retrieving sharepoint lists using SOAP

sharepoint,soap,sharepoint-list

Chang - I wrote a simple SharePoint list SOAP query below in VBA. I was able to run it within Excel and pull data from SharePoint. Yet, almost nobody makes SOAP calls using VBA. Usually it's done using JavaScript, C#, or Java. Also, most people have moved away from SOAP...

Giving a prepared SOAP response by Java

java,xml,web-services,soap

Sure you can. Even within the same Java program. Use Java HTTP Server. few lines of code and you have functional http server.

SOAP request does not call correct method

java,web-services,soap,wsdl

If you haven't already, try SOAPMessage soapResponse = soapConnection.call(soapMessage, serverURI); instead of SOAPMessage soapResponse = soapConnection.call(soapMessage, url); because at the moment that call is going to the url of this WSDL. Make sure your XML is correct. To test I just added a method to return some XML. The example...

Servicestack Authentication namespace using SOAP

.net,api,soap,servicestack

You set your custom ns at the wsdl level, but the type itself is still using its own ns which I assume is the default one "http://schemas.servicestack.net/types". Not sure how you could change those built-in ns, not even sure if that's possible, but you might create your own auth provider...

How to do authentication using SOAP Header and PHP?

php,web-services,soap,wsdl

I found the solution. You should declare the function APIValidate in the binding in the file wsdl. <operation name='APIValidate'> <soap:operation soapAction='urn:PortfolioLookup#APIValidate'/> <input> <soap:body use='encoded' namespace='urn:PortfolioLookup' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </input> <output> <soap:body use='encoded' namespace='urn:PortfolioLookup' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </output> </operation> And...

Display SOAP response from PHP form

php,soap,mysqli

Can you post simplified code example. But you can also check the library documentation that handles the SOAP. Because it can be the build in SOAP lib or a custom one. For example get last soap 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

The error message says: The request failed with an empty response. As with troubleshooting any PHP script, the very first thing you should do is check your PHP error log. Did you check it? What did it say? Failing that -- post your code. Tough to help you if you...

How can we set request content type in Spring 3.0.2?

java,json,spring,spring-mvc,soap

We don't have "consumers and producers" with Spring version 3.0.2, So we need to add some additional entries in root pom.xml and dispatch-servlet.xml to use @RequestBody annotation. pom.xml <!-- jackson --> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>...

ASMX web-service work on both HTTP and HTTPs

c#,asp.net,web-services,soap,asmx

If you enable SSL on IIS or whatever web server your are running the service on, the service will listen on HTTPS as well as HTTP. However, your client will need to purchase a SSL certificate....

SharePoint newListItem Soap with img attachment

javascript,ajax,cordova,sharepoint,soap

SharePoint: AddAttachment SOAP Web Service Yes, you can use SharePoint SOAP web services to upload an image attachment to a list. However, there are some limitations. My demo below uses the AddAttachment action of the Lists web service. The required parameters are listed and can be modified for your own...

Connecting to https with soapClient

php,soap,debian

After days of working through this issue, I solved the problem. Some of the answers here were correct, there was a problem with the self-signed certificate (so the Soap client has to be made to not care), but another issue was the url itself. For whatever reason, putting in an...

Call to SOAP WebService using client certificate in objective c

objective-c,web-services,ssl,soap,client-certificates

I'll answer my own question because no one did and i've already found the solution. First of all, you need to save the certificate in the project's directory. Drag and drop the certificate from it's folder to the directory of the project in Xcode. Select "copy" and yes to the...

Can a SOAP fault happen client side?

web-services,wcf,soap

That sounds like a typical vendor - they are fobbing you off because the support person is an idiot and they have no idea how to solve the problem. It is not possible for your client to generate a soap fault all by itself. It must come from the server....

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

c#,xml,web-services,wcf,soap

You define a [MessageContract(IsWrapped=false)] for the input parameter and a separate one for the output. This will suppress the unwanted root element.

Passing values from jquery.ajax to php

php,jquery,ajax,soap

Change your GET method to post: $.ajax({ type: "POST", url: 'login.php', data: {uname:storage.readValue('uname'),pass:storage.readValue('pass'),compid:storage.readValue('companyID')}, success: function(data) { alert("success" + data); } }); ...

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

java,soap,mule

I Found the answer: You just need to add a transformer in response tag after calling web service, like: <response> <data-mapper:transform config-ref="Pojo_To_XML" doc:name="Pojo To XML"/> <logger message="#[payload]" level="INFO" doc:name="Logger"/> </response> and the new mule flow will be like this: ...

Parsing XML with same parent and child node name

c#,xml,web-services,soap

Try this using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.Xml.Linq; using System.IO; namespace ConsoleApplication33 { class Program { static void Main(string[] args) { string input = "<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\"...

how to traverse soap response with curl request in php?

php,xml,web-services,curl,soap

To get the value of GetListResult you may do like this: $source = <<<EOS <?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...

Magento SOAP Access denied

php,soap,magento-1.9,access-denied

previous i was using this address. either php or soapui works. http://localhost/magento/index.php/api/?wsdl now i am using this address in both my soapui and php. both are working now. http://localhost/magento/index.php/api/soap/?wsdl...

Add HTTP Headers to JAX-WS service response

java,servlets,soap,jax-ws

While I'm still not entirely clear on what you really want, I will describe how to add HTTP headers in a SOAP web service response. The cleanest place to do this is in a JAX-WS handler, not unlike what you already have in the form of SoapClass. To do this...

WSDL binding difference

xml,web-services,soap,wsdl

First see this diagram wsdl structure Bindings: Read So there are three ways (message and transport protocol) to access your web service i.e. ConverterSoap11Binding (Message Protocol: SOAP 1.1) ConverterSoap12Binding (Message Protocol: SOAP 1.2) ConverterHttpBinding (Message Protocol: HTTP POST) In all above binding transport protocol will be HTTP (as in your...

Consuming generic xml soap webservice in Java without wsimport

java,web-services,soap,wsdl

SOAP mandates a contract between the Client and Server. The contract is that Client will give a request XML is XYZ format and Server will give response in ABC format. Without this, SOAP does not work. This is what is defined in WSDL. So we have to use WSDL. Tools...

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

spring,soap,wsdl,cxf,ws-security

I figure it out. I had to make some modifications. First, move SecurityPolicy.xml to the resources directory, then modify the @Policy annotation to get the policy file from the classpath: @Policies({ @Policy(uri = "classpath:SecurityPolicy.xml", placement = Policy.Placement.BINDING) } ) ...

Changing HTTP Status Code when throwing SoapFault

php,soap,soapserver

I ended up writing my own code for outputting a soap fault. Then I can return whichever HTTP Status Code I want. I'm not sure what $faultname and $headerfault should be used for. Please leave a comment if you've got any idea. function soapFault($faultcode, $faultstring, $faultactor = null, $detail =...

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

php,soap,openssl,php-5.6

I've confirmed that this is PHP bug, and was introduced in PHP 5.6.7, in commit fd4641696cc67fedf494717b5e4d452019f04d6f. The workaround is to call openssl_error_string() after openssl_pkcs12_read(). Update A pull request has been submitted to address this issue....

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

For Converting Image To String : String imageAsString=Base64.encodeToString(byteArray, Base64.DEFAULT); For Converting String To Image: byte[] imageAsBytes = Base64.decode(imageAsString.getBytes(), Base64.DEFAULT); ImageView image = (ImageView)findViewById(R.id.ImageView); Bitmap imgBitmap=BitmapFactory.decodeByteArray(imageAsBytes,0,imageAsBytes.length); image.setImageBitmap(imgBitmap); ...

SOAP-ERROR: Encoding object has no property

php,soap

Change version to SOAP_1_1 and: array( new SoapVar($rp_user, XSD_STRING, null, null, "login", "data"), new SoapVar($rp_password, XSD_STRING, null, null, "password", "data") ) to array( 'login' => $rp_user, 'password' => $rp_password ) It's helps for me now....

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

c#,web-services,wcf,rest,soap

Introduction I'm posting this as an answer because comments just don't suffice. Here is what I want to summarize for you. First, we'll start with these two references: http://spf13.com/post/soap-vs-rest http://blog.smartbear.com/apis/understanding-soap-and-rest-basics/ Lastly, I want to start this post off by saying the following: SOAP and REST were both designed to solve...

SOAP Server was unable to process request

soap,fault

You are using the variable serverUrl as both the HTTP server URL and as the XML namespace name. They are close but not exactly the same. The namespace name is http://www.webserviceX.NET but your server URL is http://www.webserviceX.NET/ (notice the trailing slash). The string for an XML namespace must be an...

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

java,web-services,soap,https,proxy

I was able to get this to work by adding the following code before the server instantiation: System.setProperty("proxyHost", "myproxy.com"); System.setProperty("proxyPort", "8080"); Strangely this worked when I tested it by setting the VM options -DproxyHost and -DproxyPort so then searched for how to set it programmatically....

Catching requests made in xampp with fiddler

php,soap,xampp,fiddler

You can pass the proxy settings to the SoapClient class like this: $client = new SoapClient("request.wsdl", array('proxy_host' => "localhost", 'proxy_port' => 8888)); This assumes that fiddler is running on it's default port (8888). ...

Difference between WCF REST VS WEB API

c#,wcf,rest,soap,asp.net-web-api

WCF is protocol agnostic. It can run over http, tcpip, net pipes, etc. Web API is more suited for building rest apis. However, your question is too broad to be answered here. Read more about both technologies and come back with more specific questions....

URLConnection does not set Content-Type for SOAP 1.2

java,web-services,soap

Apparently the SOAP Framework you use is setting the Content-Type header to the SOAP 1.1 value after getting the URLConection. Hence the workaround with overriding URLStreamHandler does not work. There should be something in the SOAP frameworks' setup that specifies that the HTTP binding for SOAP 1.2 should be used....

Blackboard SOAP web service php

php,web-services,soap,blackboard

The argument for this call should consist of 2 attributes courseId and columns. In the columns attribute you will need to describe your column as it will be shown in grade center. I haven't tested an array of columns, but for a single column that you want to create your...

Mule - Retry connection with basic flow

java,http,soap,exception-handling,mule

You need to wrap your HTTP call with the until-successful scope. Example: <until-successful objectStore-ref="objectStore" maxRetries="5" secondsBetweenRetries="60" > <http:request config-ref="HTTP_Request_Configuration" path="submit" method="POST" /> </until-successful> Reference: https://developer.mulesoft.com/docs/display/current/Until+Successful+Scope...

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

java,linux,web-services,soap,https

Found a guide for this here, which does load tests. For normal functional tests, the official documentation is here. A sample command for functional tests goes like: sh /opt/app/home/SOAP-UI/SoapUI-5.0.0/bin/testrunner.sh -a -s"Test_Suite2" -r -f/opt/app/home/SOAP-UI/test-project/reports/ /opt/app/home/SOAP-UI/test-project/test-soapui-project.xml ...

Parsing Soap request in XML C#

c#,xml,soap

So once you've parsed your XML to an XElement, you use the LINQ to XML API to query it: var max = element.Descendants("temperature") .Where(e => (string)e.Element("name") == "Daily Maximum Temperature") .Select(e => (int)e.Element("value")) .Single(); var min = element.Descendants("temperature") .Where(e => (string)e.Element("name") == "Daily Minimum Temperature") .Select(e => (int)e.Element("value")) .Single(); If...

SOAP Client, Following an example

java,soap,saaj

Actually you can generate class with soap ui. And your program can easily call the service using the class created without construct your own request header and body But you need some library. Example java jdk comes with jax-ws lib tutorial: http://www.soapui.org/soap-and-wsdl/soap-code-generation.html...

Not able to hit 2nd services with generated Token

c#,web-services,rest,soap,drupal-services

Finally i figured out what was the issue i was creating new cookie container for both the request request.CookieContainer = new CookieContainer(); thus server was unable to authenticate Error was resolved by using this code CookieContainer cookieJar = new CookieContainer(); private void CreateObject() { try { string abc = "";...

IOS Swift Call Web Service using SOAP

ios,web-services,swift,soap

So i was being silly. The main this was that I missed setting the body of the message to the Soap request. my updated corrected code is below: // // ViewController.swift // TestWebServiceSoap // // Created by George M. Ceaser Jr on 6/2/15. // Copyright (c) 2015 George M. Ceaser...

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

node.js,web-services,soap,node-soap

The answer is to create one global soap client because node-soap isn't really async and can cause performance problems. Full answer provided here: https://github.com/vpulim/node-soap/issues/653...

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

web-services,soap,spring-boot,spring-ws,soap1.2

You need to configure Spring WS to use SOAP 1.2, as explained here: Producing SOAP webservices with spring-ws with Soap v1.2 instead of the default v1.1...

How get payload inside webservice class mule

soap,mule,esb

MuleContext is the active context of the running Mule application, it is unrelated to the current MuleEvent being processed by the flow. You need to get a hold of MuleEventContext via a static call to org.mule.RequestContext.getEventContext(). Yes, it is deprecated, but it still works and, to be frank, I don't...

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

c#,php,web-services,soap

Try something like this: $aggSearch = ''; foreach ($row as $resSearch->Aggiuntivi) { if ($row->ExternalId == 'codicefiscale') { $aggSearch = $row; break; } } if (empty($aggSearch)) { throw new \Exception(sprintf("Impossibile trovare il campo aggiuntivo con externalId= '%s' (Search)", 'codicefiscale' )); } ...

IOS Swift Soap Message with Ampersand in value

ios,web-services,swift,soap,encoding

So after some digging I finally found a suitable answer. XML / SOAP apparently support the ability to indicate that a value can contain special characters. You do this by enclosing the value in a CDATA element. For example, if I had a value for an XML node named Characters...

Preferred choice for SOA implementation - SOAP or REST?

web-services,rest,soap,soa

This is a bit up in the air. Now I am generally a bit biased towards REST, but REST and SOAP are two different animals. REST is more of an architecture style where as SOAP is a delineated protocol. Having said that, I have definitely written many SOAP interfaces. One...

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

java,web-services,soap,java-8

Your colleague is confused. Dynamic Invocation Interface is part of CORBA, not JNI. CORBA does not change with Java releases, and has not changed incompatibly in Java 8, or indeed ever. Neither has JNI since about 1997 actually, or in fact any other aspect of Java whatsoever, in any incompatible...

Apache Camel CXF

java,soap,apache-camel

You seem to be running your application on Java 6.0, and Apache Camel has dropped support of Java 6.0 since 2.14.0 (see "Important changes to consider when upgrading" section) Recompiling camel in Java 6.0 wont be feasible, I believe your options are either to upgrade to Java 7.0 or to...

Save SOAP UI mock requests to a file

web-services,soap,request,soapui

If you want to save in a file all request that your Mock service recieve, simply do the follow. In your mock service open the onRequest script tab as in the follow image (this script executes each time that your service receives a request): And add the follow groovy script...

PHP SoapClient: SoapFault exception Could not connect to host

php,soap,soap-client,soapserver

You need to improve your debugging efforts even further: ad 1) Does the WSDL change a lot? If not, turn on WSDL caching. You don't need to connect to the server to fetch the WSDL file. Is the output you mentioned really created in echo $e->getMessage();? You could add some...

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

java,android,soap

remove Thread.currentThread().start();. execute() takes care of starting the AsyncTask's thread. And you can't call start on the same instance twice. Also, not related to the exception, get rid of onPostExecute(soapObject); progressDialog.dismiss(); from doInBackground. onPostExecute is called by android when doInBackground returns, and doInBackground is not allowed to touch the UI....

ServiceStack Soap 1.2 HTTPS Client

c#,soap,https,servicestack,soap1.2

The problem with config file is that it isn't always straightforward and sometimes plain unpractical. On top of this ServiceStack promotes config-less coding model. I managed to achieve the required functionality with the following SSL-neutral client: public class SoapServiceClient : Soap12ServiceClient { public SoapServiceClient(string uri) : base(uri) { if (uri.StartsWithIgnoreCase("https://"))...

How To Generate Soap Request Without Envelop, Header & Body

java,soap

You cannot create a SOAP message without SOAP envelope and body as they are required parameters for any message to confirm to SOAP standard. In case of your requirement, you can create a normal XML message with all the tags and attributes necessary. But, you will have to take care...

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

java,rest,soap

It is just an expression to add enthusiasm. It isn't to mean that other existing web services architecture aren't build for the web. Since REST is a choice implementation for a lot of lightweight(not much extra xml markup, human readable, no toolkits required to build) requirement, it has gotten...

Axis2 keeps generating files in temp folder when running on tomcat

java,tomcat,soap,axis2,axis

This turned out to be caused by a class being constantly re-created which is initializing a new Context on each service call. In a nutshell: The Axis2 (temp files) issue does not reproduce on Axis2 1.5.4. Temp fles are generated only on the creation of a new Axis2 Context. Temp...

Can' get PHP SOAP enabled

php,soap,php-extension

If you check this answer you might find your clue how-to-enable-soap-on-centos You should point to some soap.so library. DLLs are usually on windows. Check your libraries path /usr/local/lib/php/extensions and see if any soap.so library is to be found there...

Create Enveloped Signature with CXF and WSS4J

java,soap,cxf,jax-ws,xml-signature

As far as I understood, WSS4J is not able to create an Enveloped Signature at all! Therefore I moved into another direction. I used Apache Santuario in order to create a Signature for my message. I used the Intercepor mechanism of CXF to create my own interceptor, an abstract class...

JAXB support for SOAP style arrayType

java,xml,web-services,soap,jaxb

One solution I found that works for getting the arrayType added is to, instead of deriving from the http://schemas.xmlsoap.org/soap/encoding/ schema, use a custom schema of the form: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.xmlsoap.org/soap/encoding/" elementFormDefault="qualified"> <xs:attribute name="arrayType" type="xs:QName" /> </xs:schema> ...which replaces the type of the arrayType attribute with an xs:QName (vs. the actual...

error while calling soap ws with basic authentification and ssl

java,ssl,soap,cxf,basic-authentication

Hi my problem was solved by setting credential using an other methods i was using the Authentication class from java.net this method is OK when you are using one endpoint with one credential but if you have multiple endpoint with multiple credential it don't work when you try to call...

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

web-services,unit-testing,soap,scope,cxf

Meanwhile I found the solution: ... import org.springframework.context.ConfigurableApplicationContext; @Autowired private ConfigurableApplicationContext myCtxt; @Before public void setUp() throws Throwable { myCtxt.getBeanFactory().registerScope( "session", new CustomScope4Test() ); myCtxt.getBeanFactory().registerScope( "request", new CustomScope4Test() ); } public class CustomScope4Test implements Scope { private final Map<String, Object> beanMap = new HashMap<String, Object>(); /** * @see...

SharePoint list new item through SoapEnvelope

javascript,jquery,ajax,sharepoint,soap

Have you checked whether this field exists and that you're using its internal name? And another thing, I was curious why you are using this method? Can't you use the client object model to do these actions?

Consuming and exposing webservices in one project (.NET)

.net,web-services,rest,soap

If you are trying to enrich the data from one source and combine that with information from another source, I think this is a decent solution. I think it is better to have one single point to talk to (your REST service), than to have two in your application and...

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

php,web-services,soap,wsdl,wsd

Based on the information within the question, it sounds like it could be a firewall issue. CentOS has a default firewall called Selinux and this might be preventing your connection to the other server. As the root user, you can check the Selinux enforcement by running the command: getenforce. Be...

convert a SOAP C# client to PHP

c#,php,soap

My_Arx_Search.Field_String campo = ((My_Arx_Search.Field_String)aggSearch); This creates a variable "campo" of type "My_Arx_Search.Field_String", and as value, converts the variable "aggSearch" to this type. campo.Operatore = My_Arx_Search.Dm_Base_Search_Operatore_String.Uguale; This assigns the value on the right to the "Operatore" field of the "campo" variable. I assume it's either a static field, or an enum....

Converting a ruby structure to a hash

ruby-on-rails,ruby,soap,web,savon

When trying to tackle problem like this in Ruby, it's useful to think of it in terms of transformations on your data. The Ruby Enumerable library is full of methods that help you manipulate regular data structures like Array and Hash. A Ruby solution to this problem looks like: def...

Add Id attribute to soap body element in IClientMessageInspector implementation

c#,.net,wcf,soap

Message.CreateMessage(XmlDictionaryReader, Int32, MessageVersion) solved the problem. Manipulate the xml and then create the new message from the xml.

Redirection before invoking web method of asmx web service

c#,.net,soap,asmx

I ended up doing what I didn't want to. I added proxy of own web service and called it by overwriting URL in each web method. I structured it by adding factory class. Thanks!...

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

java,vb.net,web-services,wcf,soap

I managed to eliminate the unmarshalling error by removing the namespaces, by editing the Reference.vb file and setting the WrapperNamespace and Namespace attributes, on the specific methods that I needed to call, to "" instead of "http://autogenerated.service.provider.com/". I then copied these into a partial class within the same namespace and...

Handling empty lists in PHP SOAP

php,soap

On my server with Windows and PHP 5.4.23 this: if (!empty((array)($occulist))) { gives the following error: Parse error: syntax error, unexpected '(array)' (array) (T_ARRAY_CAST) I fixed it using: if (get_object_vars($occulist)) { I think that is a more elegant alternative to the original......