I have a WSDL file (the web service is written by .NET), and I can use my tool to generate Java web service proxy classes and codes in IntelliJ IDEA 7.0.4. the web service has a soap request header, but I do not see any property or method in the automatically generated Java proxy classes and codes to set the request header. (but when I use Visual Studio 2008 to create proxy classes for C #, the object is created in the web service proxy class as a header, so I can just populate it)
what should i do in java?
, IntelliJ -. , AXIS?
, CXF, , - , SoapInterceptor, Interceptor.
public void handleMessage(SoapMessage message) throws Fault { message.getHeaders().add(QName.valueOf("foo"), "bar"); }
, , , IDE.
- wsimport, jdk.
http://download.oracle.com/javase/6/docs/technotes/tools/share/wsimport.html
wsdl.