You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pengyu Wang <pw...@Brocade.COM> on 2003/01/31 06:59:15 UTC
Repost: URL as soap call parameters(within object).
Any takers or my message got lost in the hay?
Thanks advance.
-----Original Message-----
From: Pengyu Wang
Sent: Thursday, January 30, 2003 3:58 PM
To: 'axis-user@xml.apache.org'
Subject: URL as soap call parameters(within object).
How do I generate type definition for URL as parameters in Axis?
I tried the following step, it gave me the warning but generated the
wp.wsdl with anytype. But I can into IOException when I tried to do
.wsdl2java
step 1) created these classes
-------------------------------------------------------------------------
public interface TestInterface {
public void testDataRequest(DataEntryRequest d);
}
public class DataEntryRequest implements Serializable {
private URL[] requestedURL;
public DataEntryRequest(URL [] url) {
requestedURL = url;
}
public URL [] getRequestedURL() {
return requestedURL;
}
}
step 2: run java2wsdl
----------------------------------------------------------------
java org.apache.axis.wsdl.Java2WSDL -o wp.wsdl
-l"http://localhost:8080/axis/services/testHelloWorld" -n
"urn:test" -p"test" "urn:test" test.TestInterface
- The class java.net.URL is defined in a java or javax package and cannot be
converted into an xml schema type. An xml schema anyType will be used to
define this class in the wsdl file.
step3 : run wsdl2java
-------------------------------------------------------------------
java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -S true
-Nurn:test test wp.wsdl
java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}null is
referenced but not defined.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:484)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:384
)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:371)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:358)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:243)
at java.lang.Thread.run(Unknown Source)