- This topic has 4 replies, 2 voices, and was last updated 19 years, 6 months ago by support-michael.
-
AuthorPosts
-
tmonteitMemberI’m trying to build an ant script with an argument that references a strong containing html. The html string is supposed to be enclosed in quotes.
The script will be the targed of a wsdl deployment.ie. “html:\something”
<java … >
<arg value=”\”html:/Something”\” />
<java>The problem is that eclipse doesn’t like the string. Error says:
white space required before attributes.Here’s the The code…
and a screen shot of the error:<target name=”s1_java2wsdl”>
<java classpath=”lib.cp” classname=”org.apache.axis.wsdl.Java2WSDL” fork=”true”>
<args>
<arg value=”-y DOCUMENT” />
<arg value=”-o mywsdl.wsdl” />
<arg value=”-l\”http:\localhost:8080\axis\services\ABCDDoc\”” />
<arg value=”-n\”urn:IBCDSDoc\”” />
<arg value=”-p\”com.company.webservice.sa\”” />
<arg value=”\”urn:ABCD\”” />
<arg value=”com.company.webservice.sa.IBCDSServiceAdapter” />
</args>
</java>
</target>What’s going on here? how do I fix?
tmonteitMemberRe: screen shot http://vizprocess.4t.com/devshare/tmp8224.png
tmonteitMemberAlso says…. What does this mean?
BUILD FAILED: C:\ibc_env\eclipse_working\ibc_hs\build.xml:36: Element type “arg” must be followed by either attribute specifications, “>” or “/>”.
support-michaelKeymasterIFollowing are the attribute quoting rules:
All attribute values must be in quotes. The single-quote character (the apostrophe) may be used if the value contains a double-quote character, and vice versa. If you need isolated quotes as data as well, you can use ' or ".
Try this:
<arg value='-l"http:\localhost:8080\axis\services\ABCDDoc"' />
support-michaelKeymasterOne more observation is the backslashes in the -l option. I don’t believe ‘\’ is a valid character in a URL. If you experience errors try converting the ‘\’ to ‘/’.
-
AuthorPosts