Can I download a WSDL document with just SOAP 1.1? - soap

I'm trying to import a WSDL document that only supports SOAP 1.1 (Salesforce.com, WSDL to APEX)
However, the WSDL at the endpoint contains definitions for SOAP 1.1 and 1.2.
Is it possible to pass an argument to the .asmx service to return only the 1.1 specifications or do I need to manually remove the 1.2 references myself?

Often it's easy enough to strip down the WSDL to just keep the Soap 1.1 bindings. If you open it up in a text editor you'll see lots sections are doubled up, one of each will have soap11 and the other soap12.
Delete all the soap12 parts and you should be good to go. If possible, post the contents here (if they're not too long or private) and I might be able to help you cut it down.

Related

How call rest api with file in PowerBuilder

I works on PowerBuilder application and I need develop solution which call REST Apis
This Apis need several parameters and one file, with post method.
I do not found any sample of this.
Can you help me?
Don't know which version of PowerBuilder you are using. PowerBuilder 2017 R3 has an HTTPClient object as well as a RESTClient object and it supports Base64 encoding (what you would use to turn binary data into JSON compatible). There are numerous code examples on the Appeon Website so rather than copy n' paste them all here suggest you look through those various examples and find one that meets your needs: https://community.appeon.com/index.php/codeexchange/powerbuilder?start=120

How to validate WSDL contract break?

I have a notion of what breaks a WSDL contract or not (What are considered non-breaking or backwards-compatible changes to a WSDL contract?) but every time we make a change to some of our WSDLs we need to prove to other teams whether that change broke the contract or not. As we do not want to build a whole application as a client to our services, we would like to use some simpler tool like soapUI for that purpose.
I have looked into the soapUI assertions and on the internet but still have not found a clue.
Can anybody help me?
Thanks and regards,
You can create a xml scheme or dtd of your wsdl contract, which you can then use to easily validate the structure of your wsdl xml.
Look at WSDL Diff Command Line Tool. This tool generates HTML report based on two WSDL files of your service (original and modified). In the report you can see all the breaking changes introduced in the modified contract.

dealing with itextsharp XMLWorkerHelper.ParseXHTML strict behavior

While trying to use XMLWorkerHelper.GetInstance().ParseXHTML() i find that it is really strict. Any wrong order of tags or unclosed tags will cause it to throw exception.
I am converting HTML that I have no control over.
Are there any flags to make it less strict? An input callback interface to handle funny markup? Anything in the itextsharp.tools.xml.html? Or an entirely new library compatible with itextsharp.text.IElement?
The name of the class and that method pretty much sums it up - you can't. The entire pipeline is based on the assumption that a valid XML document will be passed in, everything else will throw an exception. You can customize the pipeline and add your own handlers for things like link resolution, custom CSS properties and new HTML tags, but the core document processor still needs valid HTML.
I would recommend looking into running your HTML through a library that can convert it to XHTML.
EDIT
Also check out wkhtmltopdf. It uses webkit to render HTML and does (apparently) a pretty good job.
How to use wkhtmltopdf.exe in ASP.net
wkhtmltopdf.exe System.Security.SecurityException on cloud web server. How can i override server security policy
C# html to pdf converter using wkhtmltopdf or any other free tools

Dojo Restful server access

How to implement restful access from Dojo client to java server running in tomcat?
I need to make restful request to server and get data (json or xml format) and update the grid. How to do it?
I read the following posts, but i couldn't understand anything.
http://www.sitepen.com/blog/2008/06/13/restful-json-dojo-data/
http://www.sitepen.com/blog/2008/11/21/effective-use-of-jsonreststore-referencing-lazy-loading-and-more/
Can anyone give me complete source code and the explanation ?
Since I am new to Dojo I feel hard to do this. I don't want web services to be included.
For the REST part, you can use the Wizard of Netbeans (the tutorial is on Glassfish, but I don't see any reason why this should not work on Tomcat as well). See here the tutorial:
http://netbeans.org/kb/docs/websvc/rest.html .
For the dojo part, I have posted a complete example (which integrates perfectly with the REST implementation provided by Netbeans) here:
Dojo grid nested json
EDITED
In the Netbeans' tutorial there is a link for Tomcat users.

How to convert an RPC/encoded style WSDL into document/literal

I need to generate a new WSDL file in the document/literal style based on an old RPC/encoded one. I've viewed the other WSDL questions here - and read http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/. This suggests that the document/literal WSDL should have an additional part - but my old RPC/encoded document has such a part (or more precisely ) as well. Does that mean that I only need to change the bindings and I am done?
This technical article may help you:
Converting RPC/literal to Document/literal
If you are using PHP, you can use the Zend framework's Zend_Soap_AutoDiscover class. It has options to generate different WSDL styles and uses. See here: http://www.phpriot.com/manual/zf/zend.soap.autodiscovery.wsdlstyles and here: http://www.phpriot.com/articles/zend-soap/6
Use CWSDLGeneratorDocument.php for generate WSDL file in DOCUMENT/LITERAl style and use standart library JAX-WS in java 1.7.
It's simply.