Page 1 of 1

HTTP Header in Web Consumer

Posted: Wed Nov 10, 2010 11:04 pm
by Rich Cassell
Hello,

Early last year i set up a web service consumer within our environment to use the WSDL's provided by the UK HMRC. This service allows us to send requests for new tax code changes which they send down as SOAP messages (as are our requests).

Recently, the HMRC have made changes to their systems and it has stopped the service working correctly, this is a fault affecting a large number of people. As a result, they have requested that we send all SOAP messages and errors that occur during a conversation between the two systems. I have provided this.

They have now additionally asked me to send them the HTTP headers for our messages, and i am struggling to find where i can get this to write out... Has anybody had any experience with doing this?

We have 2 subclasses of JadeWebServiceConsumer and within those have methods to get the SOAPResponse and to invoke the message.


Any help in this will be very appreciated.

Thanks!

Rich

Re: HTTP Header in Web Consumer

Posted: Wed Nov 10, 2010 11:31 pm
by Rich Cassell
Hello again!

I have just found in the "Web Services Tips.pdf" white paper the use of a method called "getLastStatistics". This is a method of JadeWebServiceConsumer and appears to return statistically information about a web service call.

I have tried implementing this method the way it suggests (after a web service call) but it isn't returning any string - just a blank. Any ideas? I am assuming that i have set it up in the wrong place, but it is literally straight after the call to the web service.

Thanks.

Rich

Re: HTTP Header in Web Consumer

Posted: Wed Nov 10, 2010 11:39 pm
by Rich Cassell
Hey again!

After all that - i have fixed this now!

There is a "logStatistics" method also within the JadeWebServiceConsumer which needs to be set to true before the "getLastStatistics" method will return anything :? .


Sorry for the un-needed thread!! :P

Rich