You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rohit Karlupia <rk...@in.firstrain.com> on 2002/08/19 16:04:42 UTC

TCP Transport Example

Hi All!

I am having problems getting the TCP Transport 
Example to work. I am using the Axis Beta 3.

I started the samples.transport.tcp.TCPListener 
and used the samples.transport.tcp.GetQuote client
to connect to the listener. 

My argument to the GetQuote is 
" -ltcp://<SERVER_NAME>:<PORT_NO> XXX"

The TCPListener receives the following from the 
socket:
-----------------------------------------------------
513
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope soapenv:encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:soapenv="http://schemas.xmlsoap.org/
soap/envelope/" xmlns:xsd="http://www.w3.org/
2001/XMLSchema" xmlns:xsi="http://www.w3.org/
2001/XMLSchema-instance" xmlns:SOAP-ENC="http:
//schemas.xmlsoap.org/soap/encoding/">
 <soapenv:Body>
  <ns1:getQuote xmlns:ns1="urn:xmltoday-delayed-quotes">
   <symbol xsi:type="xsd:string">XXX</symbol>
  </ns1:getQuote>
 </soapenv:Body>
</soapenv:Envelope>
--------------------------------------------------------

And then it produces the following fault.....
 

---------------------------------------------------------
- Mapping Exception to AxisFault
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.NoService
 faultString: The AXIS engine could not find a target 
service to invoke!  targetService is null
 faultActor: null
 faultDetail:
        stackTrace: AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.NoService
 faultString: The AXIS engine could not find a target service 
to invoke!  targetService is null
 faultActor: null
 faultDetail:

The AXIS engine could not find a target service to invoke!  
targetService is null
  at org.apache.axis.server.AxisServer.invoke(AxisServer.java:303)
-------------------------------------------------------------

I believe that this is happening because the "targetService" member
variable of the message context is not being set. In case of HTTP
this is done by the URLMapper(Handler) using the SERVELETPATHINFO
header, unless specified as a SOAP Action (in which case the 
HTTPTransport sets it)..(I think so).

My Question:
1. How is the "targetService" set when using the TCPListener?? 
2. Has anyone got it running?? 
3. Am I missing something completely...

Any help would be appricited.

Thank you.
Rohit Karlupia






 












NameSpace => JAVA package using WSDL2Java

Posted by Fabien Guinet <fa...@inovatel.com>.
Hi all,

I'm not very accustomized with wsdl's namespace and I'm try to generate
different packages with WSDL2Java from a wsdl file. Most of the time I have
the following error when I want to do so:
java.io.IOException: Emitter failure.  There is an undefined binding
(...SoapBinding) in the WSDL document.
Hint: make sure <port binding=".."> is fully qualified.

I'm sure my understanding of namespace isn't sufficiant to do this but I
would like to know if someone have a "complexe" wsdl file with multiple
namespace mapped to multiple java package (using for example the
NStoPkg.properties file) which is defined for WSDL2Java?

Many thanks for your help,

Fabien

P.S: Here is an extract of what I'm trying to do (cf test.wsdl and
NStoPkg.properties). Do not hesitate to have a look at them in order to
better understand my issue (Of course those files don't work).

P.S2: I'm using axis Beta 3 Release

RE: TCP Transport Example

Posted by Rohit Karlupia <rk...@in.firstrain.com>.
It Works Now!!

The reason it was not working was that I had 
not deployed the service. The TCPListner keeps the 
info about the deployed web services in MEMORY and
does not uses the server-config.wsdd. Thus all the 
info about the deployed services is lost when the 
listener exits and all the services have to be 
redeployed when starting again. Since I had one 
server-config.wsdd in the working directory..I didn't 
checked if the service was deployed or not..

Anyway..I beleive that the README for the TCPTransport
example is outdated. So I am attaching an updated one 
that worked for me.

regards,
Rohit Karlupia



-----Original Message-----
From: Rohit Karlupia [mailto:rkarlupia@in.firstrain.com]
Sent: Monday, August 19, 2002 7:35 PM
To: axis-user@xml.apache.org
Subject: TCP Transport Example


Hi All!

I am having problems getting the TCP Transport 
Example to work. I am using the Axis Beta 3.