org.apache.axis2.transport.http.AxisServlet references the xsd in doGet with supplied agent
BTW: an element is declared optional with minOccurs="0" http://www.obj-sys.com/docs/xbCCppUGv1p0/XBinder30.html here is the AxisServlet.java code which references the xsd: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { initContextRoot(request); // this method is also used to serve for the listServices request. String requestURI = request.getRequestURI(); String query = request.getQueryString(); // There can be three different request coming to this. // 1. wsdl, wsdl2 and xsd requests // 2. list services requests // 3. REST requests. if ((query != null) && new QueryStringParser(query).search(metadataQueryParamNames)) { // handling meta data exchange stuff agent.initTransportListener(request); agent.processListService(request, response); } else if (requestURI.endsWith(".xsd") || requestURI.endsWith(".wsdl")) { agent.processExplicitSchemaAndWSDL(request, response); } else if (requestURI.endsWith(LIST_SERVICES_SUFFIX) || requestURI.endsWith(LIST_FAULTY_SERVICES_SUFFIX)) { // handling list services request try { agent.handle(request, response); } catch (Exception e) { throw new ServletException(e); } } else if (!disableREST) { new RestRequestProcessor(Constants.Configuration.HTTP_METHOD_GET, request, response) .processURLRequest(); } else { showRestDisabledErrorMessage(response); } } HTH Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: [email protected] To: [email protected] Date: Mon, 17 Aug 2009 10:12:47 -0400 Subject: Optional fields I'm working with a WSDL that has optional fields, e.g., '<xs:element name="alarmTally" type="xs:int" minOccurs="0"/>'. When the client does not supply a field, how is the server supposed to know if the field was omitted? _________________________________________________________________ Hotmail® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009
