soap

How to accept a collection of a base type in WCF

只愿长相守 提交于 2019-12-24 00:43:35
问题 The Setup I have a WCF service that exposes a base type (e.g. Animal) as well as a few derived types (e.g. Lion, Tiger, and Bear). Another type (e.g. Zoo) includes a property that is a collection of the base type. The base type is concrete, not abstract, so it is perfectly acceptable for the collection to contain instances of the base type and/or the derived types (in any combination). For example: [DataContract, KnownType(typeof(Lion)), KnownType(typeof(Tiger)), KnownType(typeof(Bear))]

Attachment support is disabled when using axistools-maven-plugin

蓝咒 提交于 2019-12-23 23:57:18
问题 I have used the maven plugin axistools-maven-plugin in version 1.4 for many projects to build webservice clients from wsdl. And I always get the error message that is coming from wsdl2java: 15.07.2011 08:47:02 org.apache.axis.utils.JavaUtils isAttachmentSupported WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. Unless the classes are generated correctly, I just wanted to ask if anyone has the same

Combine loop values from different SOAP methods

狂风中的少年 提交于 2019-12-23 23:01:20
问题 I'm getting data from different SOAP methods. For an example: $wsdl = 'the_url_of_wsdl'; $client = new SoapClient($wsdl); $parameters = array(all_the_parameters_inside); $values = $client->the_method($parameters); $xml = $values->the_methodResult->any; $sxml = simplexml_load_string($xml); $wsdl2 = 'the_url2_of_wsdl'; $client2 = new SoapClient($wsdl2); $parameters2 = array(all_the_parameters_inside); $values2 = $client->the_method2($parameters2); $xml2 = $values2->the_method2Result->any;

How to remove xmlns=“” from xml request

对着背影说爱祢 提交于 2019-12-23 22:50:29
问题 i'm trying to remove blank xmlns from the xml request generated from stub that i've auto-generated from a wsdl using the axis wizard. Axis wizard generates the request class in which there is: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(Request.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://myNamespace")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc

SOAP xml in return - Android

陌路散爱 提交于 2019-12-23 22:41:42
问题 I'm using k2SOAP for Android when dealing with webservices. SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("ProjectID", 1); SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); soapEnvelope.dotNet = true; soapEnvelope.setOutputSoapObject(request); HttpTransportSE httpTransport = new HttpTransportSE(URL); try { httpTransport.call(SOAP_ACTION, soapEnvelope); SoapObject result = (SoapObject) soapEnvelope.getResponse();

Calling a SOAP service using REST service

别来无恙 提交于 2019-12-23 20:25:28
问题 I want to call a SOAP service using REST service. Can anybody please share some example programme or snippets where we can invoke a soap service using JAX-RS(Jersey) written REST service. I am using jdk 1.7 & eclipse juno. What will we be using to refer to the soap service? Please note that I am entirely new to webservice, so examples will be a huge help! 回答1: You cannot use a REST service framework to access a SOAP Web-Service. This are two completely different technologies. It's like you're

SoapClient to nusoap, Server did not recognize the value of HTTP Header SOAPAction

戏子无情 提交于 2019-12-23 20:13:34
问题 We are running PHP 5.3.18, for some strange reasons I can't install php-soap so that I can't use the SoapClient class... I'm using now the last nusoap (should be compatible with php 5.3.18) and translating the code from SoapClient to nusoap_client. This code use SoapClient and works perfectly $s_WSPROTOCOL = 'https'; $s_WSHOSTNAME = 'xxxxxxxx.yyyyyy.tdl'; $s_WSPORT = ''; $s_WSPATHNAME = 'webservices/service.asp?WSDL'; $s_WSTIPOOP = 'MyFunction'; $parameters['Username'] = '999'; $parameters[

Spring web service dynamic wsdl not generating message for a schema element

人走茶凉 提交于 2019-12-23 20:11:56
问题 I have the following schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:m="http://ws.mypackage.com" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" elementFormDefault="qualified" targetNamespace="http://ws.mypackage.com" attributeFormDefault="unqualified"> <xs:element name="downloadMessageRequestSaaj"> <xs:complexType/> </xs:element> <xs:element name="downloadMessageRequest"> <xs:complexType/> </xs:element> <xs:element name=

Stumped with trying to consume a SOAP API using ColdFusion

安稳与你 提交于 2019-12-23 20:06:53
问题 I am working with an API that has two different URLs for specific types of functions. The first, is a transactional API that supports either JSON or SOAP requests. I have called all of the functions I need within this API using exclusively JSON calls and everything appears to be working perfectly fine. The second is a reporting API used to locate and/or download reports. This API works exclusively with SOAP. I have not been able to get any function in this API working properly. I have

How to consume a SOAP web service in a Mule Flow?

女生的网名这么多〃 提交于 2019-12-23 19:34:04
问题 I am beginning with Mule flows and have seen the I have seen this page http://www.mulesoft.org/documentation/display/MULE3CONCEPTS/Using+Mule+with+Web+Services and http://www.mulesoft.org/documentation/display/MULEWS/Consuming+SOAP+Web+Services+in+Mule this oe too. They were not of much help. Currently, I have a simple mule flow as shown below. Flow definition <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org