guru' s help ! wsdl2java doesn't generate wsdl file in the MIME Binding Schema
guru' s help ! wsdl2java doesn't generate wsdl file in the MIME Binding Schema (http://www.w3.org/TR/wsdl.html#A4.4 ) I wann't to get wsdl in the format according to the shema: http://schemas.xmlsoap.org/wsdl/mime/ for example axis/samples/swa/ has the following format file swa.wsdl: ... here is the binding part: ... binding name=swaBinding type=swa:swaPort soap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ operation name=swaSend soap:operation soapAction=swaSend/ input mime:multipartRelated mime:part soap:body use=literal parts=applicationName/ /mime:part mime:part mime:content part=content type=multipart/mixed/ /mime:part /mime:multipartRelated /input output soap:body use=literal/ /output /operation /binding ... but when i execute java2wsdl tool on my code: ... public interface Storage extends java.rmi.Remote { public storage.core.axis.Product getProduct(java.lang.String in0) throws java.rmi.RemoteException; public storage.core.axis.Product[] getProducts() throws java.rmi.RemoteException; public java.lang.String getImage(java.lang.String in0, javax.mail.internet.MimeMultipart in1) throws java.rmi.RemoteException; public javax.mail.internet.MimeMultipart getImage2(java.lang.String in0, float[] in1) throws java.rmi.RemoteException;} ... I got following wsdl without following http://schemas.xmlsoap.org/wsdl/mime/shema ... wsdl:message name=getImageRequest wsdl:part name=in0 type=soapenc:string/ wsdl:part name=in1 type=apachesoap:Multipart/ /wsdl:message ... wsdl:binding name=StorageServiceSoapBinding type=impl:Storage wsdl:operation name=getImage wsdlsoap:operation soapAction=/ wsdl:input name=getImageRequest wsdlsoap:body use=encoded encodingStyle= http://schemas.xmlsoap.org/soap/encoding/ namespace=urn:storageProduct/ /wsdl:input wsdl:output name=getImageResponse wsdlsoap:body use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ namespace=urn:storageProduct/ /wsdl:output /wsdl:operation /wsdl:binding I wan't to axis java2wsdl tool to do it . or some another tool? I mean I want mime:multipartRelated tag to be generated. please help me to do it. thank you .
Re: log4j warnings
yes, you can put to the directory from which you run your script log4j.properties file. it is placed: axis.home/lib/log4j.properties On 4/22/06, Jan Krumsiek [EMAIL PROTECTED] wrote: Your web service would still run. This is just a warning. if you bring mail.jar and activation.jar to the classpath you should not see this. how ever it would be required only if you want support for attachment.Okay but is there a way to get rid of this warning? I would like to have aclean stderr for my program. Regards,Jan
Unable to find a javac compiler; when opening URL: http://localhost:8080/axis/happyaxis.jsp
OS: Windows 2003 Server when opening URL: http://localhost:8080/axis/happyaxis.jsp I get Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapte at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:969) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320) but JAVA_HOME=C:\j2sdk1.4.2_04 CLASSPATH=C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib can anybody please help me what is going on ?
Re: Unable to find a javac compiler; when opening URL: http://localhost:8080/axis/happyaxis.jsp
Thank you, Chris. really CLASSPATH should not be set. I am the one person using my PC. I find out problem it occur because shortcut to tomcat refered to other java.exe that JAVA_HOME watched. when I ran tomcat by startup.bat all goes Ok. On 4/17/06, Chris Smith [EMAIL PROTECTED] wrote: Alexandr Khlystov wrote: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK but JAVA_HOME=C:\j2sdk1.4.2_04 CLASSPATH=C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib Those environment variables are set to those values in what context? The one you use to start Tomcat? Or just in some command shell somewhere? (Incidentally, you do not need to put jre/lib/rt.jar in the CLASSPATH. In fact, you probably shouldn't set a CLASSPATH at all.) -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation
wishing to http://ws.apache.org/axis/java/user-guide.html
Good day.I like this article it is written is short and informative manner, Iwant to tell you about one problem which I had during creating myhello world axis application. I've spend about 4 hours on resolving it, so I think it would beuseful for other people to know about it from begining of theacquaintance with Apache Axis.This problem is a permanent Exception when trying to deploy application to the Axis. After resolving it I thought that I shouldwrite to you because, with some sense you cause it - I mean...\axis-1_2_1\samples should not be include to the...\axis-1_2_1\webapps\axis\WEB-INF\classes\ by default because when coping folder ...\axis-1_2_1\webapps\axis to the tomcat webappsfolder. all samples classes appear there by default , and then allsamples works fine but my hello world applicaion doesn't work even ifis the same as samples, just because I should manualy put it to the axis webapp to tomcat, but I didn't find any info about it. anddeployment doesn't said to me that I've done someting wrong.Here is more detailed info about my problem:applicaion was build with JAVA2WSDL and then WSDL2JAVA tools, deploying command: java -cp .;%CLASSPATH% org.apache.axis.client.AdminClient -dddhello/deploy.wsddafter executing script I saw that all is Ok, but realy on th ApacheTomcat 4.1 logI saw:...- Exception: java.lang.ClassNotFoundException: simple.SimpleServiceSoapBindingImpl at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1443) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1289)...And at the URL http://localhost:8080/axis/servlet/AxisServlet I saw:--And now... Some ServicesAXIS errorSorry, something seems to have gone wrong... here are the details:Fault - Could not find class for the service named: simple.SimpleServiceSoapBindingImplHint: you may need to copy your class files/tree into the rightlocation (which depends on the servlet system you are using).; nestedexception is:java.lang.ClassNotFoundException : simple.SimpleServiceSoapBindingImplAxisFaultfaultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.generalExceptionfaultSubcode:faultString: Could not find class for the service named:simple.SimpleServiceSoapBindingImplHint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nestedexception is:java.lang.ClassNotFoundException: simple.SimpleServiceSoapBindingImplfaultActor:faultNode:faultDetail:{ http://xml.apache.org/axis/}hostname:cjiohobaji--also with my another example ( whic sends not primitive at serviceparameters but new Class )at the URL http://localhost:8080/axis/servlet/AxisServlet I saw:I saw that my sevice isn't deployed but deployment script tells that all is ok. And at Apache Tomact logs I saw very strange Exception...- Unable to deploy typemapping: {urn:helloProduct}Productjava.lang.ClassNotFoundException: hello.Product at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1443) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)...And I cann't understand what is wrong about 4 hours.Thank you for your attention.