it is not working
feda alshahwan wrote:I mean by URI or give me any other way for passing files written in XML to web service
I would like to implement a web service that reads two files one in xml and other in xslt and do the transformation then output a third transformed file How can I do that ? My problem is how to pass files and output it?
What is the method required to pass an xml file and xslt then the output will be xhtml
feda alshahwan wrote:but I have not much information about command line what are the required commands
I am familiar with netbeans or eclipse
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Welcome>java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
C:\Documents and Settings\Welcome>set java_home
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_16\bin
C:\Documents and Settings\Welcome>set path
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\My
SQL\MySQL Server 5.0\bin;c:\program files\java\jdk1.5.0_16\bin;.
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
C:\Documents and Settings\Welcome>set classpath
CLASSPATH=.;
feda alshahwan wrote:What is the syntax of wsgen if the class files are in C:\Documents and Settings\Welcome\workspace\transform\src\com\coderanch\jaxws\passxml\provider and DomUtil is in C:\Documents and Settings\Welcome\workspace\transform\src\com\coderanch\jaxws\passxml
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Welcome>cd C:\Documents and Settings\Welcome\workspace
\transform
C:\Documents and Settings\Welcome\workspace\transform>javac -d . src\com\coderan
ch\jaxws\passxml\DomUtil.java
C:\Documents and Settings\Welcome\workspace\transform>javac -d . src\com\coderan
ch\jaxws\passxml\provider\Xslt2XmlImpl.java
C:\Documents and Settings\Welcome\workspace\transform>javac -d . src\com\coderan
ch\jaxws\passxml\provider\mail.java
C:\Documents and Settings\Welcome\workspace\transform>wsgen -cp . -s src com.cod
eranch.jaxws.passxml.provider.Xslt2XmlImpl
C:\Documents and Settings\Welcome\workspace\transform>java com.coderanch.jaxws.p
assxml.provider.Main
feda alshahwan wrote:I followed up the perfecto detailed steps but I got stuck when trying to run main the cursor was blinking and nothing came out on the screen
feda alshahwan wrote:the cursor was blinking and nothing came out on the screen
create C:\Documents and Settings\Welcome\workspace\transform\src\com\coderanch\jaxws\passxml\consumer\Xslt2XmlSoapClient.java
Compile the consumer:
cd "C:\Documents and Settings\Welcome\workspace\transform"
javac -d . src\com\coderanch\jaxws\passxml\consumer\Xslt2XmlSoapClient.java
javac will create the following class files:
C:\Documents and Settings\Welcome\workspace\transform\com\coderanch\jaxws\passxml\consumer\Client.class
C:\Documents and Settings\Welcome\workspace\transform\com\coderanch\jaxws\passxml\consumer\Xslt2XmlSoapClient..class
Now run the consumer with files that are stored under "C:\Documents and Settings\Welcome\workspace\transform"
cd "C:\Documents and Settings\Welcome\workspace\transform"
java -cp . com.coderanch.jaxws.passxml.consumer.Xslt2XmlSoapClient cdcatalog.xml cdcatalog.xsl
C:\Documents and Settings\Welcome\workspace\transform>java -cp . com.coderanch.j
axws.passxml.consumer.Xslt2XmlSoapClient xmlFile.xml xsltFile.xsl
[Fatal Error] xsltFile.xsl:8:6: The processing instruction target matching "[xX]
[mM][lL]" is not allowed.
com.coderanch.jaxws.passxml.DomUtil$DomUtilException:
Error with file: xsltFile.xsl** Parsing error, line 8, uri file:/C:/Documents%20
and%20Settings/Welcome/workspace/transform/xsltFile.xsl
The processing instruction target matching "[xX][mM][lL]" is not allowed.
at com.coderanch.jaxws.passxml.DomUtil.readDocumentFile(DomUtil.java:66)
at com.coderanch.jaxws.passxml.consumer.Client.transform(Xslt2XmlSoapCli
ent.java:85)
at com.coderanch.jaxws.passxml.consumer.Xslt2XmlSoapClient.main(Xslt2Xml
SoapClient.java:32)
Caused by: org.xml.sax.SAXParseException: The processing instruction target matc
hing "[xX][mM][lL]" is not allowed.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.coderanch.jaxws.passxml.DomUtil.readDocumentFile(DomUtil.java:59)
... 2 more
No result document.
C:\Documents and Settings\Welcome\workspace\transform>
[Fatal Error] xsltFile.xsl:8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|