HTTP Header in Web Consumer

For questions and postings not covered by the other forums
Rich Cassell
Posts: 77
Joined: Mon Aug 24, 2009 11:22 pm
Location: Nottinghamshire, UK

HTTP Header in Web Consumer

Postby Rich Cassell » Wed Nov 10, 2010 11:04 pm

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

Rich Cassell
Posts: 77
Joined: Mon Aug 24, 2009 11:22 pm
Location: Nottinghamshire, UK

Re: HTTP Header in Web Consumer

Postby Rich Cassell » Wed Nov 10, 2010 11:31 pm

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

Rich Cassell
Posts: 77
Joined: Mon Aug 24, 2009 11:22 pm
Location: Nottinghamshire, UK

Re: HTTP Header in Web Consumer

Postby Rich Cassell » Wed Nov 10, 2010 11:39 pm

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


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests