Author |
Message
|
elvis_gn |
Posted: Thu Mar 02, 2006 4:09 am Post subject: [Solved] WebService Host Sample |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi guys,
I'm trying out the WebService Host sample in the toolkit...i am having a few probs.
1. I am trying to send a HTTP GET message to a HTTPInput Node, from previous posts I understand that GET should work with v6.0. The problem is that my message has a Properties and HeaderDetail but no body(called envelope in the sample).
2. How do i get the NetTool to work ? When i run the *.bat file it tells me that
Quote: |
Windows cannot find 'javaw'....... |
I tried adding it to the environment variables, no use. The only way it dosen't throw an error is, if i run the command from the Java installed folder containing javaw, but then the tool dosen't open
I am sure i'm doing something clumsy.
Regards
Last edited by elvis_gn on Fri Mar 03, 2006 2:36 am; edited 1 time in total |
|
Back to top |
|
 |
Tibor |
Posted: Thu Mar 02, 2006 10:54 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
elvis,
Last time I sent http requests with wget. It is very simple, command-line tool but it can handle both method GET and POST.
http://unxutils.sourceforge.net/
However there are a lot of eclipse plugins for webservice testing.
Tibor |
|
Back to top |
|
 |
wschutz |
Posted: Thu Mar 02, 2006 10:56 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
the current version of nettool requires java 1.5 ... the previous version works with java 1.4 _________________ -wayne |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Mar 03, 2006 2:35 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi guys,
The NetTool issue was with the version of jdk as wschutz pointed out.
The latest version 3.3.1 does not have the HTTP send option, only the tunneling, guess they forgot it
So had to revert back to 1.0.4 which works fine with jdk 1.5.
The sample worked without any issues only that HTTP PUT and GET threw errors, saying not supported, only POST worked.
Regards. |
|
Back to top |
|
 |
wschutz |
Posted: Fri Mar 03, 2006 3:02 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
The latest version 3.3.1 does not have the HTTP send option, only the tunneling, guess they forgot it icon_smile.gif |
Yes, I remember not finding the "send" option either on the latest version .... _________________ -wayne |
|
Back to top |
|
 |
n1ghtrain |
Posted: Mon Aug 07, 2006 9:41 pm Post subject: |
|
|
 Apprentice
Joined: 23 Mar 2006 Posts: 48 Location: Bangalore
|
Hi,
I was trying to run the same sample(Web Service Host)
.. DOwnloaded NetTool 4.6.0 and my JDK is 1.5.0.. NetTool starts normally, when i click on New HTTP client- Nothing goes..
Does anyone have a working version..? |
|
Back to top |
|
 |
mqmatt |
Posted: Tue Aug 08, 2006 1:22 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
|
Back to top |
|
 |
n1ghtrain |
Posted: Tue Aug 08, 2006 8:08 pm Post subject: |
|
|
 Apprentice
Joined: 23 Mar 2006 Posts: 48 Location: Bangalore
|
netTool v1.0.4 is working fine.. its sending the sample request to borker successfully.. Broker is returning error
"URI /samplebrokerwshost. does not map to any message flow in broker"
HTTP/1.1 404 Not Found
Content-Type: text/html;charset=utf-8
Content-Length: 274
Date: Wed, 09 Aug 2006 04:14:04 GMT
Server: Apache-Coyote/1.1
Connection: close
<html><head><title>WebSphere Message Brokers error report</title></head>
<body><h1>HTTP Status 404 - Resource Not Found</h1>
URI /samplebrokerwshost. does not map to any message flow in broker WBRK6_DEFAULT_BROKER<p>
<h3>WebSphere Event Broker 6000</h3></body></html>
HTTPinput node has URL selector field as /samplebrokerwshost
NetTool is sendin it to http://localhost:7081/samplebrokerwshost.
(i have changed broker's HTTPlistener port to 7081.
i'm using v6 of broker and toolkit
!!?? is it necessary to change the URL selector field to full URL.. |
|
Back to top |
|
 |
n1ghtrain |
Posted: Tue Aug 08, 2006 8:23 pm Post subject: |
|
|
 Apprentice
Joined: 23 Mar 2006 Posts: 48 Location: Bangalore
|
Oops..
i found...
My bad..
In nettool's URL field i had put an extra '.'
Its working fine now
Thanks,Regards[/b] |
|
Back to top |
|
 |
SandiSan |
Posted: Wed Aug 09, 2006 11:11 pm Post subject: |
|
|
 Acolyte
Joined: 01 Apr 2006 Posts: 57 Location: Pune/India
|
We can also send Soap Http Request Webservice Message using XML Spy Software.I have tried it and it work fine may be you can have a look at it
you can download the beta ver from the below link
http://www.softlookup.com/display.asp?id=23250 |
|
Back to top |
|
 |
|