wsimport and header params for logging
- by Milan
I have this situation.
Generating form based on the WSDL.
I made it but I came to the situation when the wsimport tool generates classes with methods with params for header(for authentication) and the params are not just simple types. But some complex. The problem is that I dont know which classes will be generated so I need simple types for the methods.
@WebMethod(operationName = "DNSLookup", action = "http://www.strikeiron.com/DNSLookup")
@WebResult(name = "DNSLookupResult", targetNamespace = "http://www.strikeiron.com")
@RequestWrapper(localName = "DNSLookup", targetNamespace = "http://www.strikeiron.com", className = "invoker.DNSLookup")
@ResponseWrapper(localName = "DNSLookupResponse", targetNamespace = "http://www.strikeiron.com", className = "invoker.DNSLookupResponse")
public SIWsOutputOfDNSInfo dnsLookup(
@WebParam(name = "HostNameOrIPAddress", targetNamespace = "http://www.strikeiron.com")
String hostNameOrIPAddress,
@WebParam(name = "LicenseInfo", targetNamespace = "http://ws.strikeiron.com", header = true, partName = "LicenseInfo")
LicenseInfo licenseInfo,
@WebParam(name = "SubscriptionInfo", targetNamespace = "http://ws.strikeiron.com", header = true, mode = WebParam.Mode.OUT, partName = "SubscriptionInfo")
Holder<SubscriptionInfo> subscriptionInfo);
you can see that LicenseInfo licenseInfo, and Holder subscriptionInfo);?
Is it possible to somehow to specify to have simple types for header params?