Web service timeout call

I am trying to call a web service through a stub. This is a wsdl web service

But I get the following error when called.

  Axisfault
  faultCode: {http://schemas.xmlsoap.org/soap/envelope/β–ΊServer.userException
  faultSubcode: 
  faultString: java.net.SocketTimeoutException: Read timed out
  faultActor: 
  faultNode: 
  faultDetail: 
     {http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: Read timed out
     at org.apache.axis.message.SOAPFaultBuilder.createFault (SOAPFaultBuilder.java:222)
     at org.apache.axis.message.SOAPFaultBuilder.endElement (SOAPFaultBuilder.java:129)
     at org.apache.axis.encoding.DeserializationContext.endElement (DeserializationContext.java:1087)
     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement (AbstractSAXParser.java:633)
     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement (XMLNSDocumentScannerImpl.java:719)
     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDispatcher.dispatch (XMLDocumentFragmentScannerImpl.java:1685)
     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.javahaps68)
     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:834)
     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764)
     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:148)
     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1242)
     at javax.xml.parsers.SAXParser.parse (SAXParser.javahaps75)
     at org.apache.axis.encoding.DeserializationContext.parse (DeserializationContext.java:227)
     at org.apache.axis.SOAPPart.getAsSOAPEnvelope (SOAPPart.java:696)
     at org.apache.axis.Message.getSOAPEnvelope (Message.java:435)
     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke (MustUnderstandChecker.java:62)
     at org.apache.axis.client.AxisClient.invoke (AxisClient.java:206)
     at org.apache.axis.client.Call.invokeEngine (Call.java:2784)
     at org.apache.axis.client.Call.invoke (Call.java:2767)
     at org.apache.axis.client.Call.invoke (Call.java:2443)
     at org.apache.axis.client.Call.invoke (Call.java:2366)
     at org.apache.axis.client.Call.invoke (Call.java:1812)
     at com.vtech.external.implementation.qantas.QantasServices.DistributorPortSoapBindingStub.getAccommodationAvailability (DistributorPortSoapBindingStub.java:1675)
     at com.vtech.external.implementation.tripAdvisor.bizaction.Test.main (Test.java:68)

     {http://xml.apache.org/axis/askethostname:vibpj160
+4
source share
2 answers

how

at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) 

indicates that your request is not being serialized by the web service provider.

Just check the type of request protocol.

+2
source

your web service call has timed out, you need to increase the timeout with the following code:

 ((Stub) [your-port or service]).setTimeout(timeout); 

this code sets the timeout for the web service call.

+1
source

Source: https://habr.com/ru/post/1394600/


All Articles