You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by José Antonio Sánchez <ge...@gmail.com> on 2006/11/08 17:56:03 UTC

Muse 2.0 not recognizing input types

Hello, I'm developing a service with Muse 2.0 but I have a problem
with some operations. I have defined the following operation:

..........
<xsd:element name="Mount" type="xsd:string"/>
..........
<wsdl:message name="MountRequest">
	<wsdl:part name="MountRequest" element="tns:Mount"/>
</wsdl:message>
<wsdl:message name="MountResponse">
	<wsdl:part name="MountResponse" type="xsd:anyType"/>
</wsdl:message>
<wsdl:message name="Mount_faultMsg">
	<wsdl:part name="fault" element="tns:CustomFault"/>
</wsdl:message>
..................
<wsdl:operation name="Mount">
        <wsdl:input
		wsa:Action="http://lsd.org/wsdm/TransFS/Mount"
		message="tns:MountRequest" />
	<wsdl:output
		wsa:Action="http://lsd.org/wsdm/TransFS/MountResponse"
		message="tns:MountResponse" />
	<wsdl:fault name="MountFault" message="tns:Mount_faultMsg" />
</wsdl:operation>
..................
<wsdl:operation name="Mount">
	<wsdl-soap:operation
		soapAction="http://lsd.org/wsdm/TransFS/Mount" />
	<wsdl:input>
		<wsdl-soap:body use="encoded" />
	</wsdl:input>
	<wsdl:output>
		<wsdl-soap:body use="encoded" />
	</wsdl:output>
	<wsdl:fault name="MountFault">
		<wsdl-soap:fault use="encoded" name="MountFault" />
	</wsdl:fault>
</wsdl:operation>
....................................

So I'm hoping Muse to create an operation called void mount(String
param0) throws Exception but instead it generates the following
method:


public void mount() throws Exception;

It happens too with another operation that expects a string too. I
have tried with Muse 2.0 and Muse 2.1-Snapshot and they generate the
same.


-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


RE: Muse 2.0 not recognizing input types

Posted by Daniel Jemiolo <da...@us.ibm.com>.
Lenni is right - see this thread for an explanation:

http://marc.theaimsgroup.com/?t=116228060700003&r=1&w=2

Dan



<le...@bt.com> wrote on 11/08/2006 12:22:20 PM:

> 
> I'm assuming you're using the wsdl2java tool, and there seems to be a 
problem 
> when specifying simpleType params, use complexTypes instead (even for 
simple ones.
> 
> Like:
> 
> <xsd:schema elementFormDefault="qualified" targetNamespace="http://...">
>          <xsd:element name="FactoryOperation">
>             <xsd:complexType>
>                <xsd:sequence>
>                   <xsd:element name="Param1" type="xsd:string"/>
>                </xsd:sequence>
>             </xsd:complexType>
>          </xsd:element>
>          <xsd:element name="FactoryOperationResponse"> 
>          </xsd:element>
>       </xsd:schema>
> 
> 
> I hope that helps.
> 
> Sincerely 
> 
> Lenni
> 
> British Telecommunications plc
> Registered office: 81 Newgate Street London EC1A 7AJ
> Registered in England no. 1800000 
> 
> This electronic message contains information from British 
Telecommunications 
> plc which may be privileged or confidential. The information is intended 
to be
> for the use of the individual(s) or entity named above. If you are not 
the 
> intended recipient be aware that any disclosure, copying, distribution 
or use 
> of the contents of this information is prohibited. If you have received 
this 
> electronic message in error, please notify us by telephone or email (to 
the 
> numbers or address above) immediately.
> 
> Activity and use of the British Telecommunications plc email system is 
> monitored to secure its effective operation and for other lawful 
business 
> purposes. Communications using this system will also be monitored and 
may be 
> recorded to secure effective operation and for other lawful business 
purposes.
> 
> -----Original Message-----
> From: José Antonio Sánchez [mailto:getaceres@gmail.com] 
> Sent: 08 November 2006 16:56
> To: muse-user@ws.apache.org; muse-dev@ws.apache.org
> Subject: Muse 2.0 not recognizing input types
> 
> Hello, I'm developing a service with Muse 2.0 but I have a problem
> with some operations. I have defined the following operation:
> 
> ..........
> <xsd:element name="Mount" type="xsd:string"/>
> ..........
> <wsdl:message name="MountRequest">
>    <wsdl:part name="MountRequest" element="tns:Mount"/>
> </wsdl:message>
> <wsdl:message name="MountResponse">
>    <wsdl:part name="MountResponse" type="xsd:anyType"/>
> </wsdl:message>
> <wsdl:message name="Mount_faultMsg">
>    <wsdl:part name="fault" element="tns:CustomFault"/>
> </wsdl:message>
> ..................
> <wsdl:operation name="Mount">
>         <wsdl:input
>       wsa:Action="http://lsd.org/wsdm/TransFS/Mount"
>       message="tns:MountRequest" />
>    <wsdl:output
>       wsa:Action="http://lsd.org/wsdm/TransFS/MountResponse"
>       message="tns:MountResponse" />
>    <wsdl:fault name="MountFault" message="tns:Mount_faultMsg" />
> </wsdl:operation>
> ..................
> <wsdl:operation name="Mount">
>    <wsdl-soap:operation
>       soapAction="http://lsd.org/wsdm/TransFS/Mount" />
>    <wsdl:input>
>       <wsdl-soap:body use="encoded" />
>    </wsdl:input>
>    <wsdl:output>
>       <wsdl-soap:body use="encoded" />
>    </wsdl:output>
>    <wsdl:fault name="MountFault">
>       <wsdl-soap:fault use="encoded" name="MountFault" />
>    </wsdl:fault>
> </wsdl:operation>
> ....................................
> 
> So I'm hoping Muse to create an operation called void mount(String
> param0) throws Exception but instead it generates the following
> method:
> 
> 
> public void mount() throws Exception;
> 
> It happens too with another operation that expects a string too. I
> have tried with Muse 2.0 and Muse 2.1-Snapshot and they generate the
> same.
> 
> 
> -- 
> Saludos.
> José Antonio Sánchez
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


RE: Muse 2.0 not recognizing input types

Posted by le...@bt.com.
I'm assuming you're using the wsdl2java tool, and there seems to be a problem when specifying simpleType params, use complexTypes instead (even for simple ones.

Like:

<xsd:schema elementFormDefault="qualified" targetNamespace="http://...">
			<xsd:element name="FactoryOperation">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="Param1" type="xsd:string"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="FactoryOperationResponse">				
			</xsd:element>
		</xsd:schema>


I hope that helps.

Sincerely  

Lenni

British Telecommunications plc
Registered office: 81 Newgate Street London EC1A 7AJ
Registered in England no. 1800000 

This electronic message contains information from British Telecommunications plc which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately.

Activity and use of the British Telecommunications plc email system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes.

-----Original Message-----
From: José Antonio Sánchez [mailto:getaceres@gmail.com] 
Sent: 08 November 2006 16:56
To: muse-user@ws.apache.org; muse-dev@ws.apache.org
Subject: Muse 2.0 not recognizing input types

Hello, I'm developing a service with Muse 2.0 but I have a problem
with some operations. I have defined the following operation:

..........
<xsd:element name="Mount" type="xsd:string"/>
..........
<wsdl:message name="MountRequest">
	<wsdl:part name="MountRequest" element="tns:Mount"/>
</wsdl:message>
<wsdl:message name="MountResponse">
	<wsdl:part name="MountResponse" type="xsd:anyType"/>
</wsdl:message>
<wsdl:message name="Mount_faultMsg">
	<wsdl:part name="fault" element="tns:CustomFault"/>
</wsdl:message>
..................
<wsdl:operation name="Mount">
        <wsdl:input
		wsa:Action="http://lsd.org/wsdm/TransFS/Mount"
		message="tns:MountRequest" />
	<wsdl:output
		wsa:Action="http://lsd.org/wsdm/TransFS/MountResponse"
		message="tns:MountResponse" />
	<wsdl:fault name="MountFault" message="tns:Mount_faultMsg" />
</wsdl:operation>
..................
<wsdl:operation name="Mount">
	<wsdl-soap:operation
		soapAction="http://lsd.org/wsdm/TransFS/Mount" />
	<wsdl:input>
		<wsdl-soap:body use="encoded" />
	</wsdl:input>
	<wsdl:output>
		<wsdl-soap:body use="encoded" />
	</wsdl:output>
	<wsdl:fault name="MountFault">
		<wsdl-soap:fault use="encoded" name="MountFault" />
	</wsdl:fault>
</wsdl:operation>
....................................

So I'm hoping Muse to create an operation called void mount(String
param0) throws Exception but instead it generates the following
method:


public void mount() throws Exception;

It happens too with another operation that expects a string too. I
have tried with Muse 2.0 and Muse 2.1-Snapshot and they generate the
same.


-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org