I'm a newbie on AXIS. I installed axis-beta2 and tried the samples
bundled with it. My trouble is, could'nt run transport.tcp sample
using tcp protocol to communicate with sample.transport.tcp.TCPListener
but OK with default protocol (http).
In my env, I tried this sample as below:
1. Start SimpleAxisServer at samples/stock dir using port 8080.
2. deploy Stock service at samples/stock dir.
3. at transport/tcp/, deploy deploy.wsdd with transport.tcp.AdminClient
4. at transport/tcp/, start the tcplistener
java samples.transport.tcp.TCPListener -p8081
5. at transport/tcp/, run client
java samples.transport.tcp.GetQuote -ltcp://localhost:8081/ XXX
But, I encountered a fail. TCPSender send correct(?) request
but could not get response. TCPListener say target service's name
is null but TCPSender seems to have the target name that is
"urn:xmltoday-delayed-quotes"
.
I want to know wether my test step from 1 to 5 is correct
and what's wrong with this sample.
!!!!!! At window of running GetQuote, I got message as below:
*************************** TCPSender says------------------------
Enter: TCPSender::invoke
Created an insecure HTTP connection
XML sent:
---------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encod
ing/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http
://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
ce" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:getQuote xmlns:ns1="urn:xmltoday-delayed-quotes">
<symbol xsi:type="xsd:string">XXX</symbol>
</ns1:getQuote>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
No Content-Length
XML received:
-----------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xm
lns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XML
Schema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faul
tcode>
<faultstring>The AXIS engine could not find a target service to invoke!
targ
etService is null</faultstring>
<detail>
<ns2:stackTrace xmlns:ns2="http://xml.apache.org/axis/">The AXIS engine
coul
d not find a target service to invoke! targetService is null
at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:282)
at
samples.transport.tcp.TCPListener$SocketHandler.run(TCPListener.java:
258)
at java.lang.Thread.run(Thread.java:536)
</ns2:stackTrace>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Exit: TCPSender::invoke
!!!!!!!At the window where the TCPListener is running, I got log from TCP
************************* TCPListener says------------------------
TCPListener received new connection:
Socket[addr=/myhostip,port=1318,localpor
t=8081]
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xm
lns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XML
Schema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faul
tcode>
<faultstring>The AXIS engine could not find a target service to invoke!
targ
etService is null</faultstring>
<detail>
<ns2:stackTrace xmlns:ns2="http://xml.apache.org/axis/">The AXIS engine
coul
d not find a target service to invoke! targetService is null
at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:282)
at
samples.transport.tcp.TCPListener$SocketHandler.run(TCPListener.java:
258)
at java.lang.Thread.run(Thread.java:536)
</ns2:stackTrace>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
----------------------------------------------------------------