I have a java file (test.java) in my ide and in it the code below to call an external web service, but when debugging, it gets to the call.invoke i get the error (405) Method not allowed
Am I missing soemthing?
Thanks for any help
My code
String endpoint = "http://www.xmethods.net/sd/2001/TemperatureService.wsdl"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( endpoint ); call.setOperationName("getTemp"); Object [] arguments = new Object[1]; arguments[0] = "90210"; String result = (String) call.invoke(arguments); System.out.println(result );
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
1
posted
0
I would certainly use TCPMON or a similar utility to find out the actual contents of the request as a first step. Bill
dale con
Ranch Hand
Joined: Apr 15, 2005
Posts: 93
posted
0
How do i set TCPMon up to see the actvity?
Normally, when testing my own web services i telll it to listen to port number x, but this is a external web service so i'm not sure how to set it up