I used the WSDL as is from the binary installation. The WSDL file is
attached.

Thanks,
Rachana 

> -----Original Message-----
> From: Daniel Jemiolo [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 08, 2007 12:21 PM
> To: [email protected]
> Subject: Re: Incorrect code generated with wsdl2java tool
> 
> I just tried 2.1's wsdl2java on SimpleResource.wsdl and got 
> the following code generated:
> 
> 
> public interface IMyCapability
> {
>     String PREFIX = "tns";
> 
>     String NAMESPACE_URI = 
> "http://ws.apache.org/muse/test/simple/first";;
> 
>     public String firstOperation(String Param1) throws Exception;
> 
> }
> 
> 
> What does your WSDL look like? How does it differ from the content in 
> SimpleResource.wsdl? It may just break one of the conventions 
> listed here:
> 
>  
> http://ws.apache.org/muse/docs/2.1.0/manual/tools/wsdl-convent
> ions.html
> 
> Dan
> 
> 
> 
> "Rachana Ananthakrishnan" <[EMAIL PROTECTED]> wrote on 03/08/2007 
> 01:03:24 PM:
> 
> > Hi,
> > 
> > I am trying to use the wsdl2java tool to generate source to 
> use in a 
> Muse
> > 2.1.0 deployment. I used the template WSDL and added some custom 
> operations
> > (int add(int), int getValue()), but it seems like my input 
> parameters in 
> the
> > methods that are generated are always void. 
> > 
> > For example:
> > 
> >  public int add() throws Exception    {
> >         //TODO implement addInput
> >         throw new RuntimeException("Unimplemented Method: 
> addInput");
> >     }
> > 
> >     public Element setValue() throws Exception    {
> >         //TODO implement setValue
> >         throw new RuntimeException("Unimplemented Method: 
> setValue");
> >     }
> > 
> > To test things, I used the wsdl from the samples/simple
> > (SimpleResource.wsdl). The command I ran was:
> > 
> > C:\cygwin\home\ranantha\muse\simpleWsdl>M:\bin\wsdl2java.bat -axis2 
> -wsdl
> > 
> C:\cygwin\home\ranantha\muse\muse-2.1.0-bin\samples\j2ee\simpl
> e\wsdl\SimpleR
> > esource.wsdl
> > 
> > WARNING: [ID = 'NoWSRPSchema'] No WS-RP schema found.
> > 
> > Looking at the generated capability file, the input 
> parameter is void:
> > 
> > public String firstOperation() throws Exception    {
> >         //TODO implement firstOperation
> >         throw new RuntimeException("Unimplemented Method: 
> firstOperation");
> >     }
> > 
> > The input parameter should have been an int, like the provided 
> capability
> > file in samples:
> > 
> >  public String firstOperation(String param1)
> >     {
> >         return "[RESPONSE] " + param1;
> >     }
> > }
> > 
> > Is there any other input required for the generated code to 
> reflect the 
> WSDL
> > correctly ?
> > 
> > Thanks,
> > Rachana
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
	targetNamespace="http://ws.apache.org/muse/test/simple";
	xmlns:tns="http://ws.apache.org/muse/test/simple";
	xmlns="http://schemas.xmlsoap.org/wsdl/";
	xmlns:wsa="http://www.w3.org/2005/08/addressing";
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
	xmlns:wsdl-soap="http://schemas.xmlsoap.org/wsdl/soap/";
	xmlns:xsd="http://www.w3.org/2001/XMLSchema";
	xmlns:first="http://ws.apache.org/muse/test/simple/first"; 
	xmlns:second="http://ws.apache.org/muse/test/simple/second"; 
	xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"; 
	name="SimpleResource">
	<wsdl:types>
		<xsd:schema 
			elementFormDefault="qualified"
			targetNamespace="http://www.w3.org/2005/08/addressing";>
			<xsd:include schemaLocation="WS-Addressing-2005_08.xsd"/>
		</xsd:schema>
		<xsd:schema 
			elementFormDefault="qualified"
			targetNamespace="http://schemas.xmlsoap.org/ws/2004/09/mex";>
			<xsd:include schemaLocation="WS-MetadataExchange-2004_09.xsd"/>
		</xsd:schema>
		<xsd:schema 
			elementFormDefault="qualified"
			targetNamespace="http://ws.apache.org/muse/test/simple/first";>
			<xsd:element name="FirstOperation" type="xsd:string" />
			<xsd:element name="FirstOperationResponse" type="xsd:string" />
		</xsd:schema>
		<xsd:schema 
			elementFormDefault="qualified"
			targetNamespace="http://ws.apache.org/muse/test/simple/second";>
			<xsd:element name="SecondOperation">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="Param1" type="xsd:integer"/>
						<xsd:element name="Param2" type="xsd:QName"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="SecondOperationResponse" type="xsd:boolean" />
		</xsd:schema>
	</wsdl:types>
	<wsdl:message name="FirstOperationRequest">
		<wsdl:part name="FirstOperationRequest" element="first:FirstOperation" />
	</wsdl:message>
	<wsdl:message name="FirstOperationResponse">
		<wsdl:part name="FirstOperationResponse" element="first:FirstOperationResponse" />
	</wsdl:message>
	<wsdl:message name="SecondOperationRequest">
		<wsdl:part name="SecondOperationRequest" element="second:SecondOperation" />
	</wsdl:message>
	<wsdl:message name="SecondOperationResponse">
		<wsdl:part name="SecondOperationResponse" element="second:SecondOperationResponse" />
	</wsdl:message>
	<wsdl:message name="GetMetadataMsg">
  		<wsdl:part name="GetMetadataMsg" element="wsx:GetMetadata" />
	</wsdl:message>
	<wsdl:message name="GetMetadataResponseMsg">
  		<wsdl:part name="GetMetadataResponseMsg" element="wsx:Metadata" />
	</wsdl:message>
	<wsdl:portType name="SimpleResourcePortType">
		<wsdl:operation name="FirstOperation">
			<wsdl:input wsa:Action="http://ws.apache.org/muse/test/simple/first/FirstOperation"; 
			            name="FirstOperationRequest" message="tns:FirstOperationRequest" />
			<wsdl:output wsa:Action="http://ws.apache.org/muse/test/simple/first/FirstOperationResponse"; 
			             name="FirstOperationResponse" message="tns:FirstOperationResponse" />
		</wsdl:operation>
		<wsdl:operation name="SecondOperation">
			<wsdl:input wsa:Action="http://ws.apache.org/muse/test/simple/second/SecondOperation"; 
			            name="SecondOperationRequest" message="tns:SecondOperationRequest" />
			<wsdl:output wsa:Action="http://ws.apache.org/muse/test/simple/second/SecondOperationResponse"; 
			             name="SecondOperationResponse" message="tns:SecondOperationResponse" />
		</wsdl:operation>
		<wsdl:operation name="GetMetadata">
			<wsdl:input wsa:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata"; 
			            name="GetMetadataMsg" message="tns:GetMetadataMsg"/>
			<wsdl:output wsa:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadataResponse"; 
			             name="GetMetadataResponseMsg" message="tns:GetMetadataResponseMsg"/>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="SimpleResourceBinding" type="tns:SimpleResourcePortType">
		<wsdl-soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; />
		<wsdl:operation name="FirstOperation">
			<wsdl-soap:operation soapAction="FirstOperation" />
			<wsdl:input>
				<wsdl-soap:body 
					use="encoded"
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
			</wsdl:input>
			<wsdl:output>
				<wsdl-soap:body 
					use="encoded"
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="SecondOperation">
			<wsdl-soap:operation soapAction="SecondOperation" />
			<wsdl:input>
				<wsdl-soap:body 
					use="encoded"
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
			</wsdl:input>
			<wsdl:output>
				<wsdl-soap:body 
					use="encoded"
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="GetMetadata">
			<wsdl-soap:operation soapAction="GetMetadata" />
			<wsdl:input>
				<wsdl-soap:body 
					use="encoded"
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
			</wsdl:input>
			<wsdl:output>
				<wsdl-soap:body 
					use="encoded"
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="SimpleResourceService">
    	<wsdl:port name="SimpleResourcePort" binding="tns:SimpleResourceBinding">
    		<wsdl-soap:address location="http://localhost:8080/simple/services/SimpleResource"/>
    	</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to