Dies Koper wrote:
Hello Håkon,
pretty please does help. Did you look at Axis' JUnit tests?
test\wsdl\stubheaders
Do you mean the JUnit tests that WSDL2Java generates with the
-t option? If so, then yes I did look at them, there is no reference
to the header there.
In my limited view of the world the WSDL2Java ought to have generated
stubs where the "Header" object is a parameter to the methods (this
according to the FAQ). This does not happen (it seems).
I checked with a tool I downloaded (Stylus free trial) which seems
to understand where the header goes so I was able to test that the
web-service I try to use works.
I think I'll try something like this:
Header header
= new Header(user,pass,subuser,custid,version);
InfoXML service = new InfoXMLLocator();
InfoXMLSoap port = service.getInfoXMLSoap();
Stub stub = (Stub)port;
stub.setHeader("https://www.creditinform.no/creditinform.standardwebservice.ws2005207/InfoXML","Header",header);
ReportPersonResponseReportPersonResult person
= port.reportPerson("", strSocSecNumber, "", "", "", "", "");
MessageElement[] message = person.get_any();
Does this look like it could work?
Håkon
--
We shall fight on the beaches,
we shall fight on the landing grounds,
we shall fight in the fields and in the streets,
we shall fight in the hills;
we shall never surrender
http://www.getfirefox.com/