Hello,
I do have a problem with a axis2 generated webservice client.
The webservice I use is the standard one specified by EPCglobal (file a
use to generate the client are on
http://www.epcglobalinc.org/standards/epcis)
My problem is that the current code :
QueryParams params = new QueryParams();
QueryParam p1 = new QueryParam();
p1.setName("eventType");
p1.setValue("ObjectEvent");
params.addParam(p1);
Poll polData = new Poll();
polData.setQueryName("SimpleEventQuery");
polData.setParams(params);
PollE poll = new PollE();
poll.setPoll(polData);
EPCglobalEPCISServiceStub myStub = new
EPCglobalEPCISServiceStub("http://localhost:8080/Test");
myStub.poll(poll);
Generate a SOAP message like this :
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns5:Poll xmlns:ns5="urn:epcglobal:epcis-query:xsd:1">
<queryName>SimpleEventQuery</queryName>
<params><param><name>eventType</name>
<value
xmlns:s1="http://www.w3.org/2001/XMLSchema-instance"
xmlns:s2="http://www.w3.org/2001/XMLSchema"
s1:type="s2:string">ObjectEvent</value></param></params>
</ns5:Poll>
</soapenv:Body>
</soapenv:Envelope>
My problem is the server. I don't have access to the code on it
(proprietary solution :-/). And it does not work as it does not want
fully qualified type attribute like the ones in <value> tag. It's
waiting for
<value>ObjectEvent</value>
instead of :
<value xmlns:s1="http://www.w3.org/2001/XMLSchema-instance"
xmlns:s2="http://www.w3.org/2001/XMLSchema"
s1:type="s2:string">ObjectEvent</value>
any tips to get rid of this attributes ?
Thank you very much for any help
Cheers,
--
MBdC