wsimport and header params for logging

Posted by Milan on Stack Overflow See other posts from Stack Overflow or by Milan
Published on 2010-04-16T09:36:34Z Indexed on 2010/04/16 9:43 UTC
Read the original article Hit count: 528

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about wsimport

Related posts about header