(301)Moved Permanently

187 views
Skip to first unread message

Ramesh Devaraj

unread,
Jan 14, 2021, 4:16:22 AM1/14/21
to A gathering place for the Open Rail Data community
Hi All,

I am using http://ojp.nationalrail.co.uk/webservices/jpdlr.wsdl to create webservice client.

when i test the client i am getting the follwing error

AxisFault
 faultSubcode: 
 faultString: (301)Moved Permanently
 faultActor: 
 faultNode: 
 faultDetail: 
{}:return code:  301
<html>
<head><title>301 Moved Permanently</title></head>

Any Hints  how to solve this promblem ? 

Kind Regards
Ramesh 

Pieter Colpaert

unread,
Jan 14, 2021, 4:45:27 AM1/14/21
to openrail...@googlegroups.com

Hi Ramesh,

Axis appears to have no support for redirects (https://issues.apache.org/jira/browse/AXIS-1218 - which I find terribly lame and lazy ;-) ) I guess you can just manually check which URL it is moved permanently to and update your code with that URL instead. Checking with curl, this is the new URL:

$ curl -I  http://ojp.nationalrail.co.uk/webservices/jpdlr.wsdl | grep Location

https://ojp.nationalrail.co.uk:443/webservices/jpdlr.wsdl

Kind regards,

Pieter

--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/614bb684-c5b6-4a95-829b-cb9d08c7e81cn%40googlegroups.com.
-- 
+32486747122

Ramesh Devaraj

unread,
Jan 14, 2021, 5:12:27 AM1/14/21
to A gathering place for the Open Rail Data community

Hi Pieter,

Thanks a lot . now error  "(301)Moved Permanently" is gone, but now i get an another E

I have changed the URL, but now get the following error


- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
 faultSubcode: 
 faultString: 
 faultActor: 
 faultNode: 
 faultDetail: 
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.lang.Class.newInstance(Class.java:584)
at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
at com.thalesgroup.www.ojp.jpservices.RealtimeJourneyPlanResponse.getDeserializer(RealtimeJourneyPlanResponse.java:262)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:255)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)

Any Hints  how to solve this promblem ?   

Kind Regards
Ramesh
Reply all
Reply to author
Forward
0 new messages