aspose file tools*
The moose likes Web Services and the fly likes TcpMon in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "TcpMon in Eclipse" Watch "TcpMon in Eclipse" New topic
Author

TcpMon in Eclipse

Suzi Cooper
Ranch Hand

Joined: Jul 23, 2005
Posts: 45
Hi guys,

I am writing a client to call a web-service. I have installed TcpMon as a utility in eclipse to monitor the request/response but i am a little confused in configuring it.

Web service client code is :


THe web-service is invoked through a jsp of my web-app http://localhost:8080/myapp/test.xhtml)

In Eclipse i do the following steps:
1) Windows --> view--> other --> TCP monitor
2) In my TCP monitor ,i add the following param :
Listen Port# = 9090
Target Hostname : flexsimple.garfield
Target Port# : 80

When i invoke the web service, i don't get any message in tcpmon.

What am i missing here?Do i need to change th client side code?

Thanks for the help.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187

Listen Port# = 9090
Target Hostname : flexsimple.garfield
Target Port# : 80


Add 9090 to the URL of your calling service. This is what TCPMON is configured to listen to, based on your configuration.
[ November 14, 2008: Message edited by: James Clark ]
Suzi Cooper
Ranch Hand

Joined: Jul 23, 2005
Posts: 45
Thanks...got that sorted.

Another question though....for my request


I get an error response : Sorry, the user ID you supplied was not recognised

However, if i remove parameter type arguments (xsi:type="xsd:int" xmlns=""), I get a valid response



If i do not set 'addParameter' and 'returnType', i get the same error message. The request looks like this:



The wsdl doc is as follows:
.......
<s:element name="ValidateUser">
<s:complexType>
<s:sequence><s:element minOccurs="1" maxOccurs="1" name="GpassID" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ValidateUserResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ValidateUserResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>

..............
<wsdl peration name="ValidateUser">
<soap peration soapAction="http://tempuri.org/ValidateUser" style="document" />
<wsdl:input><soap:body use="literal" /> </wsdl:input>
<wsdl utput><soap:body use="literal" /> </wsdl utput>
</wsdl peration>

.......

How do i fix my request object?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TcpMon in Eclipse