Parameter from header is not filled
-----------------------------------
Key: XFIRE-722
URL: http://jira.codehaus.org/browse/XFIRE-722
Project: XFire
Issue Type: Bug
Affects Versions: 1.2.2
Environment: Java 5.0, Windows XP, JBoss server
Reporter: Jiri Trpkos
Assigned To: Dan Diephouse
Hello, I have this method in MetadataInterface
@WebMethod(operationName = "Login", action = "")
@WebResult(name = "LoginReturn", targetNamespace =
"http://www.informatica.com/PowerCenter")
public String login(
@WebParam(name = "Login", targetNamespace =
"http://www.informatica.com/PowerCenter")
LoginRequest Login,
@WebParam(name = "Context", targetNamespace =
"http://www.informatica.com/PowerCenter", mode = WebParam.Mode.OUT, header =
true)
Holder<SessionHeader> Context)
throws Fault
;
where Holder<SessionHeader> should contain sessionId after calling this method.
The problem is that there is only null.
Part of code
WebServicesHubClient wsh = new WebServicesHubClient();
MetadataInterface MWSProxy =
wsh.getMetadata("http://jtrpkos02:7333/PowerCenter/services/Metadata");
LoginRequest loginReq = new LoginRequest();
Holder<SessionHeader> holder = new Holder<SessionHeader>();
SessionHeader header = new SessionHeader();
holder.value = header;
try {
loginReq.setRepositoryName("REPOSITORY NAME");
loginReq.setUserName("USER");
loginReq.setPassword("PASSWORD");
String loginHandle = MWSProxy.login(loginReq, holder);
System.out.println(holder.value.getSessionId());
this prints only null, but I would expect there sessionId (which is correctly
provided in the message).
What is the problem? How can I fix it?
Regards,
Jirka Trpkos
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email