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

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.

Related

Scala get content from REST API with header

How do I get content from a REST API using Scala and passing a header?
There is a similar question to this on StackOverflow, but it is quite old, and the answers refer to libraries that have been discontinued.
There are tons of options, to name a few:
https://github.com/softwaremill/sttp
https://doc.akka.io/docs/akka-http/current/client-side/index.html
https://github.com/dispatch/reboot (this is the first answer in the old question)
What to use is dependent on your use case and also preferred style.

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 Can I Make Spring Rest Docs Look Like Swagger?

I have started to use Spring Rest Docs for a project but other APIs in the company are still using Swagger/OpenAPI which has led to a style inconsistency.
The usual Swagger view (e.g. https://petstore.swagger.io) has collapsible sections for each url and CSS colouring GET/POST/PUT/DELETE etc.
I should be able to customise the asciidoctor with a line in the adoc
:stylesheet: custom.css
Is there an existing template for Spring Rest Docs that gives an output similar to what the default Swagger output looks like?
Can you add javascript to the asciidoctor output to animate some of the documentation like collapsible url sections?
This is really any Asciidoctor question so you might want to tag it as such.
Is there an existing template for Spring Rest Docs that gives an output similar to what the default Swagger output looks like?
Not that I am aware of.
Can you add javascript to the asciidoctor output to animate some of the documentation like collapsible url sections?
Yes, you can add JavaScript to the HTML that's generated by Asciidoctor. One approach is described in the answers to this question. Another approach is to use a DocinfoProcessor to inject the JavaScript into the <head> of the generated HTML. One advantage of the latter approach is that it allows the functionality to be packaged as a dependency and reused. You can see an example of a fairly simple DocinfoProcessor here.
Take a look at this Github project: https://github.com/ePages-de/restdocs-api-spec
A few teams at my company are using this to generate OpenAPI documentation from our Sprint Rest Doc tests.

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.

Can I download a WSDL document with just SOAP 1.1?

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.