|
View:
New views
18 Messages
—
Rating Filter:
Alert me
|
|
|
[JIRA-user] Creating A General Soap Client (Java)Yes i've read the tutorial and i can make the sample java client work. What I'm looking to create is a client that will do the basic soap calls (login, get issue status, add comments etc...) to a JIRA instance specified at runtime. I would appreciate any help or documentation that would allow me to pass in the jira address without recompiling.
Thank you for any info you can provide. -- Post by Jeff Adamson - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 - -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JIRA-User details available at: http://www.atlassian.com/software/jira/mailinglist.jsp ~ Unsubscribing: To unsubscribe yourself from the list, send an email to jira-user-request@... (not jira-user@...) containing the line (in the body of the message): unsubscribe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)You might want to take a look at the CLI I wrote at
http://confluence.atlassian.com/display/JIRAEXT/Jira+CLI even though it is written in python. The mapping for most of the APIs is pretty obvious. ~Matt -- Post by mdoar - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 - -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JIRA-User details available at: http://www.atlassian.com/software/jira/mailinglist.jsp ~ Unsubscribing: To unsubscribe yourself from the list, send an email to jira-user-request@... (not jira-user@...) containing the line (in the body of the message): unsubscribe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)So i've been looking at that cli. I can't actually make use of the client because i don't want to create a dependency upon python and those two libs.
I don't actually know any python. But correct me if i'm wrong, but this cli takes the server address, gets the wsdl and creates a soap client from that, then it makes calls to that client and potentially make a new one within the same jvm. I would like to do something similar using the java soap client. Passing the address to the constructor and using it as usual after that. The java soap client generated from a basic jira wsdl has tons of static methods referencing that url and it looks like it would take a lot to change those static references to instance methods and vars (if that doesn't break the interfaces to begin with). -- Post by Jeff Adamson - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 - -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JIRA-User details available at: http://www.atlassian.com/software/jira/mailinglist.jsp ~ Unsubscribing: To unsubscribe yourself from the list, send an email to jira-user-request@... (not jira-user@...) containing the line (in the body of the message): unsubscribe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Well, python does it dynamically, so there's no precise equivalent of creating the Java stub classes from the wsdl. I considered writing a general-purpose Jira CLI in Java a year ago and recall that once I got the stub classes generated (blow away the target directory and change the project.xml, I think), the structure was pretty much like the python CLI. You can make multiple calls inside the same JVM, but if you want a longer running Jira CLI shell, you would still need to parse the commands and their arguments in a similar way.
Oh hang on, I see your problem: you get wsdl from one site, and generate stub classes for that site, but want to make the CLI jar file general enough to run against other sites? ~Matt -- Post by mdoar - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 - -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JIRA-User details available at: http://www.atlassian.com/software/jira/mailinglist.jsp ~ Unsubscribing: To unsubscribe yourself from the list, send an email to jira-user-request@... (not jira-user@...) containing the line (in the body of the message): unsubscribe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)I've been messing around with the generated .java classes. I think i've figured out how to do what i want, i just need to clean up and narrow down what i've done
-- Post by Jeff Adamson - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 - -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JIRA-User details available at: http://www.atlassian.com/software/jira/mailinglist.jsp ~ Unsubscribing: To unsubscribe yourself from the list, send an email to jira-user-request@... (not jira-user@...) containing the line (in the body of the message): unsubscribe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|
RE: [JIRA-user] Re: Creating A General Soap Client (Java)Sehr geehrte Damen,
sehr geehrte Herren, vom 27.10.2006 bis 06.11.2006 bin ich nicht im Büro. Ihre Mail wird nicht weitergeleitet. In dringenden Angelegenheiten wenden Sie sich bitte an meinen Kollegen Herrn Bernward Musiol (mailto:Bernward.Musiol@...). Ab dem 07.11.2006 bin ich wieder persönlich für Sie da. Mit freundlichen Grüßen Christian Weber - -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JIRA-User details available at: http://www.atlassian.com/software/jira/mailinglist.jsp ~ Unsubscribing: To unsubscribe yourself from the list, send an email to jira-user-request@... (not jira-user@...) containing the line (in the body of the message): unsubscribe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Hello Jeff,
The [i]JiraSoapServiceServiceLocator[/i] has a [i]setJirasoapserviceV2EndpointAddress[/i] method which allows you to set the end point address (of the service). It has to be invoked before calling [i]getJirasoapserviceV2()[/i]. Cheers, Yuen-Chi -- Post by yuenchi.lian - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 - -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JIRA-User details available at: http://www.atlassian.com/software/jira/mailinglist.jsp ~ Unsubscribing: To unsubscribe yourself from the list, send an email to jira-user-request@... (not jira-user@...) containing the line (in the body of the message): unsubscribe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Thanks, i did stuble across that which seems to be working. Just two comments:
1) it took a while to find because the sample client assignes it to a super-type which lacks that method 2) It would have been nice if the locator was documented somewhere. -- Post by Jeff Adamson - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 - -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JIRA-User details available at: http://www.atlassian.com/software/jira/mailinglist.jsp ~ Unsubscribing: To unsubscribe yourself from the list, send an email to jira-user-request@... (not jira-user@...) containing the line (in the body of the message): unsubscribe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Hello,
I had nearly the same problem. Can I use theese classes generated by maven for my own SoapClient in java or do I have to generate own files for my Client? If Yes, what I have to do? I read the Readme file of the Sample JiraSoapClient and how to make a build with maven but I don't understand it completly. Can anybody help me?^^ That's my first java application which is not an practice at school or something :) Cheers Jan -- Post by Jan Zimmermann - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... http://lists2.atlassian.com/mailman/listinfo/jira-user |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Hello Jan,
Yes, you can use maven to build the SOAP example as JAR then uses it in your application. May I know at which step you failed? Cheers, Yuen-Chi -- Post by yuenchi.lian - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... http://lists2.atlassian.com/mailman/listinfo/jira-user |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Hello,
I don't which files for maven i have to write by myself to make a build. But isn't there a way to make a soap application without maven? But if I make it without maven. How can define the path of the Jira source? Kind regards Jan Zimmermann -- Post by Jan Zimmermann - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... http://lists2.atlassian.com/mailman/listinfo/jira-user |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Hello Jan,
Yes, you can build the application without relying on Maven, but it doesn't seem to be easier and efficient on the provided SOAP example: * http://confluence.atlassian.com/display/JIRA/Creating+a+SOAP+Client > How can define the path of the Jira source? Are you talking about putting JIRA jar/classes into the classpath. Cheers, Yuen-Chi -- Post by yuenchi.lian - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... http://lists.atlassian.com/mailman/listinfo/jira-user |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Hello Jan,
Please take a look at this basic Apache Axis user guide: * http://ws.apache.org/axis/java/user-guide.html Cheers, Yuen-Chi Lian -- Post by yuenchi.lian - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... http://lists.atlassian.com/mailman/listinfo/jira-user |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Hi Jeff-
You are correct that the method mentioned above is only available on the concrete class JiraSoapServiceServiceLocator, and on the interface implementation JiraSoapServiceService which is used by the sample client. Sounds like you have found a solution that works for you. Here is what I did: 1. Removed the line JiraSoapServiceService jiraSoapServiceGetter = new JiraSoapServiceServiceLocator(); and replaced it with JiraSoapServiceServiceLocator jiraSoapServiceGetter = new JiraSoapServiceServiceLocator(); 2. Followed by the following command to change the endpoint: jiraSoapServiceGetter.setEndpointAddress("JirasoapserviceV2","http://DESIRED_URL/rpc/soap/jirasoapservice-v2"); And as was mentioned before, this has to come before the call to getJirasoapserviceV2(); I tried this out with all the SOAPClient.java tests included (there are a large chunk commented out by default). It worked fine pointing to two different instances. I also noticed something else in JiraSoapServiceServiceLocator.java. The private java.lang.String JirasoapserviceV2_address = "....." does not appear to always be updated after maven clean, maven fetch-wsdl and maven. I was having trouble connecting to one instance for the first time. It turned out that my config and wsdl was fine, but this parameter was still not updating properly all the time. Could be a bug in axis....or possibly an issue where hostnames vs IPs vs DNS resolution cause a conflict. -- Post by jeffbrooks - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... http://lists.atlassian.com/mailman/listinfo/jira-user |
|
|
[JIRA-user] Re: Creating A General Soap Client (Java)Hi Jeff,
Internally, the stubs are created by the WSDL2Java emitter: * http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL Perhaps you should try removing all the stubs before regenerating them. Cheers, Yuen-Chi Lian -- Post by yuenchi.lian - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... http://lists.atlassian.com/mailman/listinfo/jira-user |
|
|
Re: Creating A General Soap Client (Java)Hi! I have an applications that creates worklogs in jira. At the moment it doesn't`t use jira soap api, but I need to implement it to the project. I have downloaded example source and build it with maven v 1.1. But what should I do in my project to have there JiraSoapServiceServiceLocator, JiraSoapServiceService, JirasoapserviceV2SoapBindingStub and other classes? After copy-pasting sources of this classes and also some .jar files into my project I got an error:
>Failure trying to get the Call object; nested exception is: > java.lang.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException error occurs in method createCall() that is in class JirasoapserviceV2SoapBindingStub, when I am trying to login(). What could be reason of that and where can I find opensymphony jar or somethig, that could help me. I am not sure if I do everything write. Here is code: >final JiraSoapServiceServiceLocator jiraSoapServiceGetter = > new JiraSoapServiceServiceLocator(); > > try { > jiraSoapServiceGetter.setEndpointAddress("JirasoapserviceV2", > "myJiraHere/rpc/soap/jirasoapservice-v2"); > > final JiraSoapService jiraSoapService = jiraSoapServiceGetter > .getJirasoapserviceV2(); > final String token = jiraSoapService.login( > Davinci.decrypt(jiraCredentials.getUsername()), > Davinci.decrypt(jiraCredentials.getPassword())); Is it OK that JirasoapserviceV2SoapBindingStub is full of such things like > new javax.xml.namespace.QName("http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", "ArrayOf_xsd_string"); Thank you for any replay! Regards, Alexander -- Post by ozzy - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... To unsubscribe or change your options visit this page: http://lists.atlassian.com/mailman/listinfo/jira-user |
|
|
Re: Creating A General Soap Client (Java)Why after genereting jar with maven I don`t have class IssueServiceImpl in this jar? I only have IssueServiceImpl$RemoteWorklogImpl.class and my aplication throws an error:
>org.xml.sax.SAXException: Unable to create JavaBean of type .com.atlassian.jira.rpc.soap.service.IssueServiceImpl$Remote.WorklogImpl. Missing default constructor? Probably I have generated files wrongly? I`ve removed imports (which will be referencing the old WSDL-derived classes (as that was told in README file)) in SOAPClient.java, but what should I write instead? Please, give any advise, I am totally lost. -- Post by ozzy - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... To unsubscribe or change your options visit this page: http://lists.atlassian.com/mailman/listinfo/jira-user |
|
|
Re: Creating A General Soap Client (Java)Hi Alexander,
I have the same problem. When I execute the application from eclipse I call this method: updateWorklogAndAutoAdjustRemainingEstimate(token,remoteWorklog) And I get the following error: org.xml.sax.SAXException: Unable to create JavaBean of type com.atlassian.jira.rpc.soap.service.IssueServiceImpl$RemoteWorklogImpl. Missing default constructor? Error was: java.lang.InstantiationException: com.atlassian.jira.rpc.soap.service.IssueServiceImpl$RemoteWorklogImpl. at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.dolby.jira.net.soap.jira.JirasoapserviceV2SoapBindingStub.updateWorklogAndAutoAdjustRemainingEstimate(JirasoapserviceV2SoapBindingStub.java:5927) I use jira 3.12.2. How did you resolve the problem? Thanks a lot, Javier -- Post by jirabcn - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=13843 _______________________________________________ Jira-user mailing list Jira-user@... To unsubscribe or change your options visit this page: http://lists.atlassian.com/mailman/listinfo/jira-user |
| Free embeddable forum powered by Nabble | Forum Help |