I tried to use the sample code in samples/userguide/examples6 to create the wsdl file.
I added the following method in WidgetPirce.java and WidgetPriceSoapBindImpl.java.
public interface WidgetPrice
{
public org.w3c.dom.Document getRecords(java.math.BigInteger count)
public void setWidgetPrice(String widgetName, String price);
public String getWidgetPrice(String widgetName);
}


public class WidgetPriceSoapBindingImpl implements samples.userguide.example6.WidgetPrice
{
HashMap table = new HashMap();
public org.w3c.dom.Document getRecords(java.math.BigInteger count)
{
return new org.w3c.dom.Document(); }
.....
}


I was hoping that this will trick the Java2WSDL to generate the mapping for the the getRecords method.

I run the tool with Java2WSDL tool the following flag

-o wp.wsdl -l"http://localhost:8080/axis/services/WidgetPrice"; -n "urn:Example6" -p"samples.userguide.example6" "urn:Example6" -a samples.userguide.example6.WidgetPrice

The wsdl file generated does not have any reference to the getRecords method at all. Did I do anything wrong?


Chris Haddad wrote:


Alex -

try creating a Java stub with your desired method signature, run Java2WSDL to generate a WSDL file, then WSDL2Java on the WSDL file to generate skeleton and stub classes.

/Chris

---------- Original Message ----------------------------------
From: Alex Chen <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Sun, 28 Mar 2004 18:16:47 -0800



I would like to use 'Document' service type with Axis but I do not find
much information from the samples.
What I like to do is to have a method like like this:

public Document getMyDocument( int id);

When the client invokes this method, the server side will return an XML
document back.  Of course the consents are filled by
the server and the client will do the unmarshalling itself.
I do not know how to define a WSDL file to get AXIS to generate the
proper stub/skeleton file so that I can fill in the implementation.
I have not found any WSDL files in the samples that do this.  Any help
is appreciated.








Reply via email to