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 Martin Nad <mn...@integration-x.com> on 2008/06/11 16:05:07 UTC
Re:namespace mismatch require... found none
Hi i had the same problem and i did as follow and it works very smoothly
and nice:
In my Client.java:
.......
import javax.xml.namespace.QName;
.......
String endpoint = "http://localhost:8095/axis2/services/SomeService";
call.setTargetEndpointAddress(new URL(endpoint));
call.setTargetEndpointAddress(new URL(endpoint));
call.setOperationName(new
QName("http://localhost:8095/axis2/services/SomeService/ns","getFilePath
Name"));
..........................
End of java
In my service.xml:
.......
<schema
schemaNamespace="http://localhost:8095/axis2/services/SomeService/ns"/>
.......
In my build.xml:
<java2wsdl className="SomeSeviceClass"
outputLocation="${build.dir}"
targetNamespace=http://localhost:8095/axis2/services/SomeService
..........
And hope it will help you too
R
Martin Nad
.....................................................................
########################################################################
##########3
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/__STAT
US]]></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