Menu
  • HOME
  • TAGS

Error when I try to generate client from wsdl

java,wsdl

Your WSDL imports a schema with a URL with an https address scheme. This error indicates that your Java installation does not "trust" the certificate presented by the server that is hosting this schema that is being imported. You have a couple of options: Import either the server's CA certificate,...

How to gather company data from VIES database via SOAP

php,soap,wsdl

As you have stated that postal code will be in 99-999 format and assuming the street number (+ any flat identification) will always start with a number, you can use a preg_match to parse the address string: $result = new stdClass(); $result->address = 'Wita Stwosza 15 M5 31-042 Kraków'; preg_match(...

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

java,spring,web-services,wsdl,spring-ws

The problem is that your xsd is wrong. You should wrap your complex types in an element. <xs:element name="deliverShortMessageRequest"> <xs:complexType> <xs:sequence> <xs:element name="parameters" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="sms" type="tns:deliverShortMessage"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element /> <xs:element name="deliverShortMessageResponse">...

SSL protocol can protect a Web Service?

java,apache,web-services,wsdl,httpserver

Yes it can, but if you are making your own server remove :80 port for http, it is not necessary, but if you want to be it safe, you don´t need it, addresses must be like: https://something.com (.org .net .eu and so on) and it will use 443 port.

Unable to resolve URI Issue Ruby URI

ruby-on-rails,ruby,wsdl,uri,savon

Fix - https://github.com/savonrb/savon/issues/488 just install gem httpclient ...

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

spring,web-services,maven,spring-mvc,wsdl

You need to change your configuration like below to generate sources. generateDirectory is the actual directory where the source files are created. generatePackage is the package name for the source files you generate from WSDL, so you should find these package sub-folders inside generateDirectory <configuration> <schemaLanguage>WSDL</schemaLanguage> <generateDirectory>${project.build.sourceDirectory}/gensrc </generateDirectory> <generatePackage>com.wsdl.src</generatePackage> <schemas>...

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

Unable to add sibling node into soap response

java,xml,soap,xsd,wsdl

I can't comment yet (not enough rep) to clarify but when you say you can't add country as a child element of GetTestDetailResponse I assume that you are getting an XML invalid error. Looking at your XML schema in the WSDL there is no country element defined <xs:element name="GetTestDetailResponse" type="tns:GetTestDetailResponse"/>...

How to construct SOAP message with pysimplesoap?

python,xml,soap,wsdl,pysimplesoap

Constructing xml is not the necessary (or correct) way to call a soap method. PySimpleSoap has already provided quite an elegant and human-readable way to do this: client = SoapClient(wsdl='http://www1.kadaster.nl/1/schemas/kik-inzage/20141101/verzoekTotInformatie-2.1.wsdl', trace=True) client.VerzoekTotInformatie(Aanvraag={'berichtversie':4.7, 'klantReferentie':'cum murmure', 'productAanduiding': 'aeoliam venit'}) The debug log would be like this: INFO:pysimplesoap.client:POST...

PHP Soap Client Errors

php,web-services,soap,wsdl,soap-client

I ended up with a working solution, inspired by this answer here: Sending Raw XML via PHP SoapClient request after getting the required request XML by using the software from http://www.soapui.org/

What is the most recent web services version from netsuite?

web-services,wsdl,netsuite

See here: NetSuite SuiteTalk Documentation

Mule - Exported project - Error java.io.FileNotFoundException

deployment,path,wsdl,mule

It seems you have hardcoded this path C:\Users\usrAdmin\AnypointStudio\workspace\mule-project-test\src\main\resources\wsdl-test\Request.wsdl in your configuration. Use wsdl-test/Request.wsdl instead so that way the file can be found both in Studio and when the application is packaged, as it will be loaded from the classpath (as a resource) instead of being loaded as file (via an...

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

c#,asp.net,web-services,visual-studio-2012,wsdl

Right-click the project in the solution explorer, and choose "Add Service Reference...". In that window, click "Advanced". In that window, click "Add Web Reference..." That should probably get you there. If not, read up about using wsdl.exe to generate the discomap....

UCM search - integration with .net

.net,search,soap,wsdl,oracle-ucm

Well if any one is looking for this. Turns out you don't just send the search word as is, it needs to be formatted this way string searhword = String.Format("<usch>dDocTitle <substring> `{0}`</usch>", "obama"); You might also consider using AdvancedSearch instead of quick search. Search seems to be case sensitive, I...

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

java,web-services,soap,wsdl,cxf

The reason the CXF client is not signing the Body, is that you have no policy to tell it to. You need to include a policy that looks like the following: <sp:SignedParts> <sp:Body/> </sp:SignedParts> Colm....

WebService banguat.gob.gt

php,web-services,soap,wsdl,xampp

The reason for the fatal error is that the URL you are using to create $soapclient is not a WSDL file. You will need to change it (note the ?WSDL in the URL): $soapclient = new soapclient('http://www.banguat.gob.gt/variables/ws/TipoCambio.asmx?WSDL'); Next, to get "TipoCambioDia" call, you need to use it directly, i.e.: $soapclient->TipoCambioDia()...

Call Web Service and Return Error in Delphi 7

web-services,delphi,wsdl,delphi-7,delphi-xe5

I have use THTTPRIO.OnBeforeExecute for change SOAPResponse.Then delete unnecessary attribute and type in XML source and packing again and assign it to SOAPResponse and send it. In this method the problem was solved....

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

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

.net,web-services,soap,wsdl,soap-client

After reviewing most of the answers about this topic. I have seen there is nothing in common between them. Therefore I am going to share what I figured out and worked for me. Keeping in mind both end-points are the same. I just added one Service Reference to my project....

generate ws client with wsdl and axis2

eclipse,wsdl,jax-ws,axis2

The wsdl references an external xml-schema (see xsd:import) which is access protected. This is why you get the 401 (UNAUTHORIZED) error ( https://servicos.spc.org.br:443/spc/remoting/ws/consulta/consultaWebService?xsd=1). Probably you can request an inlined version of the wsdl (where all schema definitions are inlined in one complete wsdl)....

Delphi 2007 SOAP Fault Processing

web-services,delphi,soap,wsdl

For anyone else still using Delphi 2007 that comes across this question, this is how I fixed this issue. First, copy OPToSOAPDomConv.pas and InvokeRegistry.pas from the Delphi source directory (\Program Files< (x86)>\CodeGear\RAD Studio\5.0\source\Win32\soap) to your project directory. Add these two files to your project as you will be customizing the...

TypeError in SOAP Request (using pysimplesoap)

python,xml,soap,wsdl,pysimplesoap

It seems that pysimplesoap is not capable of dealing with substitutionGroup in xml schema. You can see that in the xsd file: <xs:element name="IMKAD_Perceel" substitutionGroup="ipkbo:IMKAD_OnroerendeZaak" type="ipkbo:IMKAD_Perceel" /> There is this substitutionGroup, which means that IMKAD_Perceel and IMKAD_OnroerendeZaak is the same thing and substitutable for each other. In the soap schema,...

WSDL time format is ignored from Visual Studio

c#,visual-studio-2013,wsdl,time-format

I think there is no good solution, so you have to edit the auto generated code. Create a partial class of the auto generated code and add a string property with the correct formatting in it: [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "string", ElementName = "I_TIMETO")] public string I_TIMETO_STR { get...

How to make my web service url case insensitive?

web-services,wsdl,axis2

I've taken a quick look at the Axis2 code and it seems the ?wsdl extension compare is case sensitive. This thing sometimes happen. You could have a look at the code yourself and see if there is some switch somewhere to make this case insensitive (in case I missed something...

How to transform tags in Java

java,xml,soap,wsdl

I second reineke's suggestion of using DOM to transform the initial request. Here's a head start for you on parsing the initial request: DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse("xml"); // optional, but recommended // read this - // http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work doc.getDocumentElement().normalize(); // System.out.println("Root element :"...

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

java,soap,wsdl,request,bpel

I managed to solve this by creating a new WSDL that would create stubs compliant with the ones from the BPEL WSDL and by creating a client class that sends a SOAP message as described in here. To find out what I needed to define in the message I used...

Maven trouble when trying to generate from WSDL file

eclipse,soap,jaxb,wsdl,maven-jaxb2-plugin

Author here. Very strange, this would bean that code model is not present, but the version is out there for a while so I doubt it's a problem in the maven-jaxb2-plugin. Please try to reduce your POM by commenting out the repositories you have configured there. If nothing helps, please...

SOAP wsdl, Authorization

php,web-services,authentication,soap,wsdl

I've found a solution for me! Problem with that error was that i couldn't get in that file from my script, so you need to save them locally: I saved that file (http://www.w3.org/2005/05/xmlmime) into my work directory , and have changed WSDL file pathes (schemaLocation=...) also to my locally copies...

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

web-applications,wsdl,cxf,command-line-arguments

Ok.. found the solution.. I did set the username and password in the environment variables of my system and it worked. Thank you...

Correct envelope to use for a SOAP request?

soap,wsdl,envelope

A couple of things: The "Server Address" needs to point at the actual service, so in this case https://api.okpay.com/OkPayAPI The action can be seen in the WSDL, in this case https://api.okpay.com/I_OkPayAPI/Get_Date_Time Have a look at the WSDL and search for the action I gave above, that should give you an...

How to use Axis2c to generate C files from WSDL file

c,web-services,wsdl,axis2c,wsdl2code

In addition to Axis2/C you must have Axis2/Java installed. AXIS2_HOME must point to Axis2/Java installation. For details please see README of codegen. The complete list of commands to create and compile client is: # create stubs sh $AXIS2C_HOME/bin/tools/wsdl2c/WSDL2C.sh -uri Calculator.wsdl -u -uw # implement main() in src/your_client.c # see samples/codegen/client/calculator...

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

c#,web-services,wcf,inheritance,wsdl

Here is a small demo of known type.. Following service is tested on WCF Test Client. In wcf test client, you will get different output for you inputs (Request1 ,Request2). IService1.cs using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace WcfKnownTypeStackOverFlow { [ServiceContract] public interface IService1...

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

xml,perl,soap,wsdl

Make sure to use the module XML::Compile::SOAP11::Encoding on top of your script: use XML::Compile::SOAP11::Encoding; ...

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

If the image really must be stored within the XML, convert it to Base64 and use xsd:base64Binary type. However, if possible, try to store the image apart from the XML file and include in the XML a reference (such as a URL) to the image instead....

XPath select wsdl prefix namespaces

java,xml,soap,xpath,wsdl

For the first one: /*/namespace::*[name()=''] Result:http://schemas.xmlsoap.org/wsdl/ For the second one: /*/namespace::*[name()='soap'] Result:http://schemas.xmlsoap.org/wsdl/soap/ You should remember to enable namespace support in java: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); //This is really important, without it that XPath does not work DocumentBuilder db = dbf.newDocumentBuilder(); Document document = db.parse(inputSource); //inputSource, inputStream or file which...

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

eclipse,maven,wsdl,maven-release-plugin

Below plugin is required to build the WSDL files, post that usual mvn clean install should do the job <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <extensions>false</extensions> <version>1.2.1</version> <executions> <execution> <id>custom-compile</id> <phase>compile</phase> <goals> <goal>exec</goal> </goals> </execution> </executions> <configuration>...

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

c#,visual-studio,soap,wsdl

Simpler than I thought... AutomationServices.JobExecutorSoapClient job = new AutomationServices.JobExecutorSoapClient(); var result = job.LaunchJob2(xml.ToString()); ...

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

java,wsdl,webservice-client

After further investigation and testing with Axis2 and CXF, I finally found the problem, thanks to the CXF's version of the wsdl2java script which is giving a bit more details. First of all, the original solution proposed was almost correct. I actually need to add all the proxy information, however...

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

python,wsdl,suds,servicenow

Keep in mind the fact that you're basically just using suds to construct SOAP payloads. It helps to take step back and determine the SOAP request needed to get the response you're looking for. According to the WSDL, the start_date field accepts a single parameter, and behaves like blah=foo, so...

wsimport result has a different runtime endpoint

java,maven,wsdl,endpoint,wsimport

Yes, I'm answering my own question. I'm doing this for the benefit of anyone of experiences this problem in the future. I've just heard back from the guys hosting the service I've been trying to connect to with the mysteriously changing port. Their server "...is running on our internal network...

Ksoap2 Nullpointer Exception

java,android,web-services,wsdl,ksoap2

Got it! First, I put everything inside doInBackground into try block. Then i got new ecxeption, and it was classCastException. So, lines of code for getting the result I changed to this: SoapPrimitive result =(SoapPrimitive)envelope.bodyIn; Log.d("App", "" + result.toString()); response = result.toString(); And the hole doInBackground method now looks like...

Purpose of php wsdl cache

php,wsdl

As far as I know, ALL cache implementations anywhere have the purpose to improve performance. It is kind-of the definition of 'cache'. Once the WSDL gets updated, your script will not know it indeed, until the cache expires. The cache settings for SOAP can be set in the options parameter...

Is it using RMI for invoking the web service

java,web-services,soap,wsdl,wsdl2java

Here is it using RMI for invoking the web service??? Http. The web service client would create a http request (just like how a browser does when you request a url), convert your request object to an xml payload and invoke your service end point. Different vendors of JAX-WS...

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

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

SOAP fault handling in java

java,eclipse,web-services,soap,wsdl

If you want to return a proper response to the caller. Then you need to return an object not only one fields. For example you can create new class you can call it Response that contains the fields you want to display it to the caller like responCode and responseDescription....

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

JAX-WS: Compile Schema separate from WSDL

java,xsd,jaxb,wsdl,jax-ws

You can use maven, separate for each and Generate with Apache CXF. http://cxf.apache.org/ I have an example that can help you. properties: <properties> <apache.cxf.version>3.0.4</apache.cxf.version> <cxf-codegen-plugin.version>3.0.4</cxf-codegen-plugin.version> <cxf-xjc-plugin.version>3.0.3</cxf-xjc-plugin.version> </properties> dependencies: <dependencies> <dependency> <groupId>org.apache.cxf</groupId>...

consuming a web service in Synfony 2

php,web-services,symfony2,wsdl

Anytime you need to use a class more then once across your application you need to define it as a service. A service is a php object that performs some type of global task. One cool thing about services, are the fact that you can inject other services into them...

How do I publish my own typed WSDL?

java,web-services,tomcat,wsdl,jax-ws

Well, looking at the error messages I figured the problem was with the cxf-servlet.xml file. Initially it was - <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:soap="http://cxf.apache.org/bindings/soap" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/bindings/soap...

Download file from Sharepoint library via web services using nusoap

php,web-services,sharepoint,wsdl,nusoap

So after several more hours of debugging I have found out that the answer is amazingly simple. The only parameter that needs to be sent is URL of the file to be downloaded like this: //Set URL of the file $file['Url'] = 'http://site.example.com/subsite/Folder/requested_file.ext'; //Call nusoap client $result = $cclient->call('GetItem', $file);...

Get WCF metadata through endpoint address

c#,web-services,wcf,wsdl,wcf-endpoint

It's just a strange question. If you're exposing multiple endpoints for a service then you're basically exposing the same contract across multiple bindings or on more than one physical address. If it's the same contract then logically you would never have to expose more than one mex endpoint because the...

How connect to webservice with generated c files from wsdl2c

c,web-services,wsdl,client,stub

I have found the solution. I tried to create my own server with my own wsdl file. I created a server in JAVA that gets 2 number values and add them together: public class Math { public int addOperator(int num1, int num2){ return (num1+num2); } } then I created the...

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

web-services,maven,java-ee,wsdl

Maven itself won't do it for you, it may only be used to trigger generate code for you. So it does not matter whether you use ant or maven or gradle from command line or within eclipse - in the end you always call the same mechanism to generate the...

Soap, call a recovery service

php,web-services,soap,wsdl,salesforce

I find the solution, here my code : <?php // salesforce.com Username, Password and TOken define("USERNAME", "My_username"); define("PASSWORD", "My_password"); define("SECURITY_TOKEN", "My_token"); // from PHP-toolkit ( https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_PHP ) require_once ('soapclient/SforcePartnerClient.php'); $mySforceConnection = new SforcePartnerClient(); $mySforceConnection->createConnection("Partner.wsdl.xml"); $mySforceConnection->login(USERNAME,...

How to add/remove ports from WSDL service tag?

c#,web-services,wcf,iis,wsdl

Answer: SOAP-based endpoint bindings are listed in the WSDL, REST-based are not. Endpoint bindings come in two different types: SOAP and REST. You're service can include both in the web.config file as long as they have different addresses, but only SOAP endpoints will be listed in the WSDL. There are...

Error with kSOAP2

android,web-services,wsdl,ksoap2

Have you tried simply adding property using below flavor of addProperty SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("username", username); request.addProperty("deviceID", deviceID); Also, you can make sure that you have a valid value and you are not hitting any NPE while accessing userName.getText().toString()...

Instantiate web service

java,jaxb,wsdl

The way you are trying to create the client is correct, be carreful with the classes that you use, but the general idea is correct. This is a good tutorial for creating a web service and the client in that way. Another way is using the wsconsume or wsimport tools....

WCF Contract first: No methods are exposed

xml,wcf,soap,wsdl,design-by-contract

Apparently svcutil adds ReplyAction="*" to the operation contract, and that causes the weird behaviour. After removing this specification of the OperationContractAttribute, the problem went away. [System.ServiceModel.ServiceContractAttribute(Namespace="http://tempuri.org/xml/wsdl/soap11/DistributionService/1/port", ConfigurationName="DistributionReceiverWebServicePort")] public interface DistributionReceiverWebServicePort { [System.ServiceModel.OperationContractAttribute(Action="")]...

How to add object to WSDL service system.array

c#,arrays,web-services,wsdl

Why do you say the array is immutable? Does the 2nd to last line throw an error? If it is in fact immutable, you can use Array.Clone to copy the existing array and pass that. Alternatively, if the service is only expecting new/edited invoices to be passed to the SaveInvoices...

How to generate client stubs from wsdl over https?

web-services,https,wsdl,client

You should setup the keystore and truststore (which contains the server cert). You can usually do that either programmatically or via command line params to the Java VM. In your case, since you are running a third party tool, your only option is to pass in the command line params....

Removing swagger from ServiceStack WSDL

c#,wsdl,servicestack

You should be able to exclude Services from SOAP by annotating the Request DTO's with the [Exclude(Feature.Soap)] attribute. Because their built-in Services you can use the runtime attribute dynamic API, e.g: typeof (ResourceRequest) .AddAttributes(new ExcludeAttribute(Feature.Soap)); ...

Modify WSDL in soap webservice with spyne of python

python,django,soap,wsdl,spyne

First, thanks for trying Spyne out! Answers: Try return ResponseData(codResultado=1234, message="Hello!") Pass _out_response_name to @rpc Don't invent yours and use the built-in Fault class. Spyne docs are bad, yes, but they aren't THAT bad. Read them :) Spyne also has a mailing list: http://lists.spyne.io/listinfo/people Hth,...

redefine xsd element throws “not well formed” error

soap,xsd,wsdl,soapui,w3c

SoapUI is a great tool which has helped me through out and will keep helping me in future in great ways. I think this is one of the feature which apparently a lot of users don't use and seems to be a bug in SoapUI 5.0.0. I tried the same...

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

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

web-services,wsdl,soapui

SoapUI will not be able to do what you want out of the box. All assertions you specify have (equivalent of) boolean AND: they all have to pass, to pass the step. I can see two options to solve your dilemma. Restructure your test case(s), so that you can check...

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

Lotus Domino Web Service in WSO2 Pass Through Proxy Service

web-services,wsdl,wso2,wso2esb,lotus-domino

Solved. I created Custom Proxy (not Passthrough!) with property in inSequence: <inSequence> <property name="FORCE_HTTP_1.0" value="true" scope="axis2"/> </inSequence> and then everything works fine :)...

does wsimport depend on the original source of the wsdl?

web-services,wsdl,client,jax-ws,wsimport

In principle it works with any wsdl (as long as it follows the standard). Have you tried to download it locally first, in case it wasn't obtained correctly remotely.

Enable Police in CXF 3.0 and Spring with Contract-First

spring,web-services,wsdl,cxf,ws-security

After a while, I discover that WSS4J uses the idea of interceptor instead of policies in contract. I changed my spring implementation to EndpointImpl endpoint = new EndpointImpl(this.cxfBus, flightService); endpoint.setAddress("/FlightService"); endpoint.setWsdlLocation("src/main/resources/wsdls/flightservice_v1r1.wsdl"); endpoint.getProperties().put("ws-security.callback-handler", new ServerPasswordCallback()); endpoint.publish(); However, even with that configuration when I deployed my contract it showed 2 wsdl:binding and...

Method name in soap message request

java,web-services,soap,wsdl,soapui

After many hours I found the answer @RequestWrapper(localName="localRequestName") Whatever we're giving in the annotation localName will be the SOAP Request method name....

“Unable to parse URL” exception after SOAP request

php,web-services,soap,wsdl,soap-client

Your resulting request is OK (equivalent to expected request from documentation). Problem is there is no endpoint address specified in wsdl http://publicbetawebservices.hotel.de/V2_8/FreeHotelSearchWebService.svc?WSDL. So SoapClient does not know URL where to post the request and you get error Unable to parse URL. You have to specify endpoint URL manually in code....

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

SOAP WSDL php request

php,xml,soap,wsdl,request

I have only worked with SOAP small amounts, but because it mentions missing the "model" I'm thinking your request should look something like this: $res = $client->RetrieveHPSMInteractionsFromMosRuKeysList(array( 'model' => array( 'keys' => array( 'ID' => '' ), 'instance' => array( 'Portal' => 'Portal_example', 'CK' => 'CK_example' ), ), )); ...

Curl response not getting result data

php,curl,soap,wsdl

after doing some R&D i have troubleshoot the problem. there is problem in curl lines,after edit the curl code my WSDL working fine below is working code $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_PROXY, $proxy); curl_setopt($curl, CURLOPT_PROXYUSERPWD, $proxyauth); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 120); curl_setopt($curl, CURLOPT_ENCODING,...

Array structure to specify Fedex One Rate using Fedex API RateService

php,wsdl,fedex,fedex-api

The document https://www.fedex.com/templates/components/apps/wpor/secure/downloads/pdf/201408/RateServicesWSDLGuide_v2014.pdf, point 2.4.4 states that there are several requirements to get One Rate pricing: Specify the "FEDEX_ONE_RATE" ShipmentSpecialService. Which you already have (the one that you use is specified in FedEx Freight Priority and FedEx Freight Economy, point 2.2.4.1). The next requirement: Specify one of the following Packaging...

PHP SOAP request not working with WSDL

php,web-services,soap,wsdl

so I did some direct testing and it is very simple: INVALID LOGIN is being returned on the WSDL. http://phpfiddle.org/main/code/3pvp-8wi9 You can view my code and testing here. While you are testing use their bulit in TestFunction() instead of the function you want to run, this way you can see...

Using PHP SOAP client on .NET web service

php,web-services,soap,wsdl

It is the same thing. In the given example <SendData xmlns="http://tempuri.org/"> is without namespace prefix (the ns1 in your own request) so default prefix is used, and it specifies it with xmlns attribute for itself and its descendants. In your request ns1 namespace prefix is defined using xmlns:ns1="http://tempuri.org/" and used...

(SOLVED) WCF service on IIS - WSDL is empty

web-services,wcf,iis,soap,wsdl

I suspect the issue is related to the authentication required to access the WSDL. When attempting to access the metadata URL directly, the web site indicates the following: “Authentication Required” “The server http://...:8095 requires a username and password.” You either need to provide the proper credentials or relax the permissions...

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

java,web-services,rest,soap,wsdl

This is going to attract opinion-based answers, but first, you should understand that jax-rs is much younger than jax-ws (jax-ws had a final draft in 2006, JAX-RS came out in 2008-9). RESTful webservices standard, for many purposes is quite amorphous - many businesses prefer the comfort of a contract in...

Can a SOAP operation have multiple outputs?

web-services,soap,wsdl

What you want to achieve is done with arrays. You can use a complex types and the maxOccurs attribute set to unbounded in order to create an array of a type of items in the response. Here is a sample for such a type: <s:complexType name="MatterListType"> <!-- List --> <s:sequence>...

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

java,xml,web-services,soap,wsdl

You should use a tool for generating the interfaces and the client. I usually save the wsdl file to my java project and use the ide to generate source code from the wsdl file. Then you can choose your preferred framework. Axis, cxf, ws or what you want. You can...

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

Biztalk 2010 - Salesforce CRUD Operation through WSDL purely

wsdl,salesforce,integration,biztalk,biztalk-2010

Got this Sample SOAP messages in xml format from Salesforce.com. https://developer.salesforce.com/page/Sample_SOAP_Messages. Now I able to do all operations purely from wsdl, not C# code. Thank you all for your help. Zahir Shaikh...

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

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

java,web-services,wsdl,bpel

K! This one was an issue with BPEL I believe. Quite frustrating. Apparently after initializing the service in the following lines: URL url = new URL("http://serviceaddresshere?WSDL"); QName qname = new QName("http://servicelocationaddress","NameOfService"); CorporateEmployeeOnboardingService service = new CorporateEmployeeOnboardingService(url, qname); CorporateEmployeeOnboardingProcess process = service.getICorporateEmployeeOnboardingProcess(); BPEL gets the request with the service WSDL and...

OTRS: error generating Java SEI with wsdl

java,soap,wsdl,otrs

I am posting my solution here for anyone who is interested in creating OTRS tickets from Java. I wish there is more documentation about accessing OTRS from Java. Generating Java stub classes from wsdl is not possible. I cannot find any solution anywhere nor do I hear anything back from...

NuSOAP - Undefined index: namespace error

php,soap,wsdl,soap-client,nusoap

Solved this by replacing NuSOAP with PHP's SOAP library, used this Gist for getting NTLM support: https://gist.github.com/niczak/2003485 I modified to the purposes of interacting with the system I'm getting data from rather than Exchange in that example....

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

java,web-services,wsdl,cxf

Problem solved! First there was an error in the wsdl file. The namespace http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512 was incorrect and had to be replaced by http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702 or http://schemas.xmlsoap.org/ws/2005/07/securitypolicy. As there is a policy defined in the wsdl file, populating the requestContext map is the right thing to do. And finally, in the doQuery(EurlexWebServiceProvider...

How do I change wcf port name and binding?

wcf,soap,wsdl

I found a solution to setting port name. like this: <services> <service name="MyServiceSoap"> <endpoint name="MyServiceSoap" address="" binding="basicHttpBinding" contract="IService" bindingNamespace="MyServiceSoap" bindingName="MyServiceSoap" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> then the wsdl port name will be that I want....