Hi exgorth ,
You use the "wsdl2java -exsh true " to generate the parameter for soap
header .
Regards
Jim
exgorth wrote:
The service i'm trying to access accepts the auth info in custom way - client
must specify a soap:header with login:password pair and receive a token,
that must be included as soap:header in all further requests.
The problem that in generated code (wsdl2java) any info about that is not
present.
In XFIRE 1.2.4 the generated method was:
@WebMethod(operationName = "Search", action =
"http://tourml.ru/service/2006-03-14/Search")
@WebResult(name = "TourML", targetNamespace =
"http://tourml.ru/products/2004-04-19")
public TourML search(
@WebParam(name = "request", targetNamespace =
"http://tourml.ru/query-request/2004-07-07")
Request request,
@WebParam(name = "UserSessionId", targetNamespace =
"http://tourml.ru/serviceSecurity/2006-03-14/", header = true)
ru.tourml.servicesecurity._2006_03_14.UserSessionId UserSessionId);
but in CFX-2.0.1:
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@WebMethod(action = "http://tourml.ru/service/2006-03-14/Search",
operationName = "Search")
@WebResult(targetNamespace = "http://tourml.ru/service/2006-03-14", partName
= "parameters", name = "SearchResponse")
public ru.tourml.service._2006_03_14.SearchResponse search(
@WebParam(targetNamespace = "http://tourml.ru/service/2006-03-14",
partName = "parameters", name = "Search")
ru.tourml.service._2006_03_14.Search parameters);
the UserSessionId is not present as argument.
How can i supply the request with the required header? Why it doesn't
present in generated API?