FAQ Database Discussion Community


How do I change wcf port name and binding?

wcf,soap,wsdl
I am new to WCF. I'm trying to create a webservice from a client provided wsdl; I'm having trouble changing some wcf generated wsdl entries to match the provided wsdl. Here is my wsdl port name : <wsdl:service name="MyService"> <wsdl:port name="BasicHttpBinding_IService" binding="i0:BasicHttpBinding_IService"> <soap:address location="http://localhost:53336/MyServiceApi.svc"/> </wsdl:port> </wsdl:service> But I need change...

How to gather company data from VIES database via SOAP

php,soap,wsdl
I am using the VIES database to gather company data, based on European VAT number for my PHP application. The things that I need are: city street name house number postcode comapny name as separate data but the VIES database is giving me all of it as a one string....

Call Web Service and Return Error in Delphi 7

web-services,delphi,wsdl,delphi-7,delphi-xe5
I have import a WSDL in Delphi 7 and Call a function on it and an error message will be displayed: Project Project1.exe raised exception class ERemotableException with message 'Server was unable to process request. ---> Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.'. Process...

Bypassing JAX-WS SOAP overhead with JAX-RS/Jersey?

java,web-services,rest,soap,wsdl
The only web services I've ever integrated with or used have been RESTful. I'm now trying to integrate with a 3rd party SOAP service and am awe-struck at how seemingly convoluted SOAP appears to be. With REST, I use a JAX-RS client called Jersey that makes hitting RESTful endpoints a...

How do I search a datetime range in servicenow with getRecords using suds?

python,wsdl,suds,servicenow
I'm trying to do a Service Now query using suds, but I can't figure out how to specify a date range. Here is my code, it works for returning a record with an exact date: from suds.client import Client URL = 'https://blah.service-now.com/change_request.do?WSDL' USERNAME = "blah" PASSWORD = "blah" client =...

what are the advantages of using maven to generate a WS client from a WSDL?

web-services,maven,java-ee,wsdl
My WSDL contains 20 web services and I have to generate a WS client to invoke those web services. I started with wsdl2java to generate the sub then I developed the JSP files and servlets and it seems to work, I am using Axis2 with Tomcat 7 on Eclipse, but...

UCM search - integration with .net

.net,search,soap,wsdl,oracle-ucm
I have integrated my web app with oracle ucm through building service refrences for the exposed wsdls from ucm. I have been trying to call either QuickSearch and AdvancedSearch methods available on search service. The strange thing is that it does work, but the result is always the same regardless...

JAX-WS: Compile Schema separate from WSDL

java,xsd,jaxb,wsdl,jax-ws
If have a rather large schema that is used in several webservices, therefore I want to separate XSD compilation from WSDL compilation. In a simplified example, compiling in a single step works: $ wsimport -verbose service.wsdl parsing WSDL... Generating code... org/example/wsdl/mysvc/MySvcPortType.java org/example/wsdl/mysvc/MySvcService.java org/example/ns1/Element1.java org/example/ns1/ObjectFactory.java org/example/ns1/package-info.java ... Compiling the xsd and...

How to use javax.xml.ws without interface of soap webService

java,xml,web-services,soap,wsdl
I want to use a SOAP webservice with below URL: http://ws.armaghan.net:8080/ws-relay/MessageRelayService?wsdl According to post at How to do a call through a javax.xml.ws.Service I developed below code: URL url= new URL("http://ws.armaghan.net:8080/ws-relay/MessageRelayService?wsdl"); QName qname= new QName("http://webservice.smsrelay.armaghan.net/","MessageRelayService"); Service service = Service.create(url, qname); but at next step I do not now how to...

ERROR trying to generate classes from a WSDL using maven in spring mvc

spring,web-services,maven,spring-mvc,wsdl
hi i'm trying to follow this example https://spring.io/guides/gs/consuming-web-service/ and i get the following error in my pom.xml file this is my pom.xml file, the new part that i added is the part after the comment <-- WEB SERVICES --> this is the part where is the problem : <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId>...

Java Web service client can't connect to BPEL webservice when SoapUI can

java,web-services,wsdl,bpel
I am experiencing the following error and after extensive research on the matter with a few similar issues, none seem to help. My error: com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused: connect at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:121) at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:142) at...

PHP Soap Client Errors

php,web-services,soap,wsdl,soap-client
I'm trying to use a web service provided by a third party organisation. The URL for the service is this This is what I've tried: $sc = new SoapClient( $my_wsdl_url, array( 'soap_version' => SOAP_1_2 ) ); First problem: When checking for the provided functions, I get a UNKNOWN type: array(3)...

wsimport result has a different runtime endpoint

java,maven,wsdl,endpoint,wsimport
This is an odd one. I'm generating client code for a soap service using a wsimport plugin for maven like this... <plugin> <groupId>org.jvnet.jax-ws-commons</groupId> <artifactId>jaxws-maven-plugin</artifactId> <version>2.1</version> <executions> <execution> <goals> <goal>wsimport</goal> </goals> <configuration> <wsdlUrls> <wsdlUrl>${testWsdlLocationUrl}</wsdlUrl> </wsdlUrls>...

Instantiate web service

java,jaxb,wsdl
I have clasess BankImpl, BankService, BankClient, BankServer and Bank interface. I want to instantiate that bank service so I can use it with my other webservices but dont know the correct way of doing it. I have something like this now: Service service = Service.create(wsdlLocation, new QName("http://bla/bla/bank", "BankService")); Bank bank...

Array structure to specify Fedex One Rate using Fedex API RateService

php,wsdl,fedex,fedex-api
I've got a working request to get rates for my shipment using standard Fedex rates, but I want to use the special Fedex One Rate option so that I can get their flat rate quotes. Unfortunately, their code example doesn't show how to specify the Rate Request should use Fedex...

OTRS: error generating Java SEI with wsdl

java,soap,wsdl,otrs
Windows 7, Java 7 OTRS appliannce. I am trying to use wsimport to generate Java SEI with the wsdl file from https://raw.githubusercontent.com/OTRS/otrs/master/development/webservices/GenericTicketConnectorSOAP.wsdl I tried from command prompt (run as admin) and it gave me errors (see attachment) and did not generate anything. I also tried using Netbeans 8. I select...

How to change default properties in Maven Release Plugin for WSDL builds

eclipse,maven,wsdl,maven-release-plugin
I require the default properties of mvn release:prepare and mvn release:perform to be modified. The source code i'm trying to build has a WSDL files. The JAR file that is generated is in non maven format and this was achieved 2 step build process, using this I'm able to generate...

SOAP fault handling in java

java,eclipse,web-services,soap,wsdl
I am pretty new to SOAP and I am trying to understand SOAP fault handling (in Java). I have done reading about this topic but there are still some concepts that remain unclear to me. More specifically, how to handle various response codes using Eclipse WSDL editor. I have used...

How to add/remove ports from WSDL service tag?

c#,web-services,wcf,iis,wsdl
I have created a web service using C# WCF, which is hosted via IIS. Are there any settings to hide/remove the ports and make the service tag look like this? Are the settings on the IIS server, or in the web service web.config file? Basically, how can I choose to...

Using PHP SOAP client on .NET web service

php,web-services,soap,wsdl
I am trying to consume a .NET SOAP service but I'm currently just getting a 'false' response. Visiting the service endpoint tells me the following: The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values. <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...

Can a SOAP operation have multiple outputs?

web-services,soap,wsdl
Is it possible for a SOAP operation, which defined in a WSDL file, to have multiple outputs? Example: <operation name="getUserInfo"> <input message="getUserIdRequest"/> <output message="getUserNameResponse"/> <output message="getUserEmailResponse"/> </operation> Correct me if I'm wrong, the answer should be no because a method only return one element. If so, what can I do...

What data type should put for the xsd in the wsdl for images stored as BLOB in the database?

xml,web-services,soap,xsd,wsdl
I'm trying to create a simple web service where the user can retrieve the name price and picture from the database based on the price inputted but i'm getting the error: Exception: SOAP-ERROR: Encoding: object has no 'Image' property I'm assuming it must be because i haven't put the right...

Converting a type to an array

c#,wsdl
I am creating a parser for Web Services. I am in a road block. I have an XML document which is <AdvisorName> <PersonNameTitle>String[]</PersonNameTitle> <PersonGivenName>String[]</PersonGivenName> <PersonFamilyName>String</PersonFamilyName> <PersonNameSuffix>String[]</PersonNameSuffix> <PersonRequestedName>String</PersonRequestedName> </AdvisorName> My code is foreach (XElement childNodeprop in childNodesPropLst) { XElement childElement =...

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...

error “None of the policy alternatives can be satisfied” with cxf wsdl2java generated webservice

java,web-services,wsdl,cxf
I'm trying to build a web service client based on a wsdl file. This client is used in a java webapp built with Spring and Maven. I have used cxf 2.4.9 as an eclipse plugin to generate the java code from the wsdl file. The web service needs a username...

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>';...

Unable to add sibling node into soap response

java,xml,soap,xsd,wsdl
Hi everyone i need to generate soap response as following.I have generated it upto "GetTestDetailResult" node.But unable to add "country" as child of root node(GetTestDetailResponse). <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetTestDetailResponse> <GetTestDetailResult> <id>string</id> <fname>string</fname> <lname>string</lname> </GetTestDetailResult> <country>string</country> <age>int</age>...

Biztalk 2010 : Not able to Query SalesForece through Enterprise WSDL.Illegal Header issue

wsdl,salesforce,integration,biztalk
I am implementing BizTalk 2010 Saleforce integration where I am purely using enterprise wsdl for calling its methods. No C# code for any operation. I am successfully able to call login method and getting result back with all details. Now at the subsequent request where I am calling query method...

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 do I publish my own typed WSDL?

java,web-services,tomcat,wsdl,jax-ws
I'm building a web service and deploying it on Tomcat. I already have a wsdl for it, which I'd like to publish, and I've tried specifying with the wsdlLocation attribute of the WebServiceProvider annotation, but Tomcat(?) just generates its own. EDIT: No, It just throws exceptions, it was generating its...

SOAP wsdl, Authorization

php,web-services,authentication,soap,wsdl
I'm trying to make SOAP request, but for that i must be authorized. If i try to call function without authorization, i get error about it, all okay. But when i trying to do that, i always get that error: Parsing Schema: can't import schema from 'http://www.w3.org/2005/05/xmlmime' But if i...

VS newbie: how to use this WSDL in C# code

c#,visual-studio,soap,wsdl
I've added the ASMX URL to the Add Service Reference in Visual Studio. Tried to create an object with the operation I'm looking to do: AutomationServices.ExecuteJob2Request inValue = new AutomationServices.ExecuteJob2Request(); inValue.Body = new AutomationServices.ExecuteJob2RequestBody(); inValue.Body.jobXml = xml.ToString(); But nothing happens. There are lots of classes. Not sure what ones to...

consuming a web service in Synfony 2

php,web-services,symfony2,wsdl
I have a web service developed with webdev, and I want to consume it with Symfony 2. At this time, I went for pure PHP. I tried to define objects as classes like they are described in the wsdl (which will allow me to create instances of the object directly)....

Soap, call a recovery service

php,web-services,soap,wsdl,salesforce
I am new to SOAP. For a project, I need to use "Force.com Toolkit for PHP". I made the first call to open a Salesforce session and retrieve the session ID , which will be used to call the recovery service of customer information. ( It's ok, i have the...

generate ws client with wsdl and axis2

eclipse,wsdl,jax-ws,axis2
I have this wsdl <?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.7-hudson-48-. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.7-hudson-48-. --> <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://webservice.consulta.spcjava.spcbrasil.org/"...

Cannot figure out how to add a section of soap header using java cxf

java,web-services,soap,wsdl,cxf
I have been struggling with writing a java cxf client. I am able to successfully communicate with the service using SoapUI but the java client I am trying to write is not working and I believe I have narrowed it down to something missing in the soap envelope and I'm...

WCF Contract first: No methods are exposed

xml,wcf,soap,wsdl,design-by-contract
I have received a WSDL with a bunch of XSD's and I am using these to create a WCF-service. I am using svcutil.exe to generate the service class and everything basically works fine - except that the services does not expose any methods. The .cs-file generated from svcutil contains the...

How to use code-generated SOAP client?

java,web-services,soap,wsdl,jax-ws
I need to make a Soap client in java for the EU tax id service. I mamanged to generate the code from the WSDL using wsimport. My problem is that cannot figure out how to use it. More specifically, how do I make a Soap call to the service so...

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...

SSL protocol can protect a Web Service?

java,apache,web-services,wsdl,httpserver
If I make a web service and I publish the WSDL through the IHS (IBM HTTPServer) in the secure port 443 with a SSL Certificate, the communication sent between client WS and Web Service are secure?

redefine xsd element throws “not well formed” error

soap,xsd,wsdl,soapui,w3c
I am trying to use the element redefine in my xsd. I have tried different combinations but still don't seem to get this error resolved. The error shows up when i try to load the WSDL including the redefined schema into SOAP UI. Also, it doesnt show up in the...

What is the most recent web services version from netsuite?

web-services,wsdl,netsuite
I am trying to log in via the WSDL to a NetSuite sandbox where I already have admin rights and can log in using the GUI. I am wondering what is the most recent web services version for NetSuite? I have found https://webservices.na1.netsuite.com/wsdl/v2013_2_0/netsuite.wsdl and I am wondering if this is...

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...

Biztalk 2010 - Salesforce CRUD Operation through WSDL purely

wsdl,salesforce,integration,biztalk,biztalk-2010
I am working on BizTalk 2010 and SalesForce integration where I am purely using SalesForce enterprise WSDL to perform all operations. I am successfully able to login and query through WSDL, now my test is I want to do CRUD operation on any object (eg. Quote or Contact etc) using...

understand spring-ws, integration with spring-mvc and automatic generation of wsdl

java,spring,web-services,wsdl,spring-ws
i want learn spring-ws with automatic generation of wsdl files, i know that is a lot of tutorials, i tried them, my favorite example is : github projet It works well, but i tried to ajust that solution for my needs, and it doesnt work, i dont know why, and...

Unable to resolve URI Issue Ruby URI

ruby-on-rails,ruby,wsdl,uri,savon
client = Savon.client(:wsdl => 'LOCATION OF FILE CODE OF WHICH I HAVE POSTED BELOW' Savon.call(:create_shipments, :message => some_hash) I am getting URI::InvalidURIError: bad URI(is not URI?) I did a puts in URI Library for the url the URL was - https://ws.aramex.net/shippingapi/shipping/service_1_0.svc tried to URI.parse on the same url its not...

How to make my web service url case insensitive?

web-services,wsdl,axis2
I have generated a web service from an existing wsdl file using Axis2, and now my service is reachable by a url http://something/Service?wsdl The problem is, there are some applications which call this url, adding an upper case word "WSDL" at the end of url (please don't ask why..), so...

Download file from Sharepoint library via web services using nusoap

php,web-services,sharepoint,wsdl,nusoap
I'm trying to download a file from Sharepoint library via web service with nusoap client. I'm able to connect and get List content using Lists.wsdl but I'm having trouble figuring out the parameters for Copy.wsdl methods. <?php require_once('lib/nusoap.php'); $username = 'domain\user'; $password = 'secret'; $rowLimit = '0'; $listGuid = "{0379989D-8639-430B-9FD0-96551B7EAB29}";...

WSDLException … An error occurred trying to resolve schema … Connection timed out: connect

java,wsdl,webservice-client
First of all, my error is almost identical to what is reported in this question: WSDLException : An error occurred trying to resolve schema referenced at Here is a snippet of my stack dump: javax.wsdl.WSDLException: WSDLException (at /definitions/types/xs:schema/xs:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'http://www.w3.org/2005/05/xmlmime', relative...

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...

Mule - Exported project - Error java.io.FileNotFoundException

deployment,path,wsdl,mule
I have exported my mule project which contains a WSDL file in src.main.resources/wsdl-request. The type of export is AnyPoint Studio Project to AnyPoint Deployable Archive. The problem is that when I execute the deployable archive in the server it return this error: Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Users/usrAdmin/AnypointStudio/workspace/mule-project-test/src/main/resources/wsdl-test/Request.wsdl'....

How to add command line argument to a web application(Spring MVC)

web-applications,wsdl,cxf,command-line-arguments
I'm working on a web project that uses Apache CXF and web services, which i use to hit a request to server and get the response back. The server(Actually the service provider) had given me some username and password. Now, when I run my request as a java application...

Removing swagger from ServiceStack WSDL

c#,wsdl,servicestack
I have a REST & SOAP API implementation in ServiceStack and I am having a problem with getting rid of Swagger in the WSDL. I have the swagger plugin installed with servicestack with: Plugins.Add(new SwaggerFeature()); I've documented everything rest side that I'm using and the swagger works well. I'm getting...

Curl response not getting result data

php,curl,soap,wsdl
I am trying to send WSDL through curl. But I am getting the below response: HTTP/1.0 200 Connection established HTTP/1.1 100 Continue HTTP/1.1 500 Internal Server Error Date: Sat, 02 May 2015 05:58:05 GMT Server: IBM_HTTP_Server X-Powered-By: Servlet/3.0 $WSEP: Content-Length: 85 Content-Type: text/html;charset=ISO-8859-1 Connection: close Content-Language: en-US Error 500: java.lang.StringIndexOutOfBoundsException:...

Error with kSOAP2

android,web-services,wsdl,ksoap2
I am trying to submit a username and the device ID of the phone to my Server but I keep getting following error: W/System.err﹕ SoapFault - faultcode: 'soap:Client' faultstring: 'Unmarshalling Error: unexpected element (uri:"http://eventmanagement.management.de/", local:"username"). Expected elements are <{}deviceID>,<{}username> ' faultactor: 'null' detail: null This is my code: PropertyInfo pi...

Connet to right custom Exchange server

c++,authentication,wsdl,exchangewebservices,gsoap
I am trying to implement a client side service which exchange data with exchange server, so i'm using gSoap library. However i want that any user can access their own mail data with their official mail credentials via my this client service. I'm using wsdl file from https://outlook.office365.com/EWS/services.wsdl to get...

Purpose of php wsdl cache

php,wsdl
Is the purpose of php caching a wsdl to improve performance? By default it seems php caches the file for 1 day. What happens if the web service gets updated? Will it not know about it for a day?...

Lotus Domino Web Service in WSO2 Pass Through Proxy Service

web-services,wsdl,wso2,wso2esb,lotus-domino
I created a pass through proxy on WSO2 for Lotus Domino Web Service. Here is WSDL of that service: <?xml version="1.0" encoding="UTF-8"?> <definitions targetNamespace="urn:DefaultNamespace" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:DefaultNamespace" xmlns:intf="urn:DefaultNamespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"...

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">...

C# WSDL Client Request Packages

c#,http,soap,wsdl,wireshark
I am currently adding a SOAP-WSDL Service to my project using "Add Service Reference". it creates all necessary classes and functions for me to call. Some of these functions dont give me a response. After 1 minute delay i get a timeout exception. However when i forge the request using...

How to have a SoapUI test successfull if SOAFault has a particular message?

web-services,wsdl,soapui
I have a SoapUI test that performs a WSDL call. This WSDL call is considered a success if either response is a valid SOAPResponse response is a SOAPFault with a specific faultstring How can I write a SoapUI test that will be successfull in both cases (and obviously only those...

How to generate client stubs from wsdl over https?

web-services,https,wsdl,client
I am a begginer in web-service world. For my current project i've to use a webservice over HTTPS replacing old HTTP service . What are the commands for generating the client stubs ? What extra parameter are needed for https compare to http ?

does wsimport depend on the original source of the wsdl?

web-services,wsdl,client,jax-ws,wsimport
I'm learning about wsimport. In the examples I've seen, they show how to generate the wsdl from the server code, and then, how to use wsimport on the wsdl to generate the java client stubs. Does this imply that in order to use wsimport on the wsdl file, the wsdl...

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(...

WSDL time format is ignored from Visual Studio

c#,visual-studio-2013,wsdl,time-format
A WSDL file from a customer specifies the time data type using this syntax: <xsd:simpleType name="time"><xsd:restriction base="xsd:time"><xsd:pattern value="[0-9]{2}:[0-9]{2}:[0-9]{2}"/></xsd:restriction></xsd:simpleType> I included the WSDL file as "Web Reference" (not Service Reference) in a Visual Studio C# project. Which generates this code: [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType="time")] public System.DateTime I_TIMETO { get { return...

WCF Web Service: How to return an inherited object that is known on the client

c#,web-services,wcf,inheritance,wsdl
I have an object AddressDTO that inherits from ResponseDTO. [DataContract] public class ResponseDTO { [DataMember] public string ID {get; set;} } [DataContract] public class AddressDTO : ResponseDTO { [DataMember] public List<Address> Elements {get; set;} } I'd like to have a kind of generic Web Service that receives a RequestDTO as...

How to add object to WSDL service system.array

c#,arrays,web-services,wsdl
I am currently working with a WSDL that has a method to save invoices. I have been able to modify existing invoices, but haven't figured out how to save new ones. Since the array size is immutable, I am unable to add objects to the array that is retrieved. How...

Maven trouble when trying to generate from WSDL file

eclipse,soap,jaxb,wsdl,maven-jaxb2-plugin
Im trying to generate sources from a wsdl file, but I keep running into an error on my pom.xml that I believe might be my issue? Below is the error that I get from my pom, and my pom file. Also I cannot build the project with "mvn clean install"....

How connect to webservice with generated c files from wsdl2c

c,web-services,wsdl,client,stub
I used axis2c to generate c files from a wsdl file. (this is the WSDL file I used) now I have these list of files: adb_helloName.c adb_helloNameResponse.c axis2_extension_mapper.c axis2_stub_HelloService.c plus I have their header files. and a HelloServiceClient.vcproj file. I created a project in visual studio and now I want...

Enable Police in CXF 3.0 and Spring with Contract-First

spring,web-services,wsdl,cxf,ws-security
I'm trying implement WS-Policy in my services with CXF 3.1.0 and Spring 4.1.6 Most of examples that I found was with CXF 2 and structures like cxf-extension-policy.xml and cxf-extension-ws-security.xml changed in CXF new version. I tried something like: package spring; import java.util.LinkedList; import java.util.List; import javax.xml.ws.Endpoint; import org.apache.cxf.Bus; import org.apache.cxf.feature.AbstractFeature;...

Remove the namespace from Spyne response variables

python,soap,wsdl,spyne
Implementing a WebService according to a specific WSDL. Client cannot be changed. Correctly processing request from Client, but Client is complaining on Response because of namespace in variables. What I want (soapUI response based on WSDL): <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cal="http://callback.foo.com/"> <soapenv:Header/> <soapenv:Body> <cal:foo_statusResponse> <result>SUCCESS</result> <notify>Thanks!</notify> </cal:foo_statusResponse>...

How to consume multiple SOAP Web Services with the same wsdl?

.net,web-services,soap,wsdl,soap-client
I am creating a service layer which consumes an end-point based upon the environment. The service layer it's being developed with ASP.NET Web API 2 and C#. The end-points are SOAP whereas, one faces testing while the other faces the production environment. One mirrors the other, reason why both expose...

Perl WSDL11 Can't Make it to Work on two WSDL files

xml,perl,soap,wsdl
This question is related to the issue I encountered on my Perl Program using XML::Compile::WSD11 Perl Module in which my company Webservice uses multiple WSDL with XML import. The original post that describe this issue can be found here. From that post, I tried the suggestion of imatveev13 to use...

How to construct SOAP message with pysimplesoap?

python,xml,soap,wsdl,pysimplesoap
I'm trying to call a SOAP service from the Dutch government land register (WSDL here) with PySimpleSoap. So far I did this to connect: from pysimplesoap.client import SoapClient client = SoapClient(wsdl='http://www1.kadaster.nl/1/schemas/kik-inzage/20141101/verzoekTotInformatie-2.1.wsdl') and with the help of an awesome answer by Plamen Petrov I now understand I need to send the...

WebService banguat.gob.gt

php,web-services,soap,wsdl,xampp
Thank you all in advance for the help: I have this code: require_once('include/nusoap/lib/nusoap.php'); $soapclient = new soapclient('http://www.banguat.gob.gt/variables/ws/TipoCambio.asmx'); print_r( $soapclient->call( 'TipoCambioDia' ) ); and gives me this error:Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.banguat.gob.gt/variables/ws/TipoCambio.asmx' : Premature end of data in tag html line 3 in...

Correct envelope to use for a SOAP request?

soap,wsdl,envelope
I'm trying to integrate with the SOAP API specified here: https://api.okpay.com/OkPayAPI?singleWsdl https://api.okpay.com/OkPayAPI?wsdl At the moment the code autogenerated from the wsdl files appears to be acting up, so I'm wondering what should be the correct envelope to send and where should I be sending it? I used this service for...

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...

(SOLVED) WCF service on IIS - WSDL is empty

web-services,wcf,iis,soap,wsdl
I've created a WCF service and hosted it on my IIS server. Then, I needed to edit the schemaLocation and so, I followed this post. It seems to work, but when I add "?wsdl" to the url, I get an empty page. If I try to use the WSDL from...

SOAP WSDL php request

php,xml,soap,wsdl,request
I'm trying to send request via SOAP, and call service function. I have WSDL file, which returns available function's. There's my code example: ini_set('display_errors', '1'); ini_set('error_reporting', E_ALL &~ (E_NOTICE | E_STRICT)); ini_set("soap.wsdl_cache_enabled", 0); $wsdl = 'source/HPSMInteractionsFromMosRu.wsdl'; $client = new SoapClient($wsdl, array( 'trace' => 1, 'exception' => 0 )); $res =...

Get WCF metadata through endpoint address

c#,web-services,wcf,wsdl,wcf-endpoint
I have a wcf service exposing multiple endpoints including a mex endpoint. I have enabled getting the metadata over http and https. My endpoints are like this... <endpoint name="ep1" address="ep1".... <endpoint name="ep2" address="ep2".... <endpoint name="mex" address="mex".... The service behaviour is set properly and I'm able to get the wsdl like...

How to make a SOAP Request to an Endpoint or WSDL like SoapUI?

java,soap,wsdl,request,bpel
I need to make a request to a BPEL process that's described by a WSDL. I've been using SoapUI to test it by providing the WSDL URL and everything works fine. Now I need to make the same but in Java. I'm building a webservice that receives data from another...

“Unable to parse URL” exception after SOAP request

php,web-services,soap,wsdl,soap-client
I'm trying to use a soap service with php, but it seems that the request format that php creates couldn't be interpreted by the service. Simple example I have so far: ini_set("soap.wsdl_cache_enabled", "0"); $client = new SoapClient('http://publicbetawebservices.hotel.de/V2_8/FreeHotelSearchWebService.svc?WSDL',array("trace"=>1)); try { $response = $client->GetWebservicesVersion(); } catch(Exception $e){ print_r($e); } Output: SoapFault Object...

Method name in soap message request

java,web-services,soap,wsdl,soapui
I have an interesting problem, I'm using SOAP UI to parse the WSDL. The WSDL from payPal https://developer.paypal.com/docs/classic/api/PayPalSOAPAPIArchitecture/ When I try to load it in SOAP UI, all the method names are getting created that's fine, but when I look into the Messages, The method name in tree view is...

Wrap function parameters complexType in an element

wsdl,spyne
I am trying to implement an existing webservice with Spyne. I have a function that takes two parameters, for which the WSDL should look like this: <wsdl:types> <xs:schema targetNamespace="http://example.com/" elementFormDefault="qualified" > <s:element name="getData"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="login" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/> </s:sequence> </s:complexType> </s:element>...

How to transform tags in Java

java,xml,soap,wsdl
How to transform tags below in Java, I thinked use the XTreams Framework. Help me! I see in Google search. This <?xml version="1.0" encoding="ISO-8859-1"?> <fastbranch-xe-request project="Tech" transaction-id="massiveSelectBranchList_By_Institution_Facade" transaction-version="1.0"> <entity name="glb.credential"> <attribute name="channelId">8</attribute> <attribute name="originBranchId">0</attribute> <attribute name="dependencyId">1000</attribute> </entity> <entity...

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",...

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 )...

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...

Error when I try to generate client from wsdl

java,wsdl
I want to generate a java client from wsdl. So I have create a new project, import wsdl into project, then right click -> web services -> Generate Client. So this is the option that I use: Then click on fish and I have this error: IWAB0399E Error in generating...

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>...

Error parsing wsdl - The sytem cannot find the path specified

java,web-services,wsdl
My wsdl is at location http://localhost:9999/ws/hello?wsdl. I am using wsimport tool to parse the published wsdl file, and generate necessary client files (stub) to access the published web service. I am unable to parse this wsdl, How can I resolve this? HelloWorld.java is the interface and it's implementation is HelloWorldImpl.java...

How do I import a .discomap file into my project in Visual Studio 2012?

c#,asp.net,web-services,visual-studio-2012,wsdl
In an old solution, I have a folder called App_WebReferences, it contains another folder called ReportExecution. This contains a file called ReportExection2005.discomap and this file has a symbol of a web service. And finally inside this file I have a ReportExection2005.wsdl. I want to do the same thing on the...

Ksoap2 Nullpointer Exception

java,android,web-services,wsdl,ksoap2
I have a web-service, which runs on Tomcat 7.0.54 (on my local machine). It has two methods, sayHelloFrom(String from), which should return greeting string with a given user name. And saveFile() method, which generates a file on my local machine when called. Also I have "standard" java test client for...

Generated WSDL Proxy has class named “System”

c#,.net,soap,visual-studio-2013,wsdl
I'm working with a third party service whose WSDL defines a class named System. Using Add Service Reference, Visual Studio generates a proxy that has a class named System, which causes all kinds of compilation problems. I'm looking for the best way to avoid this problem without breaking the contract....

PHP SOAP request not working with WSDL

php,web-services,soap,wsdl
I'm trying to use a SOAP service called Chaverweb. I have their WSDL; it's here. When I try to make a simple request like GetCWVersion, it's working, but whenever I try to request a function that would need some sort of authentication, like Get_Syn_Comsend (getting an institute's details), it doesn't...