[ERROR] Could not retrieve the last modification timestamp for the URI [https://somehost/some/service?wsdl] from the HTTP URL connection. The [Last-Modified] header was probably not set correctly.

See original GitHub issue

I have a WebService/WSDL provided by some 3rd party company. However they do not return the Last-Modified header. Therefore my attempt to generate java code fails. Is there any reason to do such strict validation? Technically it makes this plugin useless in my case. I had a flick through code and plugin’s config params and cannot find any way to disable validation.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
jcatinocommented, Aug 24, 2019

My bet. Thanks for a prompt reply. Indeed the problem is with the WSDL itself and I have to tweak a local copy to make it JAXB friendly anyway. I was somehow misled by the ERROR message but the plugin works perfectly fine!

how you make JAXB friendly copy, I am facing the same issue and unable to resolve it.

I have the same problem. Did you solve it?

@Marina879 I solved the problem using the 0.11.0 version of the plugin :

		<plugin>
		    <groupId>org.jvnet.jaxb2.maven2</groupId>
		    <artifactId>maven-jaxb2-plugin</artifactId>
		    <version>0.11.0</version>
		    <executions>
		        <execution>
		            <goals>
		                <goal>generate</goal>
		            </goals>
		        </execution>
		    </executions>
		    <configuration>
		        <schemaLanguage>WSDL</schemaLanguage>
		        <generatePackage>AccPaymentGateway.wsdl</generatePackage>
		        <schemas>
		            <schema>
		            	<url>(your schema URL here)</url>
		            </schema>
		        </schemas>
		    </configuration>
		</plugin>
1reaction
qq253498229commented, Jan 8, 2020

@jcatino That solved the problem for me too. On 0.14.0 version, I found it was success but show error log .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble connecting to SOAP service via Java and IntelliJ
[ERROR] Could not retrieve the last modification timestamp for the URI [myWsdl] from the HTTP URL connection. The [Last-Modified] header was ...
Read more >
Last-Modified - HTTP - MDN Web Docs - Mozilla
Last-Modified. The Last-Modified response HTTP header contains a date and time when the origin server believes the resource was last modified.
Read more >
Last Modified date of a remote JSP file - URGENT — oracle-tech
Hi All, I am getting the last Modified Date for all types (.html, ... Is it the case that JSP file is not...
Read more >
HttpURLConnection | J2ObjC - Google Developers
The primary property of a request is its URI. Request headers may also include metadata such as credentials, preferred content types, and session...
Read more >
java.net.URLConnection.getLastModified java code examples
Retrieve the last modified date/time of a URL. ... getLastModified(); } finally { //An InputStream is created even if it's not accessed, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found