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 Anne Thomas Manes <an...@manes.net> on 2003/08/22 00:42:40 UTC

Re: Emitter failure. All input parts must be listed in the parameterOrder attribute of getUnusedAccounts

What does the tns:getUnusedAccounts1In <message> description look like? I'm 
assuming that it contains more than one part, and the emitter is objecting 
to the fact that you want to pass only one part from a multi-part message.

If you want to send only one parameter, then you need to define a different 
message that contains only one part.

Anne


At 05:16 PM 8/20/2003 +0200, you wrote:
>Hi!
>
>I've received some WSDL which I now try to process with WSDL2Java. I'm
>receiving following error:
>Parsing XML file: Activities.wsdl
>java.io.IOException: Emitter failure.  All input parts must be listed in 
>the parameterOrder attribute of getUnusedAccounts
>
>The part of WSDL where this error occurs looks like this:
><wsdl:operation name="getUnusedAccounts" parameterOrder="lastDays">
>         <wsdl:documentation>...</wsdl:documentation>
>         <wsdl:input name="getUnusedAccounts1In" 
> message="tns:getUnusedAccounts1In"/>
>         <wsdl:output name="getUnusedAccounts1Out" 
> message="tns:getUnusedAccounts1Out"/>
></wsdl:operation>
>
>The "lastDays" is the only parameter passed to this procedure.
>
>Could you please help me find and solve reason of this problem? What
>should I look for?
>
>I see same problem with methods taking more than one parameter - their
>parameterOrder attribute also seem to be correct.
>
>Best Regards
>--
>--= Michal Kochanowicz =--==--==BOFH==--==--= michal@michal.waw.pl =--
>--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
>--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
>A chodzenie po górach SSIE!!!


Re: Emitter failure. All input parts must be listed in the parameterOrder attribute of getUnusedAccounts

Posted by Anne Thomas Manes <an...@manes.net>.
Michal,

I think I see the problem -- there is no part called "lastDays" in your 
<message>. Since there's only one part in the <message>, you don't need to 
specify the parameterOrder attribute, so I recommend that you remove it. 
Otherwise, you should modify it to say:

<wsdl:operation name="getUnusedAccounts" parameterOrder="parameters">

Anne

At 09:38 AM 8/22/2003 +0200, you wrote:
>On Thu, Aug 21, 2003 at 06:42:40PM -0400, Anne Thomas Manes wrote:
> > What does the tns:getUnusedAccounts1In <message> description look like? 
> I'm
><wsdl:message name="getUnusedAccounts1In">
>         <wsdl:part name="parameters" element="tns:getUnusedAccounts"/>
></wsdl:message>
>
> > assuming that it contains more than one part, and the emitter is objecting
> > to the fact that you want to pass only one part from a multi-part message.
>Strange, isn't it? :/
>
> > >The part of WSDL where this error occurs looks like this:
> > ><wsdl:operation name="getUnusedAccounts" parameterOrder="lastDays">
>What's even stranger to me, if I remove content of parameterOrder and
>leave it empty, WSDL2Java doesn't complain and generates .java files,
>altought they are slightly broken (names of method parameters hide
>private class variables), but they are trivial to correct manually.
>
>Do you have any Idea what can be wrong? Is it really broken WSDL or
>maybe some bug in AXIS?
>
>Best Regards
>--
>--= Michal Kochanowicz =--==--==BOFH==--==--= michal@michal.waw.pl =--
>--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
>--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
>A chodzenie po górach SSIE!!!


Re: Emitter failure. All input parts must be listed in the parameterOrder attribute of getUnusedAccounts

Posted by Michal Kochanowicz <mi...@michal.waw.pl>.
On Thu, Aug 21, 2003 at 06:42:40PM -0400, Anne Thomas Manes wrote:
> What does the tns:getUnusedAccounts1In <message> description look like? I'm 
<wsdl:message name="getUnusedAccounts1In">
	<wsdl:part name="parameters" element="tns:getUnusedAccounts"/>
</wsdl:message>

> assuming that it contains more than one part, and the emitter is objecting 
> to the fact that you want to pass only one part from a multi-part message.
Strange, isn't it? :/

> >The part of WSDL where this error occurs looks like this:
> ><wsdl:operation name="getUnusedAccounts" parameterOrder="lastDays">
What's even stranger to me, if I remove content of parameterOrder and
leave it empty, WSDL2Java doesn't complain and generates .java files,
altought they are slightly broken (names of method parameters hide
private class variables), but they are trivial to correct manually.

Do you have any Idea what can be wrong? Is it really broken WSDL or
maybe some bug in AXIS?

Best Regards
-- 
--= Michal Kochanowicz =--==--==BOFH==--==--= michal@michal.waw.pl =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!