"loginResponse expected" error when calling JIRA login webservice

praveen Indupuri July 12, 2011

Hi,

We are getting below error when we make call like token = getJiraSoapServiceLocator().getJirasoapserviceV2().login(userName, password); and token is not retrieved.

Exception in thread "main" javax.xml.ws.WebServiceException: Unexpected response element {http://soap.rpc.jira.atlassian.com}loginResponse expected: {http://cmajira.lss.emc.com/rpc/soap/jirasoapservice-v2}loginResponse
at com.sun.xml.internal.ws.client.sei.ResponseBuilder$RpcLit.readResponse(ResponseBuilder.java:587)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103)

Please let us know if you have any solutions .

2 answers

0 votes
Antonio Rodriguez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2012

Fixed. In my WSDL, I replaced the string before "expected" by the string after "expected". In this case, you have to write "http://cmajira.lss.emc.com/rpc/soap/jirasoapservice-v2" instead of "http://soap.rpc.jira.atlassian.com" in the <wsdl:input name="loginRequest"> of the WSDL.

0 votes
Antonio Rodriguez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2012

Hello,

I have the same problem. Have you fix this error? Can you explain what have you done?

Thanks!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events