JaewookByun / epcis

Oliot EPCIS for GS1 EPCIS/CBV 2.0.0
http://dfpl.sejong.ac.kr/epcis/home/index.html
Apache License 2.0
46 stars 55 forks source link

Communication problemes Oliot and simple Client based on epcis-1.2-spec #43

Closed led-del closed 4 years ago

led-del commented 4 years ago

A self developed minimalistic client isn't able to request query names from Oliot EPCIS v1.2.1. Operation: GetQueryNames failed because server responded with Unexpected element. javax.xml.ws.soap.SOAPFaultException: Unexpected element {urn:epcglobal:epcis-query:xsd:1}GetQueryNamesResponse found. Expected {urn:epcglobal:epcis-query:xsd:1}GetQueryNamesResult.

Client: self developed based on https://www.gs1.org/standards/epcis/artifacts/1-2

As I'm reading the specifiation I'd expect the GetQueryNamesResult but it sends back a GetQueryNamesRepsonse. I'v already tried to use the wsdl file which is downloadable from the server (http://localhost:8080/epcis/webservice/QueryService?wsdl) but it's not working with wsimport or cfx.

Do you have any further idea?

JaewookByun commented 4 years ago

Hi led-del,

You can refer to web.xml, beans.xml, CoreQueryService.java, SoapQueryService.java, etc. Also, for the client side, you can refer to SoapTest.java on the test package.

Also, you can test the following by using Postman, curl, etc.,

HTTP.POST -> http://localhost:8080/epcis/webservice/QueryService

Body:

We hope it helps you.