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 Tony Liu <li...@gmail.com> on 2008/04/01 02:32:30 UTC

namespace mismatch require... found none

Hello,
I deployed POJOs using Axis2. All the get operations which take no
parameters work fine, but the ones take parameters, such as strings, don't
work. It says "namespace mismatch require... found none.".

The following is the outgoing soap data and response:
*** Outgoing SOAP ******************************************************
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="
http://schemas.xmlsoap.org/soap/encod
ing/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV=
"http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/1999/XM
LSchema">
<SOAP-ENV:Body>
<getObject SOAP-ENC:root="1">
<v1 ns1:type="xsd:string" xmlns:ns1="
http://maximus:8080/axis2/services/PhoenixS
ervice"><![CDATA[/system/namespaces/system/schemaStore/attributes/__STATUS]]></v
1>
</getObject>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************************************

*** SOAP Response******************************************************
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
http://sc
hemas.xmlsoap.org/soap/envelope/
"><soapenv:Body><soapenv:Fault><faultcode>soapen
v:Server</faultcode><faultstring>namespace mismatch require
http://maximus:8080/
axis2/services/PhoenixService found none</faultstring><detail
/></soapenv:Fault>
</soapenv:Body></soapenv:Envelope>
************************************************************************

Could not connect: <Fault soapenv:Server: namespace mismatch require
http://maxi
mus:8080/axis2/services/PhoenixService found none>

Can anyone help? Thanks.

Tony Liu

Re: namespace mismatch require... found none

Posted by Tony Liu <li...@gmail.com>.
Now, I changed the wsdl file, and got this:
"org.apache.axis2.AxisFault: namespace mismatch require  found none"
It looks like the namespace Axis2 requires here is an empty string, but Null
is found. Is this an Axis2 bug or not?


On 4/1/08, Tony Liu <li...@gmail.com> wrote:
>
> The following is the partal wsdl file. I can't send through the whole
> file, it exceeds the limit. Hope this would help.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="
> http://www.w3.org/2001/XMLSchema" xmlns:ns5="
> http://lucene.silentone.com/xsd" xmlns:ns2="
> http://util.phoenix.silentone.com/xsd" xmlns:ns="
> http://www.silentone.com/phoenix/schema/" xmlns:ns1="http://util.java/xsd"
> xmlns:ns4="http://phoenix.silentone.com/xsd" xmlns:ns3="
> http://search.lucene.apache.org/xsd" xmlns:impl="
> http://maximus:8080/axis2/services/PhoenixService" xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="
> http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="
> http://query.phoenix.silentone.com/xsd" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="
> http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="
> http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="
> http://maximus:8080/axis2/services/PhoenixService">
> <wsdl:documentation>PhoenixService</wsdl:documentation>
> <wsdl:types>
>
> <xs:schema xmlns:ax217="http://util.java/xsd"
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://maximus:8080/axis2/services/PhoenixService">
> <xs:import namespace="http://util.java/xsd"/>
> <xs:import namespace="http://www.silentone.com/phoenix/schema/"/>
> <xs:element name="LibraryException">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="LibraryException" nillable="true"
> type="ns:LibraryException"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getObject">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="path" nillable="true" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getObjectResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="return" nillable="true"
> type="xs:anyType"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> <wsdl:message name="getObjectRequest">
> <wsdl:part name="parameters" element="impl:getObject"/>
> </wsdl:message>
> <wsdl:message name="getObjectResponse">
> <wsdl:part name="parameters" element="impl:getObjectResponse"/>
> </wsdl:message>
>
> <wsdl:operation name="getObject">
> <soap:operation soapAction="urn:getObject" style="document"/>
> <wsdl:input>
> <soap:body use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
> <wsdl:fault name="LibraryException">
> <soap:fault use="literal" name="LibraryException"/>
> </wsdl:fault>
> </wsdl:operation>
>
> <wsdl:operation name="getObject">
> <http:operation location="PhoenixService/getObject"/>
> <wsdl:input>
> <mime:content type="text/xml" part="getObject"/>
> </wsdl:input>
> <wsdl:output>
> <mime:content type="text/xml" part="getObject"/>
> </wsdl:output>
> </wsdl:operation>
>
>
>
>
>

Re: namespace mismatch require... found none

Posted by Tony Liu <li...@gmail.com>.
 The following is the partal wsdl file. I can't send through the whole file,
it exceeds the limit. Hope this would help.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:ns5="http://lucene.silentone.com/xsd"
xmlns:ns2="http://util.phoenix.silentone.com/xsd" xmlns:ns="
http://www.silentone.com/phoenix/schema/" xmlns:ns1="http://util.java/xsd"
xmlns:ns4="http://phoenix.silentone.com/xsd" xmlns:ns3="
http://search.lucene.apache.org/xsd" xmlns:impl="
http://maximus:8080/axis2/services/PhoenixService" xmlns:wsaw="
http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="
http://query.phoenix.silentone.com/xsd" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="
http://maximus:8080/axis2/services/PhoenixService">
<wsdl:documentation>PhoenixService</wsdl:documentation>
<wsdl:types>

<xs:schema xmlns:ax217="http://util.java/xsd"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://maximus:8080/axis2/services/PhoenixService">
<xs:import namespace="http://util.java/xsd"/>
<xs:import namespace="http://www.silentone.com/phoenix/schema/"/>
<xs:element name="LibraryException">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="LibraryException" nillable="true"
type="ns:LibraryException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getObject">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="path" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getObjectResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
</xs:element>

<wsdl:message name="getObjectRequest">
<wsdl:part name="parameters" element="impl:getObject"/>
</wsdl:message>
<wsdl:message name="getObjectResponse">
<wsdl:part name="parameters" element="impl:getObjectResponse"/>
</wsdl:message>

<wsdl:operation name="getObject">
<soap:operation soapAction="urn:getObject" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="LibraryException">
<soap:fault use="literal" name="LibraryException"/>
</wsdl:fault>
</wsdl:operation>

<wsdl:operation name="getObject">
<http:operation location="PhoenixService/getObject"/>
<wsdl:input>
<mime:content type="text/xml" part="getObject"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="getObject"/>
</wsdl:output>
</wsdl:operation>

Re: namespace mismatch require... found none

Posted by Tony Liu <li...@gmail.com>.
I heard about "Axis2 does not support SOAP Encoding.", but I'm wondering why
it still works for some other getter operations.

On 4/1/08, Anne Thomas Manes <at...@gmail.com> wrote:
>
> The input message does not conform to the schema defined by the
> service. We need to see the WSDL to diagnose it further. But-- the
> input message uses SOAP Encoding, and Axis2 does not support SOAP
> Encoding.
>
> Anne
>
>
> On Mon, Mar 31, 2008 at 8:32 PM, Tony Liu <li...@gmail.com> wrote:
> > Hello,
> > I deployed POJOs using Axis2. All the get operations which take no
> > parameters work fine, but the ones take parameters, such as strings,
> don't
> > work. It says "namespace mismatch require... found none.".
> >
> > The following is the outgoing soap data and response:
> > *** Outgoing SOAP ******************************************************
> > <?xml version="1.0" encoding="UTF-8"?>
> > <SOAP-ENV:Envelope
> > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encod
> >  ing/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:SOAP-ENV=
> > "http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/1999/XM
> >  LSchema">
> > <SOAP-ENV:Body>
> > <getObject SOAP-ENC:root="1">
> > <v1 ns1:type="xsd:string"
> > xmlns:ns1="http://maximus:8080/axis2/services/PhoenixS
> >
> >
> ervice"><![CDATA[/system/namespaces/system/schemaStore/attributes/__STATUS]]></v
> > 1>
> > </getObject>
> > </SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> > ************************************************************************
> >
> > *** SOAP Response******************************************************
> > <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> > xmlns:soapenv="http://sc
> > hemas.xmlsoap.org/soap/envelope/
> "><soapenv:Body><soapenv:Fault><faultcode>soapen
> >  v:Server</faultcode><faultstring>namespace mismatch require
> > http://maximus:8080/
> > axis2/services/PhoenixService found none</faultstring><detail
> > /></soapenv:Fault>
> >  </soapenv:Body></soapenv:Envelope>
> > ************************************************************************
> >
> > Could not connect: <Fault soapenv:Server: namespace mismatch require
> > http://maxi
> >  mus:8080/axis2/services/PhoenixService found none>
> >
> > Can anyone help? Thanks.
> >
> > Tony Liu
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: namespace mismatch require... found none

Posted by Anne Thomas Manes <at...@gmail.com>.
The input message does not conform to the schema defined by the
service. We need to see the WSDL to diagnose it further. But-- the
input message uses SOAP Encoding, and Axis2 does not support SOAP
Encoding.

Anne

On Mon, Mar 31, 2008 at 8:32 PM, Tony Liu <li...@gmail.com> wrote:
> Hello,
> I deployed POJOs using Axis2. All the get operations which take no
> parameters work fine, but the ones take parameters, such as strings, don't
> work. It says "namespace mismatch require... found none.".
>
> The following is the outgoing soap data and response:
> *** Outgoing SOAP ******************************************************
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encod
>  ing/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:SOAP-ENV=
> "http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/1999/XM
>  LSchema">
> <SOAP-ENV:Body>
> <getObject SOAP-ENC:root="1">
> <v1 ns1:type="xsd:string"
> xmlns:ns1="http://maximus:8080/axis2/services/PhoenixS
>
> ervice"><![CDATA[/system/namespaces/system/schemaStore/attributes/__STATUS]]></v
> 1>
> </getObject>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> ************************************************************************
>
> *** SOAP Response******************************************************
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://sc
> hemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapen
>  v:Server</faultcode><faultstring>namespace mismatch require
> http://maximus:8080/
> axis2/services/PhoenixService found none</faultstring><detail
> /></soapenv:Fault>
>  </soapenv:Body></soapenv:Envelope>
> ************************************************************************
>
> Could not connect: <Fault soapenv:Server: namespace mismatch require
> http://maxi
>  mus:8080/axis2/services/PhoenixService found none>
>
> Can anyone help? Thanks.
>
> Tony Liu
>
>

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