How to make a WSDL file generate Java Code
Hi, I'm quite new in web services. I used the ebay shopping service importing the WSDL file with wsimport, and NetBeans automagically created the Ebay libraries while parsing the WSDL.
Now I'm trying to implement my own soap WS, i'm quite finished but when I try to use it importing the WSDL in a new project, my classes are not imported.
So, where's the trick? How can I include code generationi n my WSDL?
thanks in advance :)
hi,
since the wsdl parsing was complet, for sure the classes are copied (.java), to see them check the following path
YourService\build\generated\wsimport\client\YourService
and the .class file will be in
YourService\build\generated\wsimport\binaries\YourService
Similar Messages
-
How to call a .bat file from java code?
How to call a .bat file from java code? and how can i pass parameters to that .bat file?
Thanks in advancethanks for ur reply
but still i am getting the same error.
I am trying to run a .bat file of together tool, my code looks like below
import java.lang.Runtime;
import java.lang.Process;
import java.io.File;
class SysCall{
public static void main(String args[]){
String cmd="D://Borland//Together6.2//bin//Together.bat -script:com.togethersoft.modules.qa.QA -metrics out:D://MySamples//Metrics// -fmt:html D://Borland//Together6.2//samples//java//CashSales//CashSales.tpr";
//String path="D://Borland//Together6.2//bin//Together.bat ";
Runtime r= Runtime.getRuntime(); //Declare the system call
try{
System.out.println("Before batch is called");
Process p=r.exec(cmd);
System.out.println(" Exit value =" + p.exitValue());
System.out.println("After batch is called");
/*can produce errors which must be caught*/
catch(Exception e) {
e.printStackTrace();
System.out.println (e.toString());
I am getting the below exception
Before batch is called
java.lang.IllegalThreadStateException: process has not exited
at java.lang.Win32Process.exitValue(Native Method)
at SysCall.main(SysCall.java:17)
java.lang.IllegalThreadStateException: process has not exited -
How to make a setup file in java
I have a softwave writting in java . I want to create a setup file.
Please help me . thankshttp://forum.java.sun.com/thread.jsp?forum=54&thread=422117&tstart=0&trange=15
This should answer 99.9% of your questions. In addition you may want to look into how to create Executable Jar files. -
Execute a WSDL file generated through SAP R/3
Hi all,
I want to know how to execute a WSDL file generated after running web service wizard for a RFC in SAP R/3 system?
This WSDL file contains XML schema with input and output parameters with RFC name.
Is there any way that i can execute that WSDL file directly or do i need to use some tool for that?
For ur refrence to create web service, u go to se37, choose any RFC name, display that and then go to utilities-> more utillities-> create web service.
SAP system should be ECC5.0 version.WSDL - is just the definition of the webservice.
Using this you need to create a client proxy to consume the webservice.
client proxy can be generated either using NWDS or using ABAP
check out this weblog
Consuming .NET Webservice in EP5.0
its for consuming .net webervice in EP5 but should give you a pointer on how to go about it.
Regards
Raja -
OpenScript/How to add .jar file to Java Code in relative path
Hi all,
I want to add a .jar file which can be executed separately (like "java -jar A.jar") to my recorded Java Code.I've read this wiki http://everest2.us.oracle.com/wiki/Generic_JAR_Project about how to add a .jar file to "Assets", however, I cannot figure out how to use the .jarr file in Java code,I mean , how to get this .jar file like the method the databank added in "Assets"?
Things I did are as followed:
1.Execute my .jar file in OpenScript Java code with absolute path like this:
String cmd = "C:\Users\A.jar";
Runtime.getRuntime().exec(cmd);
This does work, but must set a absolute path in Java code like "C:\User\A.jar" ,which is not the workaround I want (I need my scripts can be run on other machines).
2.Try to get its current path with following codes:
File directory = new File(".");
String currentPath=directory.getCanonicalPath();
However,though this can get its absolute path (which is the the project path) in Eclipse like "C:\Users\Workspace\testProject", this only gets "C:\OracleATS\openScript" in OpenScript.
I thought to copy my .jar file to the project path , got its current path in java code first,then can know the path of .jar file, but this workaround failed because of the above reason.
I notice that in the "Assets" there are "Databanks","Object Libraries","JAR Files","Scripts". Since the databanks and scripts that added to "Databanks" and "Scripts" can be got or run in Java Code like:
*getDatabank("DatabankName").getNextDatabankRecord(); String data = eval("{{db.DatabankName.data}}");*
*or getScript("ScriptName").run();*
*Is there a method to get and run the jar file added to "Assets\JAR Files" like the above?*
Thank you very much!
Regards,
AngyoungHi DM,
Thanks for your reply!
I've found a workaround,which is calling OpenScript's APIs ,such as this.getScriptPackage().getRepository() and this.getScriptPackage().getWorkspace(),etc to locate the .jar file.
And this workaround can still work even though the script is run on other machine.
Sorry to reply you so late!
Regards,
Angyoung -
How can i use JWSDP1.6 from Ant tool to convert .wsdl file into Java class
Hi All,
i m very new in the development field.plese help me...
i have a .wsdl file and i have to make some modification in the file and return this file with build file used in Ant tool.
means my requirement is to conver the .wsdl file into java class,modify it and convert back to wsdl file.how can i do it using JWSDP1.6 and Ant tool.
thanks in advance...
Vikram Singhlemilanais wrote:
hello!
I have developpe an animation with flash. before give it to othe person in order to use it, i would like to secure it by integrated a security module inside the software.Secure it from what? Being played? Copied? Deleted? Modified?
Because, i am a java developper, i have choose Netbeans 6.1 to secure it.That has to be the most random thing I've read in some time.
do you know how can i do to integrate my animation .swf inside my java class?Java can't play SWF files and Flash can't handle Java classes, so what you're suggesting here doesn't make a lot of sense. -
How to make a jar file from a java file?
how to make a jar file from a java file, is there any one tht can help me thank you;
You can study this.
http://java.sun.com/docs/books/tutorial/jar/basics/index.html -
Does wscompile generate "fault" tag in WSDL file from Java exception class?
I'm trying to generate WSDL files from Java classes. I defined some of my own exception that inherits from "RemoteException", but wscompile doesn't generate the corresponding complex type and "fault" tag. Does anyone know if this is a bug or wscompile doesn't support from Java Exception to fault?
ThanksIt will if the exceptions do not inherit from RemoteException.
-
Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.The Oracle documentation has a good overview of the options available
Generating XML Data from the Database
Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
You can also find some information in XML DB FAQ -
hi all,
here java people have given wsdl file to me, how to do the scenario,
and how to get the wsdl file from the java people.
regards,
priyaHello Priya,
Go to http://<hostname>:50000/wsnavigator or any other UDDI server and search for the web service to be invoked
There you can find the Webservice Definition (WSDL) file.
Check this weblog:
Invoke Webservices using SAPXI
regards
Gangaprasad -
How can I using functions implicit in dll file in java code ?
How can I using functions implicit in dll file in java code ?
I'm developing a program that interfacing with fingerprint hardware.
I have the finger print already, and I have to the SDK that have all functions for managing this fingerprint.
These SDK functions are represented in dll files.
I want to know how can I use these functions in java code .
I looked on this link of sun forums :
http://forum.java.sun.com/thread.jspa?threadID=305171&messageID=1215613
but I don't Understand the meaning of native code.
Thanks for help.please please please please please please please please help me:
After reading a lot of articles, tutorials, and overviews about JNI (Java Native Interface)
I found that these steps
1. Develop the Java code
2. Compile the Java code to a class file
3. Generate the header file
4. Implement the native method
5. Create the shared library or DLL
6. Run the Java program
Is the common steps in JNI development
The most powerful link was
http://java.sun.com/docs/books/jni/html/start.html
and
http://www.netbeans.org/kb/55/beginning-jni-part2.html
and the pdf oh this link
http://www.ibm.com/developerworks/edu/j-dw-javajni-i.html requiring IBM registration to download it.
But I have already the DLL, and want to the stright forward way to use its functions by java code only.
I don not to write any C++ code .
Is this possible???????????????????????????????
The name of these dll is �zkemsdk.dll�
It developed by ZKSOFTWARE company for managing a finger print �NP1500A�of
http://www.napcogulfsecurity.com/finger_print.asp
thanks for help -
How to make a .sda file?
I remember that I read somewhere about how to make a .sda file
from other files. But I cannot recall.
Would you please give some hint? Thanks!Thanks!
I am referring to note 897289. Please have a look, thanks!
Seems that you can rename the generated zip file to sda file. Is that true?
About inolving portal: how to you export some files sitting on your folder?
Please explain more.
Regards! -
How to read and XSD file in java prospective in NWDS
Hi !!
anybody can help me that
how to read and XSD file in java prospective in Netweaver developer Studio
Regards
Abhishek AgrahariI guess you can make it more clear...
-
Hai Sir,
I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
Please help me sir.
Case1) 1) I am using the struts and log4j frameworks and 3rd party jar files with
weblogic8.1.
2) I make the ejbs,webapplications and 3rdparty jar files, ear file the following
dir structure .And i mentioned the Class-path including all jar files in the MANIFEST
OF EAR FILE.
While deploying the ear file it is giving following error.If log4j.jar does not
mention in the Weblogic script file
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
at java.lang.Class.getDeclaredFields(Class.java:1073)
at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
a:982)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
ava:2792)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
java:1478)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
36)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
5)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
tainer(SlaveDeployer.java:2571)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
veDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
er.java:2453)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:820)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
536)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:494)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Please provide the soluation without mentioning classpath in the weblogic script
.How to make the EAR file incliding ejbjar,webapplication and 3rd party jar files.
Thanks & Regards,
ASHOK SAMRAT
[email protected]Refer to the section
Handling Utility classes
http://dev2dev.bea.com/products/wlserver/articles/musser.jsp
thanks,
Deepak
"Ashok Samrat" <[email protected]> wrote:
>
Hai Sir,
I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
Please help me sir.
Case1) 1) I am using the struts and log4j frameworks and 3rd party jar
files with
weblogic8.1.
2) I make the ejbs,webapplications and 3rdparty jar files, ear file
the following
dir structure .And i mentioned the Class-path including all jar files
in the MANIFEST
OF EAR FILE.
While deploying the ear file it is giving following error.If log4j.jar
does not
mention in the Weblogic script file
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
at java.lang.Class.getDeclaredFields(Class.java:1073)
at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
a:982)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
ava:2792)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
java:1478)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
36)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
5)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
tainer(SlaveDeployer.java:2571)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
veDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
er.java:2453)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:820)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
536)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:494)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Please provide the soluation without mentioning classpath in the weblogic
script
How to make the EAR file incliding ejbjar,webapplication and 3rd party
jar files.
Thanks & Regards,
ASHOK SAMRAT
[email protected] -
How to create a Batch file for java application ?
HI,
How to create a Batch file for java application ?
And whats the use of creating batch file ?
Thanks in advance[http://static.springsource.org/spring-batch/]
Assuming you want to develop a batch application rather than actually just create a .bat file ..
Maybe you are looking for
-
To find out the user who ran the report earlier.
Hi, I need to generate a report to list out the programs which are accessed/executed by the user in SAP for a particular month. Could you advise me where this information will be available in SAP?. Thanks, Moderator Message: Frequently Asked Question
-
Establish jdbc connection in WSAD 5.2
I want to establish jdbc connection in WSAD. I have SQL Server 2000 installed in my system, is it required for me to download the sql drivers to establish the connection or will it be in my system as i have installed sql server 2000. can anybody of y
-
Table name for the field PROZT
Hi all , I need the tablename for the field prozt which is used as the Weighting Percentage in the org.assizenmrnt infotype 0001. Plz help me . Thanks in Advance . Arun.
-
Hi, Can anybody tell me, if any attachment (any pdf file) is with the workflow, where exactly this attachment is stored in SAP during runtime? means which memory it will occupy.. Regards, Smit
-
Performance problem with OLE_FLUSH_CALL function module
Hello Everyone, I am facing problem with OLE_FLUSH_CALL function module (execution is taking long time which is going to be dump error). Could you please help me in knowing solution for this problem? Thanking you in advance. Srinivas