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 FN LN <ea...@yahoo.com> on 2005/06/17 20:53:36 UTC

More No such operation 'in0'

Hi,

BTW, from my previous message, all I was trying to do
was to run this very simple method:

public Submission getSubmissionByStringArray(String[]
in0) {
    ...
}

Using document/literal style. I believe "wrapped" is
set by default.

Thanks,
EMS

Re: More No such operation 'in0'

Posted by FN LN <ea...@yahoo.com>.
It works! Thank you so much!

--- Anne Thomas Manes <at...@gmail.com> wrote:

> Start over, but this time when you run java2wsdl,
> specify --style WRAPPED. 
> 
> The problem is caused by the fact that your input
> message doesn't
> indicate the operation to be invoked. Instead it
> only supplies your
> input parameter "in0". If you specify the wrapped
> style, Axis will
> generate a wrapper element for your service which
> indicates your
> operation name.
> 
> Anne
> 
> On 6/17/05, FN LN <ea...@yahoo.com> wrote:
> > Hi Anne,
> > 
> > Here is my previous message.
> > 
> > Thanks so much for your help,
> > EMS
> > 
> > =================================
> > 
> > Hi,
> > 
> > I got the following exception when I made calls to
> the
> > web service:
> > 
> > No such operation 'in0'
> > AxisFault
> >  faultCode: {http://xml.apache.org/axis/}Client
> >  faultSubcode:
> >  faultString: No such operation 'in0'
> >  faultActor:
> >  faultNode:
> >  faultDetail:
> >         {http://xml.apache.org/axis/} ...
> > 
> > I realized some people have made requests
> regarding
> > this exception. But there seems to be many reasons
> for
> > getting such exception and I'm a little confused.
> Here
> > is my side of story for getting the exception. Any
> > help is greatly appreciated.
> > 
> > Cheers,
> > EMS
> > 
> >
> ----------------------------------------------------
> > 
> > Here is how I generated my code:
> > 
> > 1. I generated the wsdl file called ncastor.wsdl
> by
> > running Java2WSDL.
> > -o c:/dev/myweb/ncastor.wsdl -l
> > "http://localhost:8080/myweb/services/ncastor" -n
> > urn:ncastor --PkgtoNS
> > org.myweb.axis.ncastor=urn:ncastor
> > org.myweb.axis.ncastor.MywebCastor --style
> DOCUMENT
> > --use LITERAL
> > 
> > 2. I modified the ncastor.wsdl to specify my
> schema
> > location, and removed some <import namespace> tags
> > (they don't seem to be needed, correct?).
> > 
> > Here is the ncastor.wsdl that I used to run
> WSDL2Java:
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <wsdl:definitions targetNamespace="urn:ncastor"
> > xmlns:apachesoap="http://xml.apache.org/xml-soap"
> > xmlns:impl="urn:ncastor" xmlns:intf="urn:ncastor"
> > xmlns:tns2="http://rbcode.myweb.org"
> > xmlns:tns3="http://types.rbcode.myweb.org"
> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >
>
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >         <!--WSDL created by Apache Axis version:
> 1.2RC3
> > Built on Feb 28, 2005 (10:15:14 EST)-->
> >         <wsdl:types>
> >                 <schema
> elementFormDefault="qualified"
> > targetNamespace="urn:ncastor"
> > xmlns="http://www.w3.org/2001/XMLSchema">
> >                         <element
> maxOccurs="unbounded" name="in0"
> > type="xsd:string"/>
> >                         <element
> name="getSubmissionByStringArrayReturn"
> > element="tns2:submission"/>
> >                 </schema>
> >                 <schema
> elementFormDefault="qualified"
> > targetNamespace="http://rbcode.myweb.org"
> > xmlns="http://www.w3.org/2001/XMLSchema">
> >                         <include
> >
>
schemaLocation="http://localhost:8080/myweb/schema/myweb_schema.xsd"/>
> >                 </schema>
> >         </wsdl:types>
> >         <wsdl:message
> > name="getSubmissionByStringArrayResponse">
> >                 <wsdl:part
> > element="impl:getSubmissionByStringArrayReturn"
> > name="getSubmissionByStringArrayReturn"/>
> >         </wsdl:message>
> >         <wsdl:message
> > name="getSubmissionByStringArrayRequest">
> >                 <wsdl:part element="impl:in0"
> name="in0"/>
> >         </wsdl:message>
> >         <wsdl:portType name="MywebCastor">
> >                 <wsdl:operation
> name="getSubmissionByStringArray"
> > parameterOrder="in0">
> >                         <wsdl:input
> > message="impl:getSubmissionByStringArrayRequest"
> > name="getSubmissionByStringArrayRequest"/>
> >                         <wsdl:output
> > message="impl:getSubmissionByStringArrayResponse"
> > name="getSubmissionByStringArrayResponse"/>
> >                 </wsdl:operation>
> >         </wsdl:portType>
> >         <wsdl:binding name="ncastorSoapBinding"
> > type="impl:MywebCastor">
> >                 <wsdlsoap:binding style="document"
> > transport="http://schemas.xmlsoap.org/soap/http"/>
> >                 <wsdl:operation
> name="getSubmissionByStringArray">
> >                         <wsdlsoap:operation
> soapAction=""/>
> >                         <wsdl:input
> > name="getSubmissionByStringArrayRequest">
> >                                 <wsdlsoap:body
> use="literal"/>
> >                         </wsdl:input>
> >                         <wsdl:output
> > name="getSubmissionByStringArrayResponse">
> >                                 <wsdlsoap:body
> use="literal"/>
> >                         </wsdl:output>
> >                 </wsdl:operation>
> >         </wsdl:binding>
> >         <wsdl:service name="MywebCastorService">
> >                 <wsdl:port
> binding="impl:ncastorSoapBinding"
> > name="ncastor">
> >                         <wsdlsoap:address
> >
>
location="http://localhost:8080/myweb/services/ncastor"/>
> >                 </wsdl:port>
> >         </wsdl:service>
> > </wsdl:definitions>
> > 
> > --- Anne Thomas Manes <at...@gmail.com> wrote:
> > 
> > > I didn't see you previous message, but based on
> your
> > > subject line, I
> > > assume that you are not in fact using the
> wrapped
> > > style, and if you
> > > do, that should solve your problem.
> > >
> > > If you post your WSDL file, I'd be happy to look
> at
> > > it.
> > >
> > > Anne
> > >
> > > On 6/17/05, FN LN <ea...@yahoo.com>
> wrote:
> > > > Hi,
> > > >
> > > > BTW, from my previous message, all I was
> trying to
> > > do
> > > > was to run this very simple method:
> > > >
> > > > public Submission
> > > getSubmissionByStringArray(String[]
> > > > in0) {
> > > >     ...
> > > > }
> > > >
> > > > Using document/literal style. I believe
> "wrapped"
> > > is
> > > > set by default.
> > > >
> 
=== message truncated ===


Re: More No such operation 'in0'

Posted by Anne Thomas Manes <at...@gmail.com>.
Start over, but this time when you run java2wsdl, specify --style WRAPPED. 

The problem is caused by the fact that your input message doesn't
indicate the operation to be invoked. Instead it only supplies your
input parameter "in0". If you specify the wrapped style, Axis will
generate a wrapper element for your service which indicates your
operation name.

Anne

On 6/17/05, FN LN <ea...@yahoo.com> wrote:
> Hi Anne,
> 
> Here is my previous message.
> 
> Thanks so much for your help,
> EMS
> 
> =================================
> 
> Hi,
> 
> I got the following exception when I made calls to the
> web service:
> 
> No such operation 'in0'
> AxisFault
>  faultCode: {http://xml.apache.org/axis/}Client
>  faultSubcode:
>  faultString: No such operation 'in0'
>  faultActor:
>  faultNode:
>  faultDetail:
>         {http://xml.apache.org/axis/} ...
> 
> I realized some people have made requests regarding
> this exception. But there seems to be many reasons for
> getting such exception and I'm a little confused. Here
> is my side of story for getting the exception. Any
> help is greatly appreciated.
> 
> Cheers,
> EMS
> 
> ----------------------------------------------------
> 
> Here is how I generated my code:
> 
> 1. I generated the wsdl file called ncastor.wsdl by
> running Java2WSDL.
> -o c:/dev/myweb/ncastor.wsdl -l
> "http://localhost:8080/myweb/services/ncastor" -n
> urn:ncastor --PkgtoNS
> org.myweb.axis.ncastor=urn:ncastor
> org.myweb.axis.ncastor.MywebCastor --style DOCUMENT
> --use LITERAL
> 
> 2. I modified the ncastor.wsdl to specify my schema
> location, and removed some <import namespace> tags
> (they don't seem to be needed, correct?).
> 
> Here is the ncastor.wsdl that I used to run WSDL2Java:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:ncastor"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="urn:ncastor" xmlns:intf="urn:ncastor"
> xmlns:tns2="http://rbcode.myweb.org"
> xmlns:tns3="http://types.rbcode.myweb.org"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>         <!--WSDL created by Apache Axis version: 1.2RC3
> Built on Feb 28, 2005 (10:15:14 EST)-->
>         <wsdl:types>
>                 <schema elementFormDefault="qualified"
> targetNamespace="urn:ncastor"
> xmlns="http://www.w3.org/2001/XMLSchema">
>                         <element maxOccurs="unbounded" name="in0"
> type="xsd:string"/>
>                         <element name="getSubmissionByStringArrayReturn"
> element="tns2:submission"/>
>                 </schema>
>                 <schema elementFormDefault="qualified"
> targetNamespace="http://rbcode.myweb.org"
> xmlns="http://www.w3.org/2001/XMLSchema">
>                         <include
> schemaLocation="http://localhost:8080/myweb/schema/myweb_schema.xsd"/>
>                 </schema>
>         </wsdl:types>
>         <wsdl:message
> name="getSubmissionByStringArrayResponse">
>                 <wsdl:part
> element="impl:getSubmissionByStringArrayReturn"
> name="getSubmissionByStringArrayReturn"/>
>         </wsdl:message>
>         <wsdl:message
> name="getSubmissionByStringArrayRequest">
>                 <wsdl:part element="impl:in0" name="in0"/>
>         </wsdl:message>
>         <wsdl:portType name="MywebCastor">
>                 <wsdl:operation name="getSubmissionByStringArray"
> parameterOrder="in0">
>                         <wsdl:input
> message="impl:getSubmissionByStringArrayRequest"
> name="getSubmissionByStringArrayRequest"/>
>                         <wsdl:output
> message="impl:getSubmissionByStringArrayResponse"
> name="getSubmissionByStringArrayResponse"/>
>                 </wsdl:operation>
>         </wsdl:portType>
>         <wsdl:binding name="ncastorSoapBinding"
> type="impl:MywebCastor">
>                 <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>                 <wsdl:operation name="getSubmissionByStringArray">
>                         <wsdlsoap:operation soapAction=""/>
>                         <wsdl:input
> name="getSubmissionByStringArrayRequest">
>                                 <wsdlsoap:body use="literal"/>
>                         </wsdl:input>
>                         <wsdl:output
> name="getSubmissionByStringArrayResponse">
>                                 <wsdlsoap:body use="literal"/>
>                         </wsdl:output>
>                 </wsdl:operation>
>         </wsdl:binding>
>         <wsdl:service name="MywebCastorService">
>                 <wsdl:port binding="impl:ncastorSoapBinding"
> name="ncastor">
>                         <wsdlsoap:address
> location="http://localhost:8080/myweb/services/ncastor"/>
>                 </wsdl:port>
>         </wsdl:service>
> </wsdl:definitions>
> 
> --- Anne Thomas Manes <at...@gmail.com> wrote:
> 
> > I didn't see you previous message, but based on your
> > subject line, I
> > assume that you are not in fact using the wrapped
> > style, and if you
> > do, that should solve your problem.
> >
> > If you post your WSDL file, I'd be happy to look at
> > it.
> >
> > Anne
> >
> > On 6/17/05, FN LN <ea...@yahoo.com> wrote:
> > > Hi,
> > >
> > > BTW, from my previous message, all I was trying to
> > do
> > > was to run this very simple method:
> > >
> > > public Submission
> > getSubmissionByStringArray(String[]
> > > in0) {
> > >     ...
> > > }
> > >
> > > Using document/literal style. I believe "wrapped"
> > is
> > > set by default.
> > >
> > > Thanks,
> > > EMS
> > >
> >
> 
>

Re: More No such operation 'in0'

Posted by FN LN <ea...@yahoo.com>.
Hi Anne,

Here is my previous message.

Thanks so much for your help,
EMS

=================================

Hi, 

I got the following exception when I made calls to the
web service:

No such operation 'in0'
AxisFault
 faultCode: {http://xml.apache.org/axis/}Client
 faultSubcode: 
 faultString: No such operation 'in0'
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/} ...

I realized some people have made requests regarding
this exception. But there seems to be many reasons for
getting such exception and I'm a little confused. Here
is my side of story for getting the exception. Any
help is greatly appreciated.

Cheers,
EMS

----------------------------------------------------

Here is how I generated my code:

1. I generated the wsdl file called ncastor.wsdl by
running Java2WSDL.
-o c:/dev/myweb/ncastor.wsdl -l
"http://localhost:8080/myweb/services/ncastor" -n
urn:ncastor --PkgtoNS
org.myweb.axis.ncastor=urn:ncastor
org.myweb.axis.ncastor.MywebCastor --style DOCUMENT
--use LITERAL

2. I modified the ncastor.wsdl to specify my schema
location, and removed some <import namespace> tags
(they don't seem to be needed, correct?).

Here is the ncastor.wsdl that I used to run WSDL2Java:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:ncastor"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="urn:ncastor" xmlns:intf="urn:ncastor"
xmlns:tns2="http://rbcode.myweb.org"
xmlns:tns3="http://types.rbcode.myweb.org"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<!--WSDL created by Apache Axis version: 1.2RC3
Built on Feb 28, 2005 (10:15:14 EST)-->
	<wsdl:types>
		<schema elementFormDefault="qualified"
targetNamespace="urn:ncastor"
xmlns="http://www.w3.org/2001/XMLSchema">
			<element maxOccurs="unbounded" name="in0"
type="xsd:string"/>
			<element name="getSubmissionByStringArrayReturn"
element="tns2:submission"/>
		</schema>
		<schema elementFormDefault="qualified"
targetNamespace="http://rbcode.myweb.org"
xmlns="http://www.w3.org/2001/XMLSchema">
			<include
schemaLocation="http://localhost:8080/myweb/schema/myweb_schema.xsd"/>
		</schema>
	</wsdl:types>
	<wsdl:message
name="getSubmissionByStringArrayResponse">
		<wsdl:part
element="impl:getSubmissionByStringArrayReturn"
name="getSubmissionByStringArrayReturn"/>
	</wsdl:message>
	<wsdl:message
name="getSubmissionByStringArrayRequest">
		<wsdl:part element="impl:in0" name="in0"/>
	</wsdl:message>
	<wsdl:portType name="MywebCastor">
		<wsdl:operation name="getSubmissionByStringArray"
parameterOrder="in0">
			<wsdl:input
message="impl:getSubmissionByStringArrayRequest"
name="getSubmissionByStringArrayRequest"/>
			<wsdl:output
message="impl:getSubmissionByStringArrayResponse"
name="getSubmissionByStringArrayResponse"/>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="ncastorSoapBinding"
type="impl:MywebCastor">
		<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsdl:operation name="getSubmissionByStringArray">
			<wsdlsoap:operation soapAction=""/>
			<wsdl:input
name="getSubmissionByStringArrayRequest">
				<wsdlsoap:body use="literal"/>
			</wsdl:input>
			<wsdl:output
name="getSubmissionByStringArrayResponse">
				<wsdlsoap:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="MywebCastorService">
		<wsdl:port binding="impl:ncastorSoapBinding"
name="ncastor">
			<wsdlsoap:address
location="http://localhost:8080/myweb/services/ncastor"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

--- Anne Thomas Manes <at...@gmail.com> wrote:

> I didn't see you previous message, but based on your
> subject line, I
> assume that you are not in fact using the wrapped
> style, and if you
> do, that should solve your problem.
> 
> If you post your WSDL file, I'd be happy to look at
> it.
> 
> Anne
> 
> On 6/17/05, FN LN <ea...@yahoo.com> wrote:
> > Hi,
> > 
> > BTW, from my previous message, all I was trying to
> do
> > was to run this very simple method:
> > 
> > public Submission
> getSubmissionByStringArray(String[]
> > in0) {
> >     ...
> > }
> > 
> > Using document/literal style. I believe "wrapped"
> is
> > set by default.
> > 
> > Thanks,
> > EMS
> >
> 


Re: More No such operation 'in0'

Posted by Anne Thomas Manes <at...@gmail.com>.
I didn't see you previous message, but based on your subject line, I
assume that you are not in fact using the wrapped style, and if you
do, that should solve your problem.

If you post your WSDL file, I'd be happy to look at it.

Anne

On 6/17/05, FN LN <ea...@yahoo.com> wrote:
> Hi,
> 
> BTW, from my previous message, all I was trying to do
> was to run this very simple method:
> 
> public Submission getSubmissionByStringArray(String[]
> in0) {
>     ...
> }
> 
> Using document/literal style. I believe "wrapped" is
> set by default.
> 
> Thanks,
> EMS
>