Axis2 system cannot display transport information error

I am trying to send a SOAP request using client code that uses libraries created using the wsdl2java tool for eclipse, but keep getting this error:

  [ERROR] The system cannot infer the transport information from the Address: http://172.17.4.2:8081/axis2/services/CDMS URL.

This client is a proxy server that sits between the "real" client and the server. I got the url from wsa: in the SOAP message box from the real client and use it to create a connection to the server.

I pretty much lost the ability to search for a possible source of the error, can anyone give a hint? I'm not sure what information I can provide here that might be useful, so just let me know what other error messages or extracts of configuration files I should provide to help you help me :)

Thanks...

UPDATE:

I made several more tests, the request was sent successfully if I rigidly set the URL string to the client, and did not receive it from another message:

ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem("/home/me/axis2-1.6.2/repository", "/home/me/axis2-1.6.2/conf/axis2.xml"); CDMSStub stub = new CDMSStub(cc, "http://172.17.4.2:8081/axis2/services/CDMS"); 

I do not understand why, because the line I put has the same meaning / content as hard-coded ....

+4
source share
2 answers

The error itself indicates that it cannot allow the endpoint to send the message. You need to make sure that your backend service is up and running. Also make sure your proxy server is configured correctly to send a message to the server service. Hope this helps.

+2
source

I don’t know if this will help, but I struggled with this error for several days. If a colleague helped me, and she explained that when I created the java classes from the wsdl file, which by default (using RAD 7.5) was to use JAXB-WS. For independent use, she suggested using Axis. Restored all java classes, fixed some parameters, and life was good.

+1
source

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


All Articles